org.objectweb.proactive.core.component.representative
Class ProActiveComponentRepresentativeImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.component.representative.ProActiveComponentRepresentativeImpl
All Implemented Interfaces:
AttributeController, BindingController, Component, ComponentParametersController, ContentController, Interface, LifeCycleController, ProActiveComponent, ProActiveComponentRepresentative, java.io.Serializable, StubObject

public class ProActiveComponentRepresentativeImpl
extends java.lang.Object
implements ProActiveComponentRepresentative, BindingController, LifeCycleController, ContentController, ComponentParametersController, Interface, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
ProActiveComponentRepresentativeImpl(ComponentParameters componentParameters, Proxy proxy)
           
 
Method Summary
 void addFcSubComponent(Component subComponent)
          see ContentController.addFcSubComponent(Component)
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
          see BindingController.bindFc(java.lang.String, java.lang.Object)
 boolean equals(java.lang.Object component)
          The comparison of component references is actually a comparison of unique identifiers accross jvms.
 ComponentParameters getComponentParameters()
          see ComponentParametersController.getComponentParameters()
 java.lang.Object getFcInterface(java.lang.String interfaceName)
          see Component.getFcInterface(String)
 java.lang.Object[] getFcInterfaces()
          see Component.getFcInterfaces()
 java.lang.Object getFcInternalInterface(java.lang.String interfaceName)
          in this implementation, internal interfaces are also external interfaces. see ContentController.getFcInternalInterface(String)
 java.lang.Object[] getFcInternalInterfaces()
          see ContentController.getFcInternalInterfaces()
 java.lang.String getFcItfName()
          see Interface.getFcItfName()
 Component getFcItfOwner()
          see Interface.getFcItfOwner()
 Type getFcItfType()
          see Interface.getFcItfType()
 java.lang.String getFcState()
          see LifeCycleController.getFcState()
 Component[] getFcSubComponents()
          see ContentController.getFcSubComponents()
 Type getFcType()
          see Component.getFcType()
 UniqueID getID()
          getter for a unique identifier
 Proxy getProxy()
          see StubObject.getProxy()
 java.lang.Object getReferenceOnBaseObject()
          accessor to the base object : either a direct reference or a stub
 ComponentRequestQueue getRequestQueue()
          (non-Javadoc) only available in the meta-objects
 int hashCode()
           
 boolean isFcInternalItf()
          see Interface.isFcInternalItf()
 java.lang.String[] listFc()
          see BindingController.listFc()
 java.lang.Object lookupFc(java.lang.String clientItfName)
          see BindingController.lookupFc(String)
 void removeFcSubComponent(Component subComponent)
          see ContentController.removeFcSubComponent(Component)
 void setComponentName(java.lang.String componentName)
          see ComponentParametersController.setComponentName(java.lang.String)
 void setComponentParameters(ComponentParameters componentParameters)
          see ComponentParametersController.setComponentParameters(ComponentParameters)
 void setProxy(Proxy proxy)
          see StubObject.setProxy(Proxy)
 void startFc()
          see LifeCycleController.startFc()
 void stopFc()
          see LifeCycleController.stopFc()
 void unbindFc(java.lang.String clientItfName)
          see BindingController.unbindFc(String)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

ProActiveComponentRepresentativeImpl

public ProActiveComponentRepresentativeImpl(ComponentParameters componentParameters,
                                            Proxy proxy)
Method Detail

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
see BindingController.lookupFc(String)

Specified by:
lookupFc in interface BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
see BindingController.bindFc(java.lang.String, java.lang.Object)

Specified by:
bindFc in interface BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
see BindingController.unbindFc(String)

Specified by:
unbindFc in interface BindingController

getFcState

public java.lang.String getFcState()
see LifeCycleController.getFcState()

Specified by:
getFcState in interface LifeCycleController

startFc

public void startFc()
see LifeCycleController.startFc()

Specified by:
startFc in interface LifeCycleController

stopFc

public void stopFc()
see LifeCycleController.stopFc()

Specified by:
stopFc in interface LifeCycleController

getFcInternalInterfaces

public java.lang.Object[] getFcInternalInterfaces()
see ContentController.getFcInternalInterfaces()

Specified by:
getFcInternalInterfaces in interface ContentController

getFcInternalInterface

public java.lang.Object getFcInternalInterface(java.lang.String interfaceName)
                                        throws NoSuchInterfaceException
in this implementation, internal interfaces are also external interfaces. see ContentController.getFcInternalInterface(String)

Specified by:
getFcInternalInterface in interface ContentController
NoSuchInterfaceException

getFcSubComponents

public Component[] getFcSubComponents()
see ContentController.getFcSubComponents()

Specified by:
getFcSubComponents in interface ContentController

addFcSubComponent

public void addFcSubComponent(Component subComponent)
see ContentController.addFcSubComponent(Component)

Specified by:
addFcSubComponent in interface ContentController

removeFcSubComponent

public void removeFcSubComponent(Component subComponent)
see ContentController.removeFcSubComponent(Component)

Specified by:
removeFcSubComponent in interface ContentController

getFcItfOwner

public Component getFcItfOwner()
see Interface.getFcItfOwner()

Specified by:
getFcItfOwner in interface Interface

getFcItfName

public java.lang.String getFcItfName()
see Interface.getFcItfName()

Specified by:
getFcItfName in interface Interface

getFcItfType

public Type getFcItfType()
see Interface.getFcItfType()

Specified by:
getFcItfType in interface Interface

isFcInternalItf

public boolean isFcInternalItf()
see Interface.isFcInternalItf()

Specified by:
isFcInternalItf in interface Interface

getFcInterface

public java.lang.Object getFcInterface(java.lang.String interfaceName)
                                throws NoSuchInterfaceException
see Component.getFcInterface(String)

Specified by:
getFcInterface in interface Component
NoSuchInterfaceException

getFcInterfaces

public java.lang.Object[] getFcInterfaces()
see Component.getFcInterfaces()

Specified by:
getFcInterfaces in interface Component

getFcType

public Type getFcType()
see Component.getFcType()

Specified by:
getFcType in interface Component

getProxy

public Proxy getProxy()
see StubObject.getProxy()

Specified by:
getProxy in interface StubObject

setProxy

public void setProxy(Proxy proxy)
see StubObject.setProxy(Proxy)

Specified by:
setProxy in interface StubObject

equals

public boolean equals(java.lang.Object component)
The comparison of component references is actually a comparison of unique identifiers accross jvms.

Specified by:
equals in interface ProActiveComponent
Overrides:
equals in class java.lang.Object
Returns:
true if both components are equals

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getID

public UniqueID getID()
Description copied from interface: ProActiveComponent
getter for a unique identifier

Specified by:
getID in interface ProActiveComponent
Returns:
a unique identifier of the component (of the active object) accross virtual machines

setComponentParameters

public void setComponentParameters(ComponentParameters componentParameters)
see ComponentParametersController.setComponentParameters(ComponentParameters)

Specified by:
setComponentParameters in interface ComponentParametersController
Parameters:
componentParameters - the component parameters

getComponentParameters

public ComponentParameters getComponentParameters()
see ComponentParametersController.getComponentParameters()

Specified by:
getComponentParameters in interface ComponentParametersController
Returns:
the component parameters

listFc

public java.lang.String[] listFc()
see BindingController.listFc()

Specified by:
listFc in interface BindingController

setComponentName

public void setComponentName(java.lang.String componentName)
see ComponentParametersController.setComponentName(java.lang.String)

Specified by:
setComponentName in interface ComponentParametersController
Parameters:
componentName - the new name of the component

getReferenceOnBaseObject

public java.lang.Object getReferenceOnBaseObject()
Description copied from interface: ProActiveComponent
accessor to the base object : either a direct reference or a stub

Specified by:
getReferenceOnBaseObject in interface ProActiveComponent
Returns:
a reference on the base object. If called from the meta-objects, it returns a direct reference on the base object. If called from the representative, it returns a stub on the base object (standard ProActive stub, same type than the base object)
See Also:
ProActiveComponent.getReferenceOnBaseObject()

getRequestQueue

public ComponentRequestQueue getRequestQueue()
(non-Javadoc) only available in the meta-objects

Specified by:
getRequestQueue in interface ProActiveComponent
Returns:
a reference to the queue of request of this active object


Copyright © April 2004 INRIA All Rights Reserved.