|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.mng.AbstractProcessManager
plug_in_example.shell.GreetingManager
public class GreetingManager
This class is used to manage greeting processes.
Field Summary | |
---|---|
static UnmodifiableSet<java.lang.String> |
optionalKeywords
The set of optional keywords in the ManagerInput objects supplied
to instances of this class. |
static UnmodifiableSet<java.lang.String> |
requiredKeywords
The set of keywords required to be present in the ManagerInput
objects supplied to instances of this class. |
Fields inherited from class sbrt.shell.mng.AbstractProcessManager |
---|
ALGORITHM, COMPLETED, DATA_HEADERS, DEV_NULL, ELAPSED_TIME, FILE_FORMAT, INPUT_FILE, INPUT_FILE_FORMAT, INPUT_FILE_NAME_FILE, ITERATIONS, OUTPUT_FILE_FORMAT, OUTPUT_FILE_NAME, OUTPUT_FILE_NAME_FILE, PERCENT, PERCENT_COMPLETED, SEED, ZERO_CUTOFF |
Constructor Summary | |
---|---|
GreetingManager()
|
Method Summary | |
---|---|
void |
execute(java.io.PrintWriter out)
Executes the process this process manager controls, and writes the status or results of this process to the provided print writer. |
java.util.Set<java.lang.String> |
getOptionalKeys()
Returns the set of keywords the provided ManagerInput object does
not necessarily have to contain. |
KernelProcess<?> |
getProcess()
Returns the process this process manager controls. |
java.util.Set<java.lang.String> |
getRequiredKeys()
Returns the set of keywords the provided ManagerInput object must
contain. |
void |
setInput(ManagerInput<java.lang.String,java.lang.String> input,
java.io.PrintWriter out)
Uses the provided input to prepare this process manager for execution. |
Methods inherited from class sbrt.shell.mng.AbstractProcessManager |
---|
check, closeFile, closeRm, execute, getFileFormat, getFileFormat, getFileNameSource, getIterations, getSeed, getTextFileFormat, getTextFileFormat, getZeroCutoff, getZeroCutoff, parseInt, parseLong, printProgress, printProgress, printProgress, runProcess, setInput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sbrt.shell.mng.ProcessManager |
---|
check, execute, setInput |
Field Detail |
---|
public static final UnmodifiableSet<java.lang.String> requiredKeywords
ManagerInput
objects supplied to instances of this class.
public static final UnmodifiableSet<java.lang.String> optionalKeywords
ManagerInput
objects supplied
to instances of this class.
Constructor Detail |
---|
public GreetingManager()
Method Detail |
---|
public java.util.Set<java.lang.String> getRequiredKeys()
ManagerInput
object must
contain.
getRequiredKeys
in interface ProcessManager<java.lang.String,java.lang.String>
ManagerInput
object must
contain.public java.util.Set<java.lang.String> getOptionalKeys()
ManagerInput
object does
not necessarily have to contain.
getOptionalKeys
in interface ProcessManager<java.lang.String,java.lang.String>
ManagerInput
object does
not necessarily have to contain.public KernelProcess<?> getProcess()
getProcess
in interface KernelProcessManager<java.lang.String,java.lang.String>
java.lang.IllegalStateException
- if no input was provided to this process manager via
AbstractProcessManager.setInput(ManagerInput)
or
setInput(ManagerInput, PrintWriter)
public void setInput(ManagerInput<java.lang.String,java.lang.String> input, java.io.PrintWriter out)
setInput
in interface ProcessManager<java.lang.String,java.lang.String>
input
- all of the information required to prepare this process
manager for execution.out
- the print writer to which all messages will be printed.public void execute(java.io.PrintWriter out)
execute
in interface ProcessManager<java.lang.String,java.lang.String>
out
- the print writer where status messages will be printed.
java.lang.IllegalStateException
- if no input was provided to this process manager via
AbstractProcessManager.setInput(ManagerInput)
or
setInput(ManagerInput, PrintWriter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |