public class Node extends PropertyContainer implements Cloneable
Constructor and Description |
---|
Node()
Constructor
|
Node(ProtocolStack stack)
Constructor
Note: the protocol stack object actually deployed on the node is a copy of the stack passed as argument. |
Modifier and Type | Method and Description |
---|---|
Node |
clone()
Return a copy of this object
|
Set<String> |
getAllApplications()
Return a set containing all the application names.
|
Application |
getApplication(String name)
Return the application with the specified name
|
ProtocolStack |
getProtocolStack()
Return the protocol stack deployed on the node
|
Application |
removeApplication(String name)
Remove a specific application from the node
|
void |
removeProtocolStack()
Removes the protocol stack deployed on the node, if any.
|
void |
setApplication(Application application)
Deploy the specified application on the node.
|
void |
setProtocolStack(ProtocolStack stack)
Deploy the specified protocol stack on the node.
|
getAllProperties, getProperty, hasProperty, removeProperty, setProperty
public Node()
public Node(ProtocolStack stack)
stack
- The protocol stack of the node.public ProtocolStack getProtocolStack()
ProtocolStack
object, if present. Otherwise,
null
is returned.ProtocolStack
public void setProtocolStack(ProtocolStack stack)
stack
- The protocol stack to deployProtocolStack
public void removeProtocolStack()
null
with
the setProtocolStack
method.setProtocolStack(ProtocolStack)
public Application getApplication(String name)
name
- the name of the applicationApplication
object, if present. Otherwise,
null
is returned.Application
public Set<String> getAllApplications()
getApplication(String)
getApplication(String)
public void setApplication(Application application)
application
- The application to deployApplication
public Application removeApplication(String name)
name
- The name of the application to removeApplication
object, if was present
on the node. Otherwise null
is returned.public Node clone()
clone
in class PropertyContainer