|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A VirtualNode
is a conceptual entity that represents one or several nodes. After activation
a VirtualNode
represents one or several nodes.
ProActiveDescriptor
,
VirtualMachine
Field Summary | |
static org.apache.log4j.Logger |
vnlogger
|
Method Summary | |
void |
activate()
Activates all the Nodes mapped to this VirtualNode in the XML Descriptor |
void |
addVirtualMachine(VirtualMachine virtualMachine)
Adds a VirtualMachine entity to this VirtualNode |
int |
createdNodeCount()
Returns the number of Nodes already created among the Nodes mapped to this VirtualNode in the XML Descriptor |
void |
createNodeOnCurrentJvm(java.lang.String protocol)
Creates a node with the given protocol(or null) on the current jvm, ie the jvm that originates the creation of this VirtualNode. |
java.security.cert.X509Certificate |
getCreatorCertificate()
|
int |
getMinNumberOfNodes()
Returns the minimum number of nodes needed for this VirtualNode. |
java.lang.String |
getName()
Returns the name of this VirtualNode |
Node |
getNode()
Returns the first Node created among Nodes mapped to this VirtualNode in the XML Descriptor Another call to this method will return the following created node if any. |
Node |
getNode(int index)
Returns the Node mapped to this VirtualNode with the specified index. |
Node |
getNode(java.lang.String url)
Returns the node of the given url among nodes mapped to this VirtualNode in the xml descriptor or null if such node does not exist. |
int |
getNodeCount()
Returns the number of Nodes mapped to this VirtualNode in the XML Descriptor |
Node[] |
getNodes()
Returns all nodes mapped to this VirtualNode |
java.lang.String[] |
getNodesURL()
Returns all nodes url mapped to this VirualNode |
PolicyServer |
getPolicyServer()
|
java.lang.String |
getProperty()
Returns the value of property attribute. |
long |
getTimeout()
Returns the timeout of this VirtualNode |
java.lang.Object |
getUniqueAO()
Returns the unique active object created on the unique node mapped to this VirtualNode. |
VirtualMachine |
getVirtualMachine()
Returns the virtualMachine entity linked to this VirtualNode or if cyclic, returns one of the VirtualMachines linked to this VirtualNode with a cyclic manner(internal count incremented each time this method is called). |
boolean |
isActivated()
Returns true is this VirtualNode is already activated, false otherwise |
boolean |
isLookup()
|
boolean |
isMultiple()
checks the cardinality of the virtual node (i.e. whether the node is mapped to several nodes or not) |
void |
killAll(boolean softly)
Kills all nodes mapped to this VirtualNode. |
void |
setRuntimeInformations(java.lang.String information,
java.lang.String value)
Allows to set runtime informations for this VirtualNode activation. |
Methods inherited from interface org.objectweb.proactive.Job |
getJobID |
Field Detail |
public static final org.apache.log4j.Logger vnlogger
Method Detail |
public java.lang.String getProperty()
public java.lang.String getName()
public void addVirtualMachine(VirtualMachine virtualMachine)
virtualMachine
- public VirtualMachine getVirtualMachine()
public long getTimeout()
public void activate()
public int getNodeCount()
public int createdNodeCount()
public Node getNode() throws NodeException
NodeException
public Node getNode(int index) throws NodeException
index
-
NodeException
public java.lang.String[] getNodesURL() throws NodeException
NodeException
public Node[] getNodes() throws NodeException
NodeException
public Node getNode(java.lang.String url) throws NodeException
url
-
NodeException
public void createNodeOnCurrentJvm(java.lang.String protocol)
protocol
- the protocol to create the node. If null protocol will be set to the system property: proactive.communication.protocol.public void killAll(boolean softly)
softly
- if false, all jvms created when activating this VirtualNode are killed abruptely
if true a jvm that originates the creation of a rmi registry waits until registry is empty before
dying. To be more precise a thraed is created to ask periodically the registry if objects are still
registered.public java.lang.Object getUniqueAO() throws ProActiveException
ProActiveException
- if no active objects are created on this VirtualNode.public boolean isActivated()
public boolean isLookup()
public void setRuntimeInformations(java.lang.String information, java.lang.String value) throws ProActiveException
lookup virtualNode="vnName" host="*" protocol="rmi or jini", ie the name of the host where to perform the lookup will be known at runtime.We expect to implement several runtime informations. If this method fails, for instance, if the property does not exist or has already been set, or is performed on a VirtualNode not resulting from a lookup, an exception will be thrown but the application will carry on.
information
- the information to be set at runtimevalue
- the value of the information
ProActiveException
- if the given information does not exist or has alredy been setpublic int getMinNumberOfNodes()
public java.security.cert.X509Certificate getCreatorCertificate() throws ProActiveException
ProActiveException
public PolicyServer getPolicyServer()
public boolean isMultiple()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |