org.almendra.janet.cas.node
Class CentralAnchor

java.lang.Object
  extended by org.almendra.janet.cas.node.AbstractNodeAnchor
      extended by org.almendra.janet.cas.node.CentralAnchor
All Implemented Interfaces:
INamedObject

public class CentralAnchor
extends AbstractNodeAnchor

Author:
Oliver

Field Summary
protected  CentralClusterImage clusterImage
           
static java.lang.String NAME
           
protected  java.util.List nodesRequestingShutdown
           
static java.lang.String RMI_NAME
           
 
Fields inherited from class org.almendra.janet.cas.node.AbstractNodeAnchor
label, LABEL, name, node, nodeDescriptor, viewTitle
 
Constructor Summary
protected CentralAnchor()
           
  CentralAnchor(Node node)
           
 
Method Summary
 boolean addShutdownRequest(java.lang.String nodeName)
           
 boolean disconnectRequest(Node node)
           
 CentralClusterImage getCentralClusterImage()
           
 IAgentDispatcher getCentralDispatcher()
           
 AbstractClusterImage getClusterImage()
           
 java.lang.String getNextShutdownRequest()
           
 boolean mayDisconnect()
           
 void registerNode(IAgentDispatcher agentDispatcher, NodeLocation nodeLocation)
           
 boolean removeShutdownRequest(java.lang.String nodeName)
           
 void setName(java.lang.String nodeName)
           
 
Methods inherited from class org.almendra.janet.cas.node.AbstractNodeAnchor
deregisterForeignApplication, deregisterForeignApplications, deregisterNode, getLabel, getName, getNode, getNodeDescriptor, getNodeImage, getNodeImage, getViewTitle, isForeignApplicationRegistered, isForeignCapabilityRegistered, registerForeignApplication, setLabel, setNodeDescriptor, setViewTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RMI_NAME

public static final java.lang.String RMI_NAME
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

clusterImage

protected CentralClusterImage clusterImage

nodesRequestingShutdown

protected java.util.List nodesRequestingShutdown
Constructor Detail

CentralAnchor

protected CentralAnchor()

CentralAnchor

public CentralAnchor(Node node)
Parameters:
node -
Method Detail

getCentralClusterImage

public CentralClusterImage getCentralClusterImage()
Returns:
Returns the clusterImage.

getClusterImage

public AbstractClusterImage getClusterImage()
Specified by:
getClusterImage in class AbstractNodeAnchor
Returns:
Returns the clusterImage.

registerNode

public void registerNode(IAgentDispatcher agentDispatcher,
                         NodeLocation nodeLocation)
Parameters:
nodeName -

setName

public void setName(java.lang.String nodeName)
Overrides:
setName in class AbstractNodeAnchor

getCentralDispatcher

public IAgentDispatcher getCentralDispatcher()
Specified by:
getCentralDispatcher in class AbstractNodeAnchor
Returns:
Returns the centralAgentDispatcher.

addShutdownRequest

public boolean addShutdownRequest(java.lang.String nodeName)
Parameters:
string -

removeShutdownRequest

public boolean removeShutdownRequest(java.lang.String nodeName)
Parameters:
string -

getNextShutdownRequest

public java.lang.String getNextShutdownRequest()

disconnectRequest

public boolean disconnectRequest(Node node)
Specified by:
disconnectRequest in class AbstractNodeAnchor

mayDisconnect

public boolean mayDisconnect()
Overrides:
mayDisconnect in class AbstractNodeAnchor