org.objectweb.proactive.core.runtime.rmi
Interface RemoteProActiveRuntime

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteProActiveRuntimeImpl

public interface RemoteProActiveRuntime
extends java.rmi.Remote

An adapter for a ProActiveRuntime to be able to receive remote calls. This helps isolate RMI-specific code into a small set of specific classes, thus enabling reuse if we one day decide to switch to anothe remote objects library.

See Also:
Adapter Pattern

Field Summary
static org.apache.log4j.Logger logger
           
 
Method Summary
 void addParent(java.lang.String proActiveRuntimeName)
           
 UniversalBody createBody(java.lang.String nodeName, ConstructorCall bodyConstructorCall, boolean isNodeLocal)
           
 java.lang.String createLocalNode(java.lang.String nodeName, boolean replacePreviousBinding, PolicyServer ps, java.lang.String VNname, java.lang.String jobId)
           
 void createVM(UniversalProcess remoteProcess)
           
 void enableSecurityIfNeeded()
          sets all needed modifications to enable security components MUST be called when the descriptor is ready
 java.util.ArrayList getActiveObjects(java.lang.String nodeName)
           
 java.util.ArrayList getActiveObjects(java.lang.String nodeName, java.lang.String objectName)
           
 java.security.cert.X509Certificate getCreatorCertificate()
           
 java.util.ArrayList getEntities()
           
 java.util.ArrayList getEntities(java.lang.String nodeName)
           
 java.util.ArrayList getEntities(UniversalBody uBody)
           
 java.lang.String getJobID(java.lang.String nodeUrl)
           
 java.lang.String[] getLocalNodeNames()
           
 java.security.cert.X509Certificate getNodeCertificate(java.lang.String nodeName)
           
 PolicyServer getNodePolicyServer(java.lang.String nodeName)
           
 java.lang.String[] getParents()
           
 SecurityContext getPolicy(SecurityContext sc)
           
 PolicyServer getPolicyServer()
           
 ProActiveRuntime getProActiveRuntime(java.lang.String proActiveRuntimeName)
           
 ProActiveRuntime[] getProActiveRuntimes()
           
 java.lang.String getURL()
           
 VirtualNode getVirtualNode(java.lang.String virtualNodeName)
           
 VMInformation getVMInformation()
           
 java.lang.String getVNName(java.lang.String Nodename)
           
 void killAllNodes()
           
 void killNode(java.lang.String nodeName)
           
 void killRT(boolean softly)
           
 UniversalBody receiveBody(java.lang.String nodeName, Body body)
           
 void register(ProActiveRuntime proActiveRuntimeDist, java.lang.String proActiveRuntimeName, java.lang.String creatorID, java.lang.String creationProtocol, java.lang.String vmName)
           
 void registerVirtualNode(java.lang.String virtualNodeName, boolean replacePreviousBinding)
           
 void setDefaultNodeVirtualNodeNAme(java.lang.String s)
           
 void setProActiveSecurityManager(ProActiveSecurityManager ps)
           
 void unregisterAllVirtualNodes()
           
 void unregisterVirtualNode(java.lang.String virtualNodeName)
           
 

Field Detail

logger

public static final org.apache.log4j.Logger logger
Method Detail

createLocalNode

public java.lang.String createLocalNode(java.lang.String nodeName,
                                        boolean replacePreviousBinding,
                                        PolicyServer ps,
                                        java.lang.String VNname,
                                        java.lang.String jobId)
                                 throws java.rmi.RemoteException,
                                        NodeException
Throws:
java.rmi.RemoteException
NodeException

killAllNodes

public void killAllNodes()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

killNode

public void killNode(java.lang.String nodeName)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

createVM

public void createVM(UniversalProcess remoteProcess)
              throws java.rmi.RemoteException,
                     java.io.IOException
Throws:
java.rmi.RemoteException
java.io.IOException

getLocalNodeNames

public java.lang.String[] getLocalNodeNames()
                                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getVMInformation

public VMInformation getVMInformation()
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

register

public void register(ProActiveRuntime proActiveRuntimeDist,
                     java.lang.String proActiveRuntimeName,
                     java.lang.String creatorID,
                     java.lang.String creationProtocol,
                     java.lang.String vmName)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getProActiveRuntimes

public ProActiveRuntime[] getProActiveRuntimes()
                                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getProActiveRuntime

public ProActiveRuntime getProActiveRuntime(java.lang.String proActiveRuntimeName)
                                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

addParent

public void addParent(java.lang.String proActiveRuntimeName)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getParents

public java.lang.String[] getParents()
                              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

killRT

public void killRT(boolean softly)
            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getURL

public java.lang.String getURL()
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getActiveObjects

public java.util.ArrayList getActiveObjects(java.lang.String nodeName)
                                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getActiveObjects

public java.util.ArrayList getActiveObjects(java.lang.String nodeName,
                                            java.lang.String objectName)
                                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getVirtualNode

public VirtualNode getVirtualNode(java.lang.String virtualNodeName)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

registerVirtualNode

public void registerVirtualNode(java.lang.String virtualNodeName,
                                boolean replacePreviousBinding)
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

unregisterVirtualNode

public void unregisterVirtualNode(java.lang.String virtualNodeName)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

unregisterAllVirtualNodes

public void unregisterAllVirtualNodes()
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getJobID

public java.lang.String getJobID(java.lang.String nodeUrl)
                          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

createBody

public UniversalBody createBody(java.lang.String nodeName,
                                ConstructorCall bodyConstructorCall,
                                boolean isNodeLocal)
                         throws java.rmi.RemoteException,
                                ConstructorCallExecutionFailedException,
                                java.lang.reflect.InvocationTargetException
Throws:
java.rmi.RemoteException
ConstructorCallExecutionFailedException
java.lang.reflect.InvocationTargetException

receiveBody

public UniversalBody receiveBody(java.lang.String nodeName,
                                 Body body)
                          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getCreatorCertificate

public java.security.cert.X509Certificate getCreatorCertificate()
                                                         throws java.rmi.RemoteException
Returns:
creator certificate
Throws:
java.rmi.RemoteException

getPolicyServer

public PolicyServer getPolicyServer()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setProActiveSecurityManager

public void setProActiveSecurityManager(ProActiveSecurityManager ps)
                                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getVNName

public java.lang.String getVNName(java.lang.String Nodename)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setDefaultNodeVirtualNodeNAme

public void setDefaultNodeVirtualNodeNAme(java.lang.String s)
                                   throws java.rmi.RemoteException
Parameters:
s -
Throws:
java.rmi.RemoteException

getNodePolicyServer

public PolicyServer getNodePolicyServer(java.lang.String nodeName)
                                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

enableSecurityIfNeeded

public void enableSecurityIfNeeded()
                            throws java.rmi.RemoteException
sets all needed modifications to enable security components MUST be called when the descriptor is ready

Throws:
java.rmi.RemoteException

getNodeCertificate

public java.security.cert.X509Certificate getNodeCertificate(java.lang.String nodeName)
                                                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getEntities

public java.util.ArrayList getEntities(java.lang.String nodeName)
                                throws java.rmi.RemoteException
Parameters:
nodeName -
Returns:
returns all entities associated to the node
Throws:
java.rmi.RemoteException

getEntities

public java.util.ArrayList getEntities(UniversalBody uBody)
                                throws java.rmi.RemoteException
Parameters:
uBody -
Returns:
returns all entities associated to the node
Throws:
java.rmi.RemoteException

getEntities

public java.util.ArrayList getEntities()
                                throws java.rmi.RemoteException
Returns:
returns all entities associated to this runtime
Throws:
java.rmi.RemoteException

getPolicy

public SecurityContext getPolicy(SecurityContext sc)
                          throws java.rmi.RemoteException,
                                 SecurityNotAvailableException
Parameters:
sc -
Throws:
java.rmi.RemoteException
SecurityNotAvailableException


Copyright ? October 2004 INRIA All Rights Reserved.