tw.net.ocs
Interface OCSProxy

All Known Subinterfaces:
OCSClassProxy, OCSInterfaceProxy

public interface OCSProxy

Interface implemented by all OCSProxies as generated by the OCSClassProxyFactory or the OCSInterfaceProxyFactory. All method names have prefix "ocs" to make it (next to) sure they don't coincide with method names of the proxy-fied subject classes.

Author:
Tillmann Wegst

Method Summary
 void ocsDetachFromSubject()
           Detaches the proxy from its subject.
 OCSClient ocsGetClient()
          Returns the OCSClient used by the proxy to forward requests to the subject.
 java.lang.String ocsGetSubjectAddress()
          Returns the address of the server hosting the proxy's subject.
 java.lang.String ocsGetSubjectID()
           Returns the ID of the proxy's subject.
 

Method Detail

ocsGetSubjectID

java.lang.String ocsGetSubjectID()
Returns the ID of the proxy's subject.

The returned value is null, if the proxy
has been detached from the subject.
                

Returns:
the ID of the subject

ocsGetSubjectAddress

java.lang.String ocsGetSubjectAddress()
Returns the address of the server hosting the proxy's subject.

Returns:
the subject's address

ocsGetClient

OCSClient ocsGetClient()
Returns the OCSClient used by the proxy to forward requests to the subject.

Returns:
the associated OCSClient instance
Since:
1.3

ocsDetachFromSubject

void ocsDetachFromSubject()
Detaches the proxy from its subject.

Note that a detached proxy becomes unusable. Do not call methods
on a proxy which has been detached from its subject.

Note that proxies are separated from their subjects automatically
when they get finalized() or when the OCSClient they are associated
with, shuts down.
                

Since:
1.3


OCSelot @ www.ocselot.net www.ocselot.net