org.objectweb.proactive.core.body.rmi
Class SshRmiBodyAdapter

java.lang.Object
  extended byorg.objectweb.proactive.core.body.BodyAdapter
      extended byorg.objectweb.proactive.core.body.BodyAdapterImpl
          extended byorg.objectweb.proactive.core.body.rmi.RmiBodyAdapter
              extended byorg.objectweb.proactive.core.body.rmi.SshRmiBodyAdapter
All Implemented Interfaces:
java.lang.Cloneable, Job, NFEProducer, SecurityEntity, java.io.Serializable, UniversalBody

public class SshRmiBodyAdapter
extends RmiBodyAdapter

An RMISSH adapter for a RemoteBody. The Adpater is the generic entry point for remote calls to a RemoteBody using RMISSH. This also allows to cache informations, and so to avoid crossing the network when calling some methods.

Since:
ProActive 2.2
Author:
ProActiveTeam
See Also:
smartProxy Pattern., Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.body.BodyAdapterImpl
proxiedRemoteBody
 
Fields inherited from class org.objectweb.proactive.core.body.BodyAdapter
bodyID, jobID
 
Fields inherited from interface org.objectweb.proactive.core.body.UniversalBody
bodyLogger
 
Constructor Summary
SshRmiBodyAdapter()
           
SshRmiBodyAdapter(UniversalBody body)
           
 
Method Summary
 UniversalBody lookup(java.lang.String url)
          Looks-up an active object previously registered in a RMI registry.
 
Methods inherited from class org.objectweb.proactive.core.body.rmi.RmiBodyAdapter
register, unregister
 
Methods inherited from class org.objectweb.proactive.core.body.BodyAdapterImpl
addNFEListener, changeProxiedBody, construct, createShortcut, disableAC, enableAC, equals, fireNFE, getCertificate, getCertificateEncoded, getEntities, getID, getJobID, getNodeURL, getPolicy, getPublicKey, getRemoteAdapter, hashCode, publicKeyExchange, randomValue, readResolve, receiveFTMessage, receiveReply, receiveRequest, removeImmediateService, removeNFEListener, secretKeyExchange, setImmediateService, setImmediateService, startNewSession, terminate, terminateSession, updateLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshRmiBodyAdapter

public SshRmiBodyAdapter()

SshRmiBodyAdapter

public SshRmiBodyAdapter(UniversalBody body)
                  throws ProActiveException
Method Detail

lookup

public UniversalBody lookup(java.lang.String url)
                     throws java.io.IOException
Description copied from class: RmiBodyAdapter
Looks-up an active object previously registered in a RMI registry. In fact it is the remote version of the body of an active object that can be registered into the RMI Registry under a given URL.

Overrides:
lookup in class RmiBodyAdapter
Parameters:
url - the url the remote Body is registered to
Returns:
a UniversalBody
Throws:
java.io.IOException - if the remote body cannot be found under the given url or if the object found is not of type RmiRemoteBody


Copyright 2001-2005 INRIA All Rights Reserved.