Interface IDaemonService
-
public interface IDaemonService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
addChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Add a change listener.IFuture<java.util.Set<IComponentIdentifier>>
getPlatforms()
Get the component identifiers of all (managed) platforms.IFuture<java.lang.Void>
removeChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Remove a change listener.IFuture<java.lang.Void>
shutdownPlatform(IComponentIdentifier cid)
Shutdown a platform.IFuture<java.lang.Void>
startPlatform(StartOptions options)
Start a platform using a configuration.IFuture<java.lang.Void>
startPlatform(StartOptions options, long wait)
Start a platform using a configuration.IFuture<IComponentIdentifier>
startPlatformAndWait(StartOptions options)
Start a platform using a configuration.
-
-
-
Field Detail
-
ADDED
static final java.lang.String ADDED
Event for an added platform.- See Also:
- Constant Field Values
-
REMOVED
static final java.lang.String REMOVED
Event for a removed platform.- See Also:
- Constant Field Values
-
-
Method Detail
-
startPlatform
IFuture<java.lang.Void> startPlatform(StartOptions options)
Start a platform using a configuration. Performs no checking if the new platform runs.- Parameters:
options
- The start arguments.
-
startPlatform
IFuture<java.lang.Void> startPlatform(StartOptions options, long wait)
Start a platform using a configuration. Wait for some time to check if the platform doesn't fail. Only detects, if the new platform process exits during that time.- Parameters:
options
- The start arguments.
-
startPlatformAndWait
IFuture<IComponentIdentifier> startPlatformAndWait(StartOptions options)
Start a platform using a configuration. Wait for successful handshake and return the component identifier of the new platform. Successful handshake means that the init phase of the new platform, including starting of initial components, has completed successfully.- Parameters:
options
- The start arguments.
-
shutdownPlatform
IFuture<java.lang.Void> shutdownPlatform(IComponentIdentifier cid)
Shutdown a platform.- Parameters:
cid
- The platform id.
-
getPlatforms
IFuture<java.util.Set<IComponentIdentifier>> getPlatforms()
Get the component identifiers of all (managed) platforms.- Returns:
- Collection of platform ids.
-
addChangeListener
IFuture<java.lang.Void> addChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Add a change listener.- Parameters:
listener
- The change listener.
-
removeChangeListener
IFuture<java.lang.Void> removeChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Remove a change listener.- Parameters:
listener
- The change listener.
-
-