|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.component.representative.ProActiveComponentRepresentativeImpl
An object of type Component
which is a remote reference on a
component.
When creating an active object of type A
, you get a reference
on the active object through a dynamically generated stub of type
A
. Similarly, when creating a component, you get a reference
on an object of type Component
, in other words an instance of
this class.
During the construction of an instance of this class, references to
interfaces of the component are also dynamically generated : references to
functional interfaces corresponding to the server interfaces of the
component, and references to control interfaces. The idea is to save remote
invocations : when requesting a controller or an interface, the generated
corresponding interface is directly returned. Then, invocations on this
interface are reified and transferred to the actual component.
Constructor Summary | |
ProActiveComponentRepresentativeImpl(ComponentType componentType,
java.lang.String hierarchicalType,
java.lang.String controllersConfigFileLocation)
|
Method Summary | |
boolean |
equals(java.lang.Object component)
The comparison of component references is actually a comparison of unique identifiers accross jvms. |
java.lang.Object |
getFcInterface(java.lang.String interfaceName)
|
java.lang.Object[] |
getFcInterfaces()
|
Type |
getFcType()
|
UniqueID |
getID()
Only valid for a single element. return null for a group. |
Proxy |
getProxy()
|
java.lang.Object |
getReferenceOnBaseObject()
accessor to the base object : either a direct reference or a stub |
Component |
getRepresentativeOnThis()
provides a reference to the current component |
StubObject |
getStubOnBaseObject()
|
int |
hashCode()
|
protected boolean |
isControllerInterface(java.lang.String interfaceName)
|
protected java.lang.Object |
reifyCall(java.lang.String className,
java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Object[] effectiveParameters,
short priority)
|
void |
setProxy(Proxy proxy)
|
void |
setStubOnBaseObject(StubObject stub)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProActiveComponentRepresentativeImpl(ComponentType componentType, java.lang.String hierarchicalType, java.lang.String controllersConfigFileLocation)
Method Detail |
protected java.lang.Object reifyCall(java.lang.String className, java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Object[] effectiveParameters, short priority)
public java.lang.Object getFcInterface(java.lang.String interfaceName) throws NoSuchInterfaceException
getFcInterface
in interface Component
NoSuchInterfaceException
public java.lang.Object[] getFcInterfaces()
getFcInterfaces
in interface Component
public Type getFcType()
getFcType
in interface Component
public Proxy getProxy()
getProxy
in interface StubObject
public void setProxy(Proxy proxy)
setProxy
in interface StubObject
public boolean equals(java.lang.Object component)
equals
in interface ProActiveComponent
public int hashCode()
public UniqueID getID()
getID
in interface ProActiveComponent
public java.lang.Object getReferenceOnBaseObject()
ProActiveComponent
getReferenceOnBaseObject
in interface ProActiveComponent
public Component getRepresentativeOnThis()
ProActiveComponent
getRepresentativeOnThis
in interface ProActiveComponent
public StubObject getStubOnBaseObject()
getStubOnBaseObject
in interface ProActiveComponentRepresentative
public void setStubOnBaseObject(StubObject stub)
setStubOnBaseObject
in interface ProActiveComponentRepresentative
protected boolean isControllerInterface(java.lang.String interfaceName) throws NoSuchInterfaceException
NoSuchInterfaceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |