|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.util.tasks.Run
ome.services.licenses.tasks.Run
public class Run
Command-line adapter which can run any task. ServiceFactory
and
Task
configuration can be specified as arguments in the form
"key=value". The only mandatory argument for all tasks is the task name:
java Run task=org.example.MyTask
However a search for tasks
will also be performed under "ome.util.tasks". E.g.
java Run task=admin.AddUserTask
resolves to ome.util.tasks.admin.AddUserTask.
Use
blitz=true
to configure the task for blitz.
Configuration
,
Task
Field Summary |
---|
Fields inherited from class ome.util.tasks.Run |
---|
opts, task |
Constructor Summary | |
---|---|
Run(Config config)
Passes the Configuration -subclass instance (see Config )
to the Run.Run(Configuration) constructor. |
Method Summary | |
---|---|
protected void |
acquireLicense()
|
protected void |
cleanup()
Releases a license during Run.cleanup() |
protected ServiceFactory |
getServiceFactory()
|
static void |
main(String[] args)
Parses the command line into a Properties instance which gets
passed to Configuration . |
protected void |
releaseLicense()
|
protected void |
setup()
Acquires a license during Run.setup() |
Methods inherited from class ome.util.tasks.Run |
---|
getProperties, parseArgs, readStdin, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Run(Config config)
Configuration
-subclass instance (see Config
)
to the Run.Run(Configuration)
constructor.
config
- Method Detail |
---|
public static void main(String[] args)
Properties
instance which gets
passed to Configuration
. Configuration.createTask()
is
called and the returned Task
instance is run
.
protected void setup()
Run.setup()
setup
in class Run
protected void cleanup()
Run.cleanup()
cleanup
in class Run
protected void acquireLicense()
protected void releaseLicense()
protected ServiceFactory getServiceFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.