org.objectweb.proactive.core.body.ibis
Class IbisBodyAdapter

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

public class IbisBodyAdapter
extends BodyAdapterImpl

An IBIS adapter for a RemoteBody. The Adpater is the generic entry point for remote calls to a RemoteBody using IBIS. 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
IbisBodyAdapter()
           
IbisBodyAdapter(IbisRemoteBody remoteBody)
           
IbisBodyAdapter(UniversalBody body)
           
 
Method Summary
 UniversalBody lookup(java.lang.String url)
          Looks-up an active object previously registered in a RMI registry.
 void register(java.lang.String url)
          Registers an active object into a RMI registry.
 void unregister(java.lang.String url)
          Unregisters an active object previously registered into a RMI registry.
 
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

IbisBodyAdapter

public IbisBodyAdapter()

IbisBodyAdapter

public IbisBodyAdapter(IbisRemoteBody remoteBody)
                throws ProActiveException

IbisBodyAdapter

public IbisBodyAdapter(UniversalBody body)
                throws ProActiveException
Method Detail

register

public void register(java.lang.String url)
              throws java.io.IOException
Registers an active object into a RMI registry. In fact it is the remote version of the body of the active object that is registered into the RMI Registry under the given URL.

Specified by:
register in class BodyAdapterImpl
Parameters:
url - the url under which the remote body is registered.
Throws:
java.io.IOException - if the remote body cannot be registered

unregister

public void unregister(java.lang.String url)
                throws java.io.IOException
Unregisters an active object previously registered into a RMI registry.

Specified by:
unregister in class BodyAdapterImpl
Parameters:
url - the url under which the active object is registered.
Throws:
java.io.IOException - if the remote object cannot be removed from the registry

lookup

public UniversalBody lookup(java.lang.String url)
                     throws java.io.IOException
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.

Specified by:
lookup in class BodyAdapterImpl
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 IbisRemoteBody


Copyright 2001-2005 INRIA All Rights Reserved.