org.objectweb.proactive.core.body
Class ActiveBody

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.AbstractUniversalBody
        |
        +--org.objectweb.proactive.core.body.AbstractBody
              |
              +--org.objectweb.proactive.core.body.BodyImpl
                    |
                    +--org.objectweb.proactive.core.component.body.ComponentBodyImpl
                          |
                          +--org.objectweb.proactive.core.body.migration.MigratableBody
                                |
                                +--org.objectweb.proactive.core.body.ActiveBody
All Implemented Interfaces:
Body, ComponentBody, Job, LocalBodyStrategy, MessageEventProducer, Migratable, java.lang.Runnable, java.io.Serializable, UniversalBody

public class ActiveBody
extends MigratableBody
implements java.lang.Runnable, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.objectweb.proactive.core.body.migration.MigratableBody
hasJustMigrated, migrationManager
 
Fields inherited from class org.objectweb.proactive.core.body.BodyImpl
JobID, messageEventProducer, replyReceiver, requestReceiver
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractBody
internalBodySecurity, isSecurityOn, localBodyStrategy, openedSessions, pgm, psm, threadStore
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
bodyID, location, nodeURL, remoteBody, remoteBodyFactory
 
Constructor Summary
ActiveBody()
          Doesn't build anything, just for having one no-arg constructor
ActiveBody(ConstructorCall c, java.lang.String nodeURL, Active activity, MetaObjectFactory factory, java.lang.String jobID)
          Build the body object, then fires its service thread
 
Method Summary
protected  void activityStopped()
          Signals that the activity of this body, managed by the active thread has just stopped.
 void run()
          The method executed by the active thread that will eventually launch the live method of the active object of the default live method of this body.
protected  void startBody()
          Creates the active thread and start it using this runnable body.
 
Methods inherited from class org.objectweb.proactive.core.body.migration.MigratableBody
activityStarted, addMigrationEventListener, changeBodyAfterMigration, cloneTo, internalMigrateTo, migrateTo, removeMigrationEventListener
 
Methods inherited from class org.objectweb.proactive.core.component.body.ComponentBodyImpl
getProActiveComponent
 
Methods inherited from class org.objectweb.proactive.core.body.BodyImpl
addMessageEventListener, getJobID, internalReceiveReply, internalReceiveRequest, removeMessageEventListener, setImmediateService
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractBody
acceptCommunication, blockCommunication, checkNewLocation, disableAC, enableAC, enterInThreadStore, exitFromThreadStore, getCertificate, getCertificateEncoded, getEntities, getFuturePool, getName, getPolicy, getPolicyFrom, getPolicyTo, getProActiveSecurityManager, getPublicKey, getReifiedObject, getRequestQueue, getSPMDGroup, getVNName, initiateSession, isActive, isAlive, negociateKeyReceiverSide, publicKeyExchange, randomValue, receiveReply, receiveRequest, renegociateSessionIfNeeded, secretKeyExchange, sendRequest, serve, setLocalBodyImpl, setSPMDGroup, startDefaultProActiveSecurityManager, startNewSession, terminate, terminateSession, test, toString
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
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
getID, getNodeURL, getRemoteAdapter, updateLocation
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

ActiveBody

public ActiveBody()
Doesn't build anything, just for having one no-arg constructor


ActiveBody

public ActiveBody(ConstructorCall c,
                  java.lang.String nodeURL,
                  Active activity,
                  MetaObjectFactory factory,
                  java.lang.String jobID)
           throws java.lang.reflect.InvocationTargetException,
                  ConstructorCallExecutionFailedException
Build the body object, then fires its service thread

Method Detail

run

public void run()
The method executed by the active thread that will eventually launch the live method of the active object of the default live method of this body.

Specified by:
run in interface java.lang.Runnable

startBody

protected void startBody()
Creates the active thread and start it using this runnable body.


activityStopped

protected void activityStopped()
Signals that the activity of this body, managed by the active thread has just stopped.

Overrides:
activityStopped in class BodyImpl


Copyright © April 2004 INRIA All Rights Reserved.