public class OfficeBuildingManagedProcess extends Object implements ManagedProcess
ManagedProcess
for spawning an OfficeBuilding
.Constructor and Description |
---|
OfficeBuildingManagedProcess(String hostName,
int port,
File keyStore,
String keyStorePassword,
String userName,
String password,
File workspaceLocation,
boolean isIsolateProcesses,
Properties environment,
String[] jvmOptions,
boolean isAllowClassPathEntries)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
init(ManagedProcessContext context)
Initialises this
ManagedProcess . |
void |
main()
Runs the functionality.
|
public OfficeBuildingManagedProcess(String hostName, int port, File keyStore, String keyStorePassword, String userName, String password, File workspaceLocation, boolean isIsolateProcesses, Properties environment, String[] jvmOptions, boolean isAllowClassPathEntries)
hostName
- Host name for the OfficeBuilding
.port
- Port for the OfficeBuilding
.keyStore
- Key store File
.keyStorePassword
- Password to the key store File
.userName
- User name to allow connections.password
- Password to allow connections.workspaceLocation
- Workspace location.isIsolateProcesses
- Flag indicating to isolate Process
instances.environment
- Environment Properties
.jvmOptions
- JVM options for the Process
.isAllowClassPathEntries
- Flag indicating if the OfficeBuilding
will allow
configured class path entries.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.