|
|||||||||||
| 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()
|
Component |
getFcItfOwner()
|
Type |
getFcItfType()
|
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()
|
protected ReplyInterface |
prepareInvocation(Marshaller marshaller)
Prepares the marshaller prior to marshalling invocation data. |
protected Object |
replaceClassName(Object o)
|
protected Object |
replaceClassValue(Object o)
|
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 ReferencesetIdentifiers(org.objectweb.jonathan.apis.binding.Identifier[])public void setIdentifiers(Identifier[] ids)
setIdentifiers in interface Referenceids - the set of identifiers to be associated with this reference.getIdentifiers()public Component getFcItfOwner()
getFcItfOwner in interface Interfacepublic String getFcItfName()
getFcItfName in interface Interfacepublic Type getFcItfType()
getFcItfType in interface Interfacepublic boolean isFcInternalItf()
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).
protected Object replaceClassName(Object o)
throws ClassNotFoundException
ClassNotFoundExceptionprotected Object replaceClassValue(Object o)
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 | ||||||||||