public interface RemoteRunFactory extends Remote
Modifier and Type | Method and Description |
---|---|
int |
countOperatingRuns()
Gets a count of the number of workflow runs
that this factor knows about that are in the
Operating state. |
RemoteSingleRun |
make(byte[] workflow,
String creator,
UsageRecordReceiver usageRecordReceiver,
UUID masterID)
Makes a workflow run that will process a particular workflow document.
|
void |
setInteractionServiceDetails(String host,
String port,
String webdavPath,
String feedPath)
Configures the details to use when setting up the workflow run's
connnection to the interaction feed.
|
void |
shutdown()
Asks this factory to unregister itself from the registry and cease
operation.
|
@Nonnull RemoteSingleRun make(@Nonnull byte[] workflow, @Nonnull String creator, @Nullable UsageRecordReceiver usageRecordReceiver, @Nullable UUID masterID) throws RemoteException
workflow
- The (serialised) workflow to instantiate as a run.creator
- Who is this run created for?usageRecordReceiver
- Where to write any usage records. May be null to
cause them to not be written.masterID
- The UUID of the run to use, or null if the execution
engine is to manufacture a new one for itself.RemoteException
- If anything goes wrong with the communication.void shutdown() throws RemoteException
RemoteException
- If anything goes wrong with the communication.void setInteractionServiceDetails(@Nonnull String host, @Nonnull String port, @Nonnull String webdavPath, @Nonnull String feedPath) throws RemoteException
host
- The host where the feed is located.port
- The port where the feed is located.webdavPath
- The path used for pushing web pages into the feed.feedPath
- The path used for reading and writing notifications on the
feed.RemoteException
- If anything goes wrong with the communication.int countOperatingRuns() throws RemoteException
Operating
state.RemoteException
- If anything goes wrong with the communication.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.