Interface IDaemonService
-
public interface IDaemonService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jadex.commons.future.IFuture<java.lang.Void>
addChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Add a change listener.jadex.commons.future.IFuture<java.util.Set<IComponentIdentifier>>
getPlatforms()
Get the component identifiers of all (managed) platforms.jadex.commons.future.IFuture<java.lang.Void>
removeChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Remove a change listener.jadex.commons.future.IFuture<java.lang.Void>
shutdownPlatform(IComponentIdentifier cid)
Shutdown a platform.jadex.commons.future.IFuture<java.lang.Void>
startPlatform(StartOptions options)
Start a platform using a configuration.jadex.commons.future.IFuture<java.lang.Void>
startPlatform(StartOptions options, long wait)
Start a platform using a configuration.jadex.commons.future.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
jadex.commons.future.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
jadex.commons.future.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
jadex.commons.future.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
jadex.commons.future.IFuture<java.lang.Void> shutdownPlatform(IComponentIdentifier cid)
Shutdown a platform.- Parameters:
cid
- The platform id.
-
getPlatforms
jadex.commons.future.IFuture<java.util.Set<IComponentIdentifier>> getPlatforms()
Get the component identifiers of all (managed) platforms.- Returns:
- Collection of platform ids.
-
addChangeListener
jadex.commons.future.IFuture<java.lang.Void> addChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Add a change listener.- Parameters:
listener
- The change listener.
-
removeChangeListener
jadex.commons.future.IFuture<java.lang.Void> removeChangeListener(IRemoteChangeListener<IComponentIdentifier> listener)
Remove a change listener.- Parameters:
listener
- The change listener.
-
-