|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ProactiveDescriptor
is an internal representation of XML
Descriptor. It offers a set of services to access/activate/desactivate
VirtualNode
.
VirtualNode
,
VirtualMachine
Method Summary | |
void |
activateMapping(java.lang.String virtualNodeName)
Activates the specified VirtualNode defined in the XML Descriptor |
void |
activateMappings()
Activates all VirtualNodes defined in the XML Descriptor. |
void |
createPolicyServer(java.lang.String file)
Intialize application security policy |
ExternalProcess |
createProcess(java.lang.String processClassName)
Returns a new instance of ExternalProcess from processClassName |
ExternalProcess |
createProcess(java.lang.String processID,
java.lang.String processClassName)
Creates an ExternalProcess of the given className with the specified ProcessID |
VirtualMachine |
createVirtualMachine(java.lang.String vmName)
Creates a VirtualMachine of the given name |
VirtualNode |
createVirtualNode(java.lang.String vnName,
boolean lookup)
Creates a VirtualNode with the given name If the VirtualNode with the given name has previously been created, this method returns it. |
PolicyServer |
getPolicyServer()
|
ExternalProcess |
getProcess(java.lang.String name)
Returns the Process of the given name |
java.lang.String |
getSecurityFilePath()
|
VirtualMachine |
getVirtualMachine(java.lang.String name)
Returns the VitualMachine of the given name |
VirtualNode |
getVirtualNode(java.lang.String name)
Returns the specified VirtualNode |
int |
getVirtualNodeMappingSize()
Returns the size of virualNodeMapping HashMap |
VirtualNode[] |
getVirtualNodes()
Returns all VirtualNodes described in the XML Descriptor |
void |
killall(boolean softly)
Kills all Nodes and JVMs(local or remote) created when activating the descriptor |
void |
registerProcess(ExternalProcessDecorator compositeProcess,
java.lang.String processID)
Registers the specified composite process with the specified processID. |
void |
registerProcess(VirtualMachine virtualMachine,
java.lang.String processID)
Maps the process given by the specified processID with the specified virtualMachine. |
Method Detail |
public VirtualNode[] getVirtualNodes()
public VirtualNode getVirtualNode(java.lang.String name)
name
- name of the VirtualNode
public VirtualMachine getVirtualMachine(java.lang.String name)
name
-
public ExternalProcess getProcess(java.lang.String name)
name
-
public VirtualNode createVirtualNode(java.lang.String vnName, boolean lookup)
vnName
- lookup
- if true, at creation time the VirtualNode will be a VirtualNodeLookup.
If false the created VirtualNode is a VirtualNodeImpl. Once the VirtualNode created this field
has no more influence when calling this method
public VirtualMachine createVirtualMachine(java.lang.String vmName)
vmName
-
public ExternalProcess createProcess(java.lang.String processID, java.lang.String processClassName) throws ProActiveException
processID
-
ProActiveException
- if a problem occurs during process creationpublic ExternalProcess createProcess(java.lang.String processClassName) throws ProActiveException
processClassName
-
ProActiveException
- if a problem occurs during process creationpublic void registerProcess(VirtualMachine virtualMachine, java.lang.String processID)
virtualMachine
- processID
- public void registerProcess(ExternalProcessDecorator compositeProcess, java.lang.String processID)
compositeProcess
- processID
- public void activateMappings()
public void activateMapping(java.lang.String virtualNodeName)
virtualNodeName
- name of the VirtulNode to be activatedpublic void killall(boolean softly) throws ProActiveException
softly
- if false, all jvms created when activating the descriptor 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 thread is created to ask periodically the registry if objects are still
registered.
ProActiveException
- if a problem occurs when terminating all jvmspublic int getVirtualNodeMappingSize()
public void createPolicyServer(java.lang.String file)
file
- public PolicyServer getPolicyServer()
public java.lang.String getSecurityFilePath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |