org.objectweb.proactive.core.body
Class HalfBody

java.lang.Object
  extended byorg.objectweb.proactive.core.body.AbstractUniversalBody
      extended byorg.objectweb.proactive.core.body.AbstractBody
          extended byorg.objectweb.proactive.core.body.HalfBody
All Implemented Interfaces:
Body, Job, LocalBodyStrategy, MessageEventProducer, NFEProducer, SecurityEntity, java.io.Serializable, UniversalBody

public class HalfBody
extends AbstractBody

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractBody
ftmanager, internalBodySecurity, isInterfaceSecureImplemented, isSecurityOn, localBodyStrategy, openedSessions, psm, spmdManager, threadStore
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
bodyID, jobID, location, nodeURL, remoteBody, remoteBodyFactory, shortcuts
 
Fields inherited from interface org.objectweb.proactive.core.body.UniversalBody
bodyLogger
 
Method Summary
 void addMessageEventListener(MessageEventListener listener)
          Adds a listener of MessageEvent to this body.
 void addNFEListener(NFEListener listener)
           
 int fireNFE(NonFunctionalException e)
           
static HalfBody getHalfBody(MetaObjectFactory factory)
           
 java.lang.String getJobID()
           
protected  int internalReceiveReply(Reply reply)
          Receives a reply in response to a former request.
protected  int internalReceiveRequest(Request request)
          Receives a request for later processing.
 void removeImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes)
          Removes an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread.
 void removeMessageEventListener(MessageEventListener listener)
          Removes the MessageEventListener from this body.
 void removeNFEListener(NFEListener listener)
           
 void setImmediateService(java.lang.String methodName)
          For setting an immediate service for this body.
 void setImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes)
          Adds an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread.
 void updateNodeURL(java.lang.String newNodeURL)
          Set the nodeURL of this body
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractBody
acceptCommunication, activityStarted, activityStopped, blockCommunication, checkNewLocation, disableAC, enableAC, enterInThreadStore, exitFromThreadStore, getCertificate, getCertificateEncoded, getEntities, getFTManager, getFuturePool, getName, getPolicy, getProActiveSecurityManager, getProActiveSPMDGroupManager, getPublicKey, getReifiedObject, getRequestQueue, getShortcutTargetBody, getSPMDGroup, getSPMDGroupSize, isActive, isAlive, publicKeyExchange, randomValue, receiveFTMessage, receiveReply, receiveRequest, registerIncomingFutures, renegociateSessionIfNeeded, secretKeyExchange, sendRequest, serve, setFTManager, setLocalBodyImpl, setPolicyServer, setSPMDGroup, startDefaultProActiveSecurityManager, startNewSession, terminate, terminateSession, toString
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
createShortcut, getID, getNodeURL, getRemoteAdapter, updateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.body.UniversalBody
createShortcut, getID, getNodeURL, getRemoteAdapter, updateLocation
 

Method Detail

getHalfBody

public static HalfBody getHalfBody(MetaObjectFactory factory)

addMessageEventListener

public void addMessageEventListener(MessageEventListener listener)
Description copied from interface: MessageEventProducer
Adds a listener of MessageEvent to this body. The listener will receive event for all messages sent or received

Parameters:
listener - the listener to add

removeMessageEventListener

public void removeMessageEventListener(MessageEventListener listener)
Description copied from interface: MessageEventProducer
Removes the MessageEventListener from this body.

Parameters:
listener - the listener to remove

internalReceiveRequest

protected int internalReceiveRequest(Request request)
                              throws java.io.IOException
Receives a request for later processing. The call to this method is non blocking unless the body cannot temporary receive the request.

Specified by:
internalReceiveRequest in class AbstractBody
Parameters:
request - the request to process
Throws:
java.io.IOException - if the request cannot be accepted

internalReceiveReply

protected int internalReceiveReply(Reply reply)
                            throws java.io.IOException
Receives a reply in response to a former request.

Specified by:
internalReceiveReply in class AbstractBody
Parameters:
reply - the reply received
Throws:
java.io.IOException - if the reply cannot be accepted

setImmediateService

public void setImmediateService(java.lang.String methodName)
Description copied from interface: UniversalBody
For setting an immediate service for this body. An immediate service is a method that will bw excecuted by the calling thread.


setImmediateService

public void setImmediateService(java.lang.String methodName,
                                java.lang.Class[] parametersTypes)
Description copied from interface: UniversalBody
Adds an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread.

Parameters:
methodName - the name of the method
parametersTypes - the types of the parameters of the method

removeImmediateService

public void removeImmediateService(java.lang.String methodName,
                                   java.lang.Class[] parametersTypes)
Description copied from interface: UniversalBody
Removes an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread.

Parameters:
methodName - the name of the method
parametersTypes - the types of the parameters of the method

getJobID

public java.lang.String getJobID()
Specified by:
getJobID in interface Job
Overrides:
getJobID in class AbstractUniversalBody
See Also:
Job.getJobID()

updateNodeURL

public void updateNodeURL(java.lang.String newNodeURL)
Description copied from interface: Body
Set the nodeURL of this body

Parameters:
newNodeURL - the new URL of the node

addNFEListener

public void addNFEListener(NFEListener listener)
Specified by:
addNFEListener in interface NFEProducer
Overrides:
addNFEListener in class AbstractUniversalBody

removeNFEListener

public void removeNFEListener(NFEListener listener)
Specified by:
removeNFEListener in interface NFEProducer
Overrides:
removeNFEListener in class AbstractUniversalBody

fireNFE

public int fireNFE(NonFunctionalException e)
Specified by:
fireNFE in interface NFEProducer
Overrides:
fireNFE in class AbstractUniversalBody


Copyright 2001-2005 INRIA All Rights Reserved.