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

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

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
 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)
           
 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)
           
 void updateLocalNodeVirtualName()
           
 

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
java.rmi.RemoteException
NodeException

killAllNodes

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

killNode

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

createVM

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

getLocalNodeNames

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

getVMInformation

public VMInformation getVMInformation()
                               throws java.rmi.RemoteException
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
java.rmi.RemoteException

getProActiveRuntimes

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

getProActiveRuntime

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

killRT

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

getURL

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

getActiveObjects

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

getActiveObjects

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

getVirtualNode

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

registerVirtualNode

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

unregisterVirtualNode

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

unregisterAllVirtualNodes

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

getJobID

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

createBody

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

receiveBody

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

getCreatorCertificate

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

getPolicyServer

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

setProActiveSecurityManager

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

getVNName

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

setDefaultNodeVirtualNodeNAme

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

updateLocalNodeVirtualName

public void updateLocalNodeVirtualName()
                                throws java.rmi.RemoteException
java.rmi.RemoteException

getNodePolicyServer

public PolicyServer getNodePolicyServer(java.lang.String nodeName)
                                 throws java.rmi.RemoteException
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

java.rmi.RemoteException

getNodeCertificate

public java.security.cert.X509Certificate getNodeCertificate(java.lang.String nodeName)
                                                      throws java.rmi.RemoteException
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
java.rmi.RemoteException

getEntities

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

getEntities

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


Copyright © April 2004 INRIA All Rights Reserved.