|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.root1.simon.SimonProxy
public class SimonProxy
The InvocationHandler which redirects each method call over the network to the related dispatcher
Constructor Summary | |
---|---|
protected |
SimonProxy(Dispatcher dispatcher,
org.apache.mina.core.session.IoSession session,
java.lang.String remoteObjectName,
java.lang.Class<?>[] remoteInterfaces)
Constructor which sets the reference to the dispatcher and the remote object name |
Method Summary | |
---|---|
protected java.lang.String |
getDetailString()
|
protected Dispatcher |
getDispatcher()
Returns the Dispatcher instance related to this proxy. |
protected org.apache.mina.core.session.IoSession |
getIoSession()
Returns the IoSession related to this proxy |
protected java.net.SocketAddress |
getLocalSocketAddress()
Returns the SocketAddress of the local host connected with this proxy |
protected java.lang.String |
getRemoteObjectName()
Returns the proxy's remote object name in the related lookup table |
protected java.net.SocketAddress |
getRemoteSocketAddress()
Returns the SocketAddress of the remote host connected with this proxy |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected Dispatcher |
release()
Releases this proxy. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SimonProxy(Dispatcher dispatcher, org.apache.mina.core.session.IoSession session, java.lang.String remoteObjectName, java.lang.Class<?>[] remoteInterfaces)
dispatcher
- a reference to the underlying dispatchersession
- a reference to the IoSession
of the corresponding network connectionremoteObjectName
- name of the remote objectremoteInterfaces
- the interfaces that the remote object has exportedMethod Detail |
---|
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
protected java.net.SocketAddress getRemoteSocketAddress()
SocketAddress
of the remote host connected with this proxy
SocketAddress
of the remote hostprotected java.net.SocketAddress getLocalSocketAddress()
SocketAddress
of the local host connected with this proxy
SocketAddress
of the local hostprotected Dispatcher release()
Dispatcher
.
Dispatcher
related to this proxy.public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getDetailString()
protected java.lang.String getRemoteObjectName()
protected org.apache.mina.core.session.IoSession getIoSession()
IoSession
related to this proxy
IoSession
protected Dispatcher getDispatcher()
Dispatcher
instance related to this proxy.
May return null in case of an already shutdown session
Dispatcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |