org.objectweb.proactive.core.runtime.jini
Class JiniRuntimeImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.objectweb.proactive.core.runtime.rmi.RmiProActiveRuntimeImpl
org.objectweb.proactive.core.runtime.jini.JiniRuntimeImpl
- All Implemented Interfaces:
- net.jini.discovery.DiscoveryListener, java.util.EventListener, net.jini.lease.LeaseListener, java.rmi.Remote, RemoteProActiveRuntime, RmiProActiveRuntime, java.io.Serializable
- public class JiniRuntimeImpl
- extends RmiProActiveRuntimeImpl
- implements java.io.Serializable, net.jini.discovery.DiscoveryListener, net.jini.lease.LeaseListener, RmiProActiveRuntime
An adapter for a ProActiveRuntime to be able to receive remote calls. This helps isolate JINI-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,
Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class org.objectweb.proactive.core.runtime.rmi.RmiProActiveRuntimeImpl |
addAcquaintance, createBody, createVM, getAcquaintances, getActiveObjects, getActiveObjects, getCertificate, getCertificateEncoded, getClassDataFromParentRuntime, getClassDataFromThisRuntime, getDescriptor, getEntities, getJobID, getLocalNodeNames, getPolicy, getProActiveRuntime, getProActiveRuntimes, getProtocol, getPublicKey, getVirtualNode, getVMInformation, getVNName, launchMain, newRemote, publicKeyExchange, randomValue, receiveBody, receiveCheckpoint, register, rmAcquaintance, secretKeyExchange, startNewSession, terminateSession, unregister |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.proactive.core.runtime.RemoteProActiveRuntime |
addAcquaintance, createBody, createVM, getAcquaintances, getActiveObjects, getActiveObjects, getCertificate, getCertificateEncoded, getClassDataFromParentRuntime, getClassDataFromThisRuntime, getDescriptor, getEntities, getJobID, getLocalNodeNames, getPolicy, getProActiveRuntime, getProActiveRuntimes, getPublicKey, getVirtualNode, getVMInformation, getVNName, launchMain, newRemote, publicKeyExchange, randomValue, receiveBody, receiveCheckpoint, register, rmAcquaintance, secretKeyExchange, startNewSession, terminateSession, unregister |
registrarsTable
protected java.util.Vector registrarsTable
jiniRuntimeMap
protected java.util.Hashtable jiniRuntimeMap
jiniNodeMap
protected java.util.Hashtable jiniNodeMap
jiniVirtualNodeMap
protected java.util.Hashtable jiniVirtualNodeMap
leaseManager
protected transient net.jini.lease.LeaseRenewalManager leaseManager
JiniRuntimeImpl
public JiniRuntimeImpl()
throws java.rmi.RemoteException
getProcessToDeploy
public ExternalProcess getProcessToDeploy(ProActiveRuntime proActiveRuntimeDist,
java.lang.String creatorID,
java.lang.String vmName,
java.lang.String padURL)
throws ProActiveException,
java.io.IOException
- Specified by:
getProcessToDeploy
in interface RemoteProActiveRuntime
- Overrides:
getProcessToDeploy
in class RmiProActiveRuntimeImpl
- Throws:
ProActiveException
java.io.IOException
createLocalNode
public java.lang.String createLocalNode(java.lang.String nodeName,
boolean replacePreviousBinding,
ProActiveSecurityManager securityManager,
java.lang.String vnname,
java.lang.String jobId)
throws java.rmi.RemoteException,
NodeException
- Specified by:
createLocalNode
in interface RemoteProActiveRuntime
- Overrides:
createLocalNode
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
NodeException
killAllNodes
public void killAllNodes()
throws java.rmi.RemoteException,
ProActiveException
- Specified by:
killAllNodes
in interface RemoteProActiveRuntime
- Overrides:
killAllNodes
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
ProActiveException
killNode
public void killNode(java.lang.String nodeName)
throws java.rmi.RemoteException,
ProActiveException
- Specified by:
killNode
in interface RemoteProActiveRuntime
- Overrides:
killNode
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
ProActiveException
killRT
public void killRT(boolean softly)
throws java.lang.Exception
- Specified by:
killRT
in interface RemoteProActiveRuntime
- Overrides:
killRT
in class RmiProActiveRuntimeImpl
- Throws:
java.lang.Exception
getURL
public java.lang.String getURL()
- Specified by:
getURL
in interface RemoteProActiveRuntime
- Overrides:
getURL
in class RmiProActiveRuntimeImpl
registerVirtualNode
public void registerVirtualNode(java.lang.String virtualNodeName,
boolean replacePreviousBinding)
throws java.rmi.RemoteException
- Specified by:
registerVirtualNode
in interface RemoteProActiveRuntime
- Overrides:
registerVirtualNode
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
unregisterVirtualNode
public void unregisterVirtualNode(java.lang.String virtualNodeName)
throws java.rmi.RemoteException,
ProActiveException
- Specified by:
unregisterVirtualNode
in interface RemoteProActiveRuntime
- Overrides:
unregisterVirtualNode
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
ProActiveException
unregisterAllVirtualNodes
public void unregisterAllVirtualNodes()
throws java.rmi.RemoteException,
ProActiveException
- Specified by:
unregisterAllVirtualNodes
in interface RemoteProActiveRuntime
- Overrides:
unregisterAllVirtualNodes
in class RmiProActiveRuntimeImpl
- Throws:
java.rmi.RemoteException
ProActiveException
discovered
public void discovered(net.jini.discovery.DiscoveryEvent evt)
- Specified by:
discovered
in interface net.jini.discovery.DiscoveryListener
discarded
public void discarded(net.jini.discovery.DiscoveryEvent evt)
- Specified by:
discarded
in interface net.jini.discovery.DiscoveryListener
notify
public void notify(net.jini.lease.LeaseRenewalEvent evt)
- Specified by:
notify
in interface net.jini.lease.LeaseListener
newServiceID
protected net.jini.core.lookup.ServiceID newServiceID()
Copyright 2001-2005 INRIA All Rights Reserved.