org.objectweb.proactive.core.body
Class ActiveBody

java.lang.Object
  extended byorg.objectweb.proactive.core.body.AbstractUniversalBody
      extended byorg.objectweb.proactive.core.body.AbstractBody
          extended byorg.objectweb.proactive.core.body.BodyImpl
              extended byorg.objectweb.proactive.core.body.migration.MigratableBody
                  extended byorg.objectweb.proactive.core.component.body.ComponentBodyImpl
                      extended byorg.objectweb.proactive.core.body.ActiveBody
All Implemented Interfaces:
Body, ComponentBody, Job, LocalBodyStrategy, MessageEventProducer, Migratable, NFEProducer, java.lang.Runnable, SecurityEntity, java.io.Serializable, UniversalBody

public class ActiveBody
extends ComponentBodyImpl
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
bodyLogger, hasJustMigrated, migrationLogger, migrationManager
 
Fields inherited from class org.objectweb.proactive.core.body.BodyImpl
messageEventProducer, replyReceiver, requestReceiver
 
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
 
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)
          Builds 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.
 void startBody()
          Creates the active thread and start it using this runnable body.
 
Methods inherited from class org.objectweb.proactive.core.component.body.ComponentBodyImpl
finishedFunctionalActivity, getProActiveComponentImpl, isActive, isComponent, keepShortcut, startingFunctionalActivity
 
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.body.BodyImpl
addMessageEventListener, internalReceiveReply, internalReceiveRequest, removeImmediateService, removeMessageEventListener, setImmediateService, setImmediateService, updateNodeURL
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractBody
acceptCommunication, blockCommunication, checkNewLocation, disableAC, enableAC, enterInThreadStore, exitFromThreadStore, getCertificate, getCertificateEncoded, getEntities, getFTManager, getFuturePool, getName, getPolicy, getProActiveSecurityManager, getProActiveSPMDGroupManager, getPublicKey, getReifiedObject, getRequestQueue, getShortcutTargetBody, getSPMDGroup, getSPMDGroupSize, 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
addNFEListener, createShortcut, fireNFE, getID, getJobID, getNodeURL, getRemoteAdapter, removeNFEListener, 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
 
Methods inherited from interface org.objectweb.proactive.core.exceptions.manager.NFEProducer
addNFEListener, fireNFE, removeNFEListener
 
Methods inherited from interface org.objectweb.proactive.Job
getJobID
 

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
Builds 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

public 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 2001-2005 INRIA All Rights Reserved.