Class Cluster
- java.lang.Object
-
- org.terracotta.angela.common.cluster.Cluster
-
- All Implemented Interfaces:
Serializable
public class Cluster extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicBooleanatomicBoolean(String name, boolean initialValue)AtomicCounteratomicCounter(String name, long initialValue)<T> AtomicReference<T>atomicReference(String name, T initialValue)Barrierbarrier(String name, int count)ClientIdgetClientId()AgentIDgetFromAgentId()The agent from which the Ignite closure was executedorg.apache.ignite.IgnitegetIgnite()AgentIDgetLocalAgentId()The current local agent where we are executing the closure
-
-
-
Method Detail
-
getIgnite
public org.apache.ignite.Ignite getIgnite()
-
atomicCounter
public AtomicCounter atomicCounter(String name, long initialValue)
-
atomicBoolean
public AtomicBoolean atomicBoolean(String name, boolean initialValue)
-
atomicReference
public <T> AtomicReference<T> atomicReference(String name, T initialValue)
-
getClientId
public ClientId getClientId()
- Returns:
- the client ID if called in the context of a client job, and null otherwise.
-
getFromAgentId
public AgentID getFromAgentId()
The agent from which the Ignite closure was executed
-
getLocalAgentId
public AgentID getLocalAgentId()
The current local agent where we are executing the closure
-
-