|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thing.Cluster
public class Cluster
A cluster of things.
Version History
EPG - Initial - 10 JAN 08
Field Summary | |
---|---|
java.util.HashMap<java.lang.String,things.thing.Cluster.Node> |
nodes
Cluster nodes. |
Constructor Summary | |
---|---|
Cluster(SystemInterface si,
ExpressionInterface parentInterface)
Construct a cluster not owned by a THING. |
|
Cluster(THING owner)
Construct a cluster owned by a THING. |
Method Summary | |
---|---|
void |
add(java.lang.String clusterNodeName,
java.lang.String thingName)
Add a node to the cluster. |
void |
add(java.lang.String clusterNodeName,
java.lang.String thingName,
ThingsPropertyView overlayProperties)
Add a node to the cluster. |
boolean |
checkClusterDone()
Check the cluster if it is done. |
RESULT |
getResult()
Get the result for the cluster. |
void |
start()
Start the cluster. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.HashMap<java.lang.String,things.thing.Cluster.Node> nodes
Constructor Detail |
---|
public Cluster(THING owner) throws java.lang.Throwable
owner
- the owner.
Throwable,
- mostly if the owner is null.
java.lang.Throwable
public Cluster(SystemInterface si, ExpressionInterface parentInterface) throws java.lang.Throwable
si
- A system interface.parentInterface
- A parent interface.
Throwable,
- mostly if the si or parentInterface are null.
java.lang.Throwable
Method Detail |
---|
public void add(java.lang.String clusterNodeName, java.lang.String thingName) throws java.lang.Throwable
clusterNodeName
- a unique name for the node.thingName
- the thing name to run as the node.
java.lang.Throwable
- if either parameter is null or the node name has already been used.public void add(java.lang.String clusterNodeName, java.lang.String thingName, ThingsPropertyView overlayProperties) throws java.lang.Throwable
clusterNodeName
- a unique name for the node.thingName
- the thing name to run as the node.overlayProperties
- properties to overlay for that thing only. May not be null. (Use the other method).
java.lang.Throwable
- if either parameter is null or the node name has already been used.public void start() throws java.lang.Throwable
java.lang.Throwable
- A resolution of all start exceptions. Note that the exception will not interrupt the start list. It will finish
attempting to start all nodes before letting an exception out. So, your cluster may be running!public boolean checkClusterDone() throws java.lang.Throwable
java.lang.Throwable
public RESULT getResult() throws java.lang.Throwable
java.lang.Throwable
- A fault if there is any troubles.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |