org.almendra.janet.cas.commands
Class NodeStartedCommand
java.lang.Object
org.almendra.janet.cas.commands.NodeStartedCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICommand
public class NodeStartedCommand
- extends java.lang.Object
- implements ICommand, java.io.Serializable
- Author:
- Oliver
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QualifiedName
public static final java.lang.String QualifiedName
- See Also:
- Constant Field Values
node
protected Node node
future
protected FutureResult future
centralRegistryLocation
protected RegistryLocation centralRegistryLocation
localRegistryLocation
protected RegistryLocation localRegistryLocation
startGUI
protected boolean startGUI
clusterSpaceDescriptors
protected java.util.List clusterSpaceDescriptors
clusterEventRegistryDescriptors
protected java.util.List clusterEventRegistryDescriptors
NodeStartedCommand
protected NodeStartedCommand()
NodeStartedCommand
public NodeStartedCommand(Node node,
FutureResult future,
RegistryLocation centralRegistryLocation,
RegistryLocation localRegistryLocation,
java.util.List clusterSpaceDescriptors,
java.util.List clusterEventRegistryDescriptors,
boolean startGUI)
getFuture
public FutureResult getFuture()
- Returns:
- Returns the future.
getQualifiedName
public java.lang.String getQualifiedName()
- Description copied from interface:
ICommand
- Answer the fully qualified name of the command, e.g. package and class name.
- Specified by:
getQualifiedName
in interface ICommand
- Returns:
getPriority
public int getPriority()
- Description copied from interface:
ICommand
- Answer the priority of the command.
- Specified by:
getPriority
in interface ICommand
- Returns:
toLogString
public java.lang.String toLogString()
- Description copied from interface:
ICommand
- Return a string printing a command onto a string used for logging.
- Specified by:
toLogString
in interface ICommand
- Returns:
getNode
public Node getNode()
- Returns:
- Returns the node.
getCentralRegistryLocation
public RegistryLocation getCentralRegistryLocation()
- Returns:
- Returns the centralRegistryLocation.
getLocalRegistryLocation
public RegistryLocation getLocalRegistryLocation()
- Returns:
- Returns the localRegistryLocation.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from interface:
ICommand
- Make sure the user can rely on a command to be cloneable. Needed by the system
to clone commands in simulated mode which is necessary so that every agent receives
a command with a pointer of its own which is the case in distributed mode anyway.
- Specified by:
clone
in interface ICommand
- Overrides:
clone
in class java.lang.Object
- Returns:
-
- Throws:
java.lang.CloneNotSupportedException
getCentralNodeLocation
public NodeLocation getCentralNodeLocation()
isStartGUI
public boolean isStartGUI()
- Returns:
- Returns the startGUI.
getClusterSpaceDescriptors
public java.util.List getClusterSpaceDescriptors()
- Returns:
getClusterEventRegistryDescriptors
public java.util.List getClusterEventRegistryDescriptors()
- Returns:
- Returns the clusterEventRegistryDescriptors.