|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.rmi.stub.Stub
Super class of the stub classes generated by the RmiStubFactory
.
A stub gives access to an interface of a Fractal component.
More precisely, it gives access to the "functional" interface provided by
a server interface, and also gives access to the Interface
interface
implemented by this server interface. The
"functional" interface is implemented by a sub class of this class, while
the Interface
interface is implemented
by this class once and for all.
Field Summary | |
protected Identifier |
id
The identifier of the remote object to which this stub gives access. |
protected MarshallerFactory |
marshallerFactory
The marshaller factory to be used to create new invocation messages. |
protected Session_High |
session
The session that gives access to the remote object. |
protected SessionIdentifier |
sessionId
The identifier of the session that gives access to the remote object. |
Constructor Summary | |
Stub()
Constructs a new Stub . |
Method Summary | |
boolean |
equals(Object o)
Tests if the given object is equal to this stub. |
protected void |
finalize()
Finalizes this object. |
String |
getFcItfName()
Returns the name of this interface inside its component. |
Component |
getFcItfOwner()
Returns the component to which this interface belongs. |
Type |
getFcItfType()
Returns the type of this interface. |
Identifier[] |
getIdentifiers()
Returns the set of identifiers associated with this reference. |
protected Exception |
handleException(Exception e)
Handles an exception that happen in this stub. |
int |
hashCode()
Returns the hashcode of this stub. |
protected void |
invoke(Marshaller marshaller)
Sends the marshaller with the invocation data down the protocol stack. |
boolean |
isFcInternalItf()
Returns true if this interface is an internal interface. |
protected ReplyInterface |
prepareInvocation(Marshaller marshaller)
Prepares the marshaller prior to marshalling invocation data. |
protected Marshaller |
request()
Obtains a marshaller for marshalling invocation data. |
void |
setIdentifiers(Identifier[] ids)
Sets the set of identifiers associated with this reference. |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Identifier id
protected MarshallerFactory marshallerFactory
protected SessionIdentifier sessionId
protected Session_High session
Constructor Detail |
public Stub()
Stub
.
Method Detail |
public Identifier[] getIdentifiers()
getIdentifiers
in interface Reference
setIdentifiers(org.objectweb.jonathan.apis.binding.Identifier[])
public void setIdentifiers(Identifier[] ids)
setIdentifiers
in interface Reference
ids
- the set of identifiers to be associated with this reference.getIdentifiers()
public Component getFcItfOwner()
Interface
getFcItfOwner
in interface Interface
Component
interface of the component to which this
interface belongs.public String getFcItfName()
Interface
getFcItfName
in interface Interface
public Type getFcItfType()
Interface
org.objectweb.fractal.api.type
package should be
sufficient in most cases, but another one can be used if necessary.
getFcItfType
in interface Interface
public boolean isFcInternalItf()
Interface
isFcInternalItf
in interface Interface
protected Marshaller request() throws MarshalException
MarshalException
- if something goes wrong.protected ReplyInterface prepareInvocation(Marshaller marshaller) throws MarshalException
marshaller
- a marshaller to be used for the invocation data.
MarshalException
- if something goes wrong.protected void invoke(Marshaller marshaller) throws MarshalException
marshaller
- a marshaller with the invocation data.
MarshalException
- if something goes wrong.protected Exception handleException(Exception e)
e
- an exception.
ServerException
, i.e., an exception that was
thrown by the remote object and sent back in a reply message), or a
new RemoteException
encaspulating the given
exception in the other cases (case of an exception that was thrown
locally by the stub itself).public boolean equals(Object o)
o
- the object to be compared to this stub.
id
is
equal to the id
of this stub, false otherwise.public int hashCode()
id
of this stub.protected void finalize()
session
associated to this stub if it is not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |