public final class HelpManagedProcess extends Object implements ManagedProcess
ManagedProcess
.Constructor and Description |
---|
HelpManagedProcess() |
Modifier and Type | Method and Description |
---|---|
void |
init(ManagedProcessContext context)
Initialises this
ManagedProcess . |
void |
main()
Runs the functionality.
|
void |
writeHelp(PrintStream out,
String scriptName,
OfficeFloorCommandFactory[] commandFactories)
Write out the help.
|
public void writeHelp(PrintStream out, String scriptName, OfficeFloorCommandFactory[] commandFactories)
out
- Out stream to write help.scriptName
- Name of the script invoking the OfficeFloorCommand
.
null
indicates from within
OfficeFloorConsole
.commandFactories
- OfficeFloorCommandFactory
instances for help content
to be written.public void init(ManagedProcessContext context) throws Throwable
ManagedProcess
Initialises this ManagedProcess
.
All MBean instances registered before this method returns will be made
available to the ProcessManager
before it is returned on starting
the Process
.
init
in interface ManagedProcess
context
- ManagedProcessContext
.Throwable
- If fails to initialise.public void main() throws Throwable
ManagedProcess
Runs the functionality.
This should be a blocking call. Once this method returns the process is considered finished.
main
in interface ManagedProcess
Throwable
- If fails.Copyright © 2005–2016. All rights reserved.