org.almendra.janet.cas.node
Class AbstractNodeAnchor
java.lang.Object
org.almendra.janet.cas.node.AbstractNodeAnchor
- All Implemented Interfaces:
- INamedObject
- Direct Known Subclasses:
- CentralAnchor, NodeAnchor
public abstract class AbstractNodeAnchor
- extends java.lang.Object
- implements INamedObject
- Author:
- Oliver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LABEL
public static final java.lang.String LABEL
- See Also:
- Constant Field Values
node
protected Node node
nodeDescriptor
protected NodeDescriptor nodeDescriptor
viewTitle
protected java.lang.String viewTitle
label
protected java.lang.String label
name
protected java.lang.String name
AbstractNodeAnchor
protected AbstractNodeAnchor()
AbstractNodeAnchor
protected AbstractNodeAnchor(Node node)
getViewTitle
public java.lang.String getViewTitle()
- Returns:
- Returns the viewTitle.
setViewTitle
public void setViewTitle(java.lang.String viewTitle)
- Parameters:
viewTitle
- The viewTitle to set.
getNode
public Node getNode()
- Returns:
- Returns the node.
getName
public java.lang.String getName()
- Description copied from interface:
INamedObject
- All objects that have a user-defined name must implement this method.
- Specified by:
getName
in interface INamedObject
- Returns:
- name
setName
public void setName(java.lang.String nodeName)
- Parameters:
nodeName
-
registerForeignApplication
public void registerForeignApplication(NodeLocation location,
java.util.List agentPaths)
- Parameters:
list
-
deregisterForeignApplications
public void deregisterForeignApplications(java.lang.String foreignNodeName)
- Deregister all applications of a foreign node by remove the entire foreign node image.
Usually only done when node is shutting down.
- Parameters:
path
-
getClusterImage
public abstract AbstractClusterImage getClusterImage()
deregisterNode
public AbstractNodeImage deregisterNode(java.lang.String nodeName)
deregisterForeignApplication
public void deregisterForeignApplication(java.lang.String applicationName,
java.lang.String nodeName)
- Parameters:
string
- string2
-
getNodeImage
protected AbstractNodeImage getNodeImage(java.lang.String nodeName)
getNodeImage
protected AbstractNodeImage getNodeImage(NodeLocation location,
java.lang.String nodeName)
throws java.rmi.AccessException,
java.rmi.RemoteException,
java.rmi.NotBoundException
- Throws:
java.rmi.AccessException
java.rmi.RemoteException
java.rmi.NotBoundException
isForeignApplicationRegistered
public boolean isForeignApplicationRegistered(java.lang.String applicationName,
java.lang.String nodeName)
- Parameters:
applicationName
- nodeName
-
- Returns:
isForeignCapabilityRegistered
public boolean isForeignCapabilityRegistered(CapabilityPath path)
- Parameters:
path
-
- Returns:
getCentralDispatcher
public abstract IAgentDispatcher getCentralDispatcher()
- Returns:
- Returns the centralAgentDispatcher.
disconnectRequest
public abstract boolean disconnectRequest(Node node)
- Parameters:
node
-
mayDisconnect
public boolean mayDisconnect()
getNodeDescriptor
public NodeDescriptor getNodeDescriptor()
- Returns:
- Returns the nodeDescriptor.
setNodeDescriptor
public void setNodeDescriptor(NodeDescriptor nodeDescriptor)
- Parameters:
nodeDescriptor
- The nodeDescriptor to set.
getLabel
public java.lang.String getLabel()
- Returns:
- Returns the label.
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label
- The label to set.