org.objectweb.proactive.core.component.body
Class ComponentBodyImpl
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.body.migration.MigratableBody
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.proactive.Job |
getJobID |
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 objectnodeURL
- node urlfactory
- factory for the corresponding metaobjects
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.