org.objectweb.proactive.core.component.body
Class ComponentBodyImpl

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
All Implemented Interfaces:
Body, ComponentBody, Job, LocalBodyStrategy, MessageEventProducer, Migratable, NFEProducer, SecurityEntity, java.io.Serializable, UniversalBody
Direct Known Subclasses:
ActiveBody

public class ComponentBodyImpl
extends MigratableBody
implements ComponentBody

This class has been inserted into the bodies hierarchy in order to instantiate the component metaobject (ProActiveComponent).

See Also:
Serialized Form

Field Summary
 
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
ComponentBodyImpl()
           
ComponentBodyImpl(java.lang.Object reifiedObject, java.lang.String nodeURL, Active activity, MetaObjectFactory factory, java.lang.String jobID)
          Constructor for ComponentBodyImpl.
 
Method Summary
 void finishedFunctionalActivity()
          Flag setter
 ProActiveComponentImpl getProActiveComponentImpl()
          Returns the a reference on the Component meta object
 boolean isActive()
          overrides the @link{Body#isActive()} method : when the process flow is inside a functional activity of a component, isActive corresponds to the started state in the lifecycle of the component, while !
 boolean isComponent()
           
 void keepShortcut(Shortcut shortcut)
           
 void startingFunctionalActivity()
          Flag setter
 
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
activityStopped, 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
 

Constructor Detail

ComponentBodyImpl

public ComponentBodyImpl()

ComponentBodyImpl

public ComponentBodyImpl(java.lang.Object reifiedObject,
                         java.lang.String nodeURL,
                         Active activity,
                         MetaObjectFactory factory,
                         java.lang.String jobID)
                  throws java.lang.reflect.InvocationTargetException,
                         ConstructorCallExecutionFailedException
Constructor for ComponentBodyImpl. It creates the component metaobject only if the MetaObjectFactory is parameterized with ComponentParameters (thus implicitely constructing components). It may also modifiy the activity to be compatible with the life cycle of the component and the management of non functional invocations.

Parameters:
reifiedObject - a reference on the reified object
nodeURL - node url
factory - factory for the corresponding metaobjects
Method Detail

getProActiveComponentImpl

public ProActiveComponentImpl getProActiveComponentImpl()
Returns the a reference on the Component meta object

Specified by:
getProActiveComponentImpl in interface ComponentBody
Returns:
the ProActiveComponent meta-object

isActive

public boolean isActive()
overrides the @link{Body#isActive()} method : when the process flow is inside a functional activity of a component, isActive corresponds to the started state in the lifecycle of the component, while !isActive corresponds to the stopped state. If the process flow is outside of the functional activity of a component, then return the default result for isActive() (unoverriden)

Specified by:
isActive in interface Body
Overrides:
isActive in class AbstractBody

isComponent

public boolean isComponent()
Specified by:
isComponent in interface ComponentBody

finishedFunctionalActivity

public void finishedFunctionalActivity()
Description copied from interface: ComponentBody
Flag setter

Specified by:
finishedFunctionalActivity in interface ComponentBody

startingFunctionalActivity

public void startingFunctionalActivity()
Description copied from interface: ComponentBody
Flag setter

Specified by:
startingFunctionalActivity in interface ComponentBody

keepShortcut

public void keepShortcut(Shortcut shortcut)


Copyright 2001-2005 INRIA All Rights Reserved.