|
|||||||||||
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 |
activateMain(java.lang.String mainDefinitionId)
Activates the main of the id-th mainDefinition |
void |
activateMains()
Activates all mains of mainDefinitions defined |
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 |
addService(java.lang.String serviceID,
UniversalService service)
Updates with the effective service, all objects that are mapped with the serviceID. |
void |
createMainDefinition(java.lang.String id)
Creates a new MainDefinition object and add it to the map |
void |
createProActiveSecurityManager(java.lang.String file)
Creates the initial Security Manager associated to an application |
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. |
VirtualNode |
createVirtualNode(java.lang.String vnName,
boolean lookup,
boolean isMainVN)
Creates a VirtualNode with the given name If the VirtualNode with the given name has previously been created, this method returns it. |
FileTransfer |
getFileTransfer(java.lang.String fileTransferID)
Gets an instance of the FileTransfer description. |
ExternalProcess |
getHierarchicalProcess(java.lang.String vmname)
Returns the process to deploy hierarchically |
java.util.Map |
getMainDefinitionMapping()
Returns the main definitions mapping |
MainDefinition[] |
getMainDefinitions()
Returns a table containing all mainDefinitions conserving order |
PolicyServer |
getPolicyServer()
|
ExternalProcess |
getProcess(java.lang.String name)
Returns the Process of the given name |
java.lang.String |
getSecurityFilePath()
|
UniversalService |
getService(java.lang.String serviceID)
Returns the Service of the given name |
java.lang.String |
getUrl()
Returns the Url of the pad |
VirtualMachine |
getVirtualMachine(java.lang.String name)
Returns the VitualMachine of the given name |
VirtualNode |
getVirtualNode(java.lang.String name)
Returns the specified VirtualNode |
java.util.Map |
getVirtualNodeMapping()
Returns the virtual nodes mapping |
int |
getVirtualNodeMappingSize()
Returns the size of virualNodeMapping HashMap |
VirtualNode[] |
getVirtualNodes()
Returns all VirtualNodes described in the XML Descriptor |
boolean |
isMainDefined()
return true if at least one mainDefinition is defined |
void |
killall(boolean softly)
Kills all Nodes and JVMs(local or remote) created when activating the descriptor |
void |
mainDefinitionAddParameter(java.lang.String parameter)
Adds the parameter parameter to the parameters of the last defined mainDefinition |
void |
mainDefinitionAddVirtualNode(VirtualNode virtualNode)
Adds a VirtualNode virtualNode to the last defined mainDefinition |
java.lang.String[] |
mainDefinitionGetParameters(java.lang.String mainDefinitionId)
Returns a table containing all the parameters of the last defined mainDefinition |
void |
mainDefinitionSetMainClass(java.lang.String mainClass)
Sets the mainClass attribute of the last defined mainDefinition |
void |
mapToExtendedJVM(JVMProcess jvmProcess,
java.lang.String processID)
Maps the given jvmProcess with the extended JVMProcess defined with processID. |
void |
registerHierarchicalProcess(HierarchicalProcess hp,
java.lang.String processID)
Registers the specified hierarchical process with the specified processID. |
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. |
void |
registerService(ServiceUser serviceUser,
java.lang.String serviceId)
Maps the service given by the specified serviceID with the specified virtualMachine. |
void |
setMainDefined(boolean mainDefined)
|
void |
setMainDefinitionMapping(java.util.HashMap newMapping)
|
void |
setVirtualNodeMapping(java.util.HashMap newMapping)
|
Method Detail |
public java.lang.String getUrl()
public void setMainDefined(boolean mainDefined)
public void createMainDefinition(java.lang.String id)
public void mainDefinitionSetMainClass(java.lang.String mainClass)
mainClass
- fully qualified name of the mainclasspublic void mainDefinitionAddParameter(java.lang.String parameter)
parameter
- parameter to addpublic void mainDefinitionAddVirtualNode(VirtualNode virtualNode)
virtualNode
- VirtualNode to addpublic boolean isMainDefined()
public void activateMains()
public void activateMain(java.lang.String mainDefinitionId)
mainDefinitionId
- key identifying a mainDefinitionpublic java.lang.String[] mainDefinitionGetParameters(java.lang.String mainDefinitionId)
mainDefinitionId
- key identifying a mainDefinition
public java.util.Map getMainDefinitionMapping()
public java.util.Map getVirtualNodeMapping()
public void setMainDefinitionMapping(java.util.HashMap newMapping)
public void setVirtualNodeMapping(java.util.HashMap newMapping)
public MainDefinition[] getMainDefinitions()
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 ExternalProcess getHierarchicalProcess(java.lang.String vmname)
vmname
-
public UniversalService getService(java.lang.String serviceID)
serviceID
-
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 VirtualNode createVirtualNode(java.lang.String vnName, boolean lookup, boolean isMainVN)
vnName
- lookup
- if true, at creation time the VirtualNode will be a VirtualNodeLookup.isMainVN
- true if the virtual node is linked to a main definition
public VirtualMachine createVirtualMachine(java.lang.String vmName)
vmName
-
public ExternalProcess createProcess(java.lang.String processID, java.lang.String processClassName) throws ProActiveException
processID
- processClassName
-
ProActiveException
- if a problem occurs during process creationpublic FileTransfer getFileTransfer(java.lang.String fileTransferID)
fileTransferID
- The ID of the filetransfer
public void addService(java.lang.String serviceID, UniversalService service)
serviceID
- service
- public 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 registerHierarchicalProcess(HierarchicalProcess hp, java.lang.String processID)
hp
- processID
- public void mapToExtendedJVM(JVMProcess jvmProcess, java.lang.String processID) throws ProActiveException
jvmProcess
- the jvm defined in the descriptor that contains the extendedJvm clauseprocessID
- id of the extended jvm
ProActiveException
- if the jvm with the given id does not exist.
In fact, it means that if the extended jvm is defined later on in the descriptor the exception
is thrown. The extended jvm must be defined before every other jvms that extend it.public void registerService(ServiceUser serviceUser, java.lang.String serviceId)
serviceUser
- serviceId
- 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 createProActiveSecurityManager(java.lang.String file)
file
- contains all related security information for the application :
certificate, policy rules, ...public PolicyServer getPolicyServer()
public java.lang.String getSecurityFilePath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |