Package com.tibco.ep.testing.framework
Class MultiNodeWorker
java.lang.Object
com.tibco.ep.testing.framework.MultiNodeWorker
@Managed
@Key(fields="nodeName",name="ByNodeName",unique=false) @Key(fields={"nodeName","source"},name="ByNodeNameSource",unique=true)
class MultiNodeWorker
extends Object
Multi-node worker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static Iterable<MultiNodeWorker>
getByNodeName
(String nodeName, com.kabira.platform.QueryScope scope) Get by node name(package private) static MultiNodeWorker
getByNodeNameSource
(String nodeName, String source, com.kabira.platform.QueryScope scope, com.kabira.platform.LockMode lockMode) Get worker by source(package private) static MultiNodeWorker
Get current last agreed state worker(package private) static MultiNodeWorker
getOrCreate
(String nodeName, String source) Get or create worker(package private) static MultiNodeWorker
Get or create last agreed state worker(package private) String
Get source(package private) String
getState()
Get state(package private) void
Set statetoString()
-
Field Details
-
state
String stateWork state
-
-
Constructor Details
-
MultiNodeWorker
Constructor- Parameters:
nodeName
- node namesource
- source
-
-
Method Details
-
getOrCreate
Get or create worker- Parameters:
nodeName
- node namesource
- source- Returns:
- worker
-
getOrCreateLastAgreedState
Get or create last agreed state worker- Returns:
- worker
-
getCurrentLastAgreedState
Get current last agreed state worker- Returns:
- worker
-
getByNodeNameSource
static MultiNodeWorker getByNodeNameSource(String nodeName, String source, com.kabira.platform.QueryScope scope, com.kabira.platform.LockMode lockMode) Get worker by source- Parameters:
nodeName
- node namesource
- sourcescope
- query scopelockMode
- lock mode- Returns:
- worker
-
getByNodeName
static Iterable<MultiNodeWorker> getByNodeName(String nodeName, com.kabira.platform.QueryScope scope) Get by node name- Parameters:
nodeName
- node namescope
- query scope- Returns:
- workers
-
getState
String getState()Get state- Returns:
- state
-
setState
Set state- Parameters:
state
- state
-
getSource
String getSource()Get source- Returns:
- source
-
toString
-