|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.remoting.AbstractInvoker
org.jboss.remoting.RemoteClientInvoker
org.jboss.remoting.transport.mock.MockClientInvoker
MockClientInvoker
| Field Summary |
| Fields inherited from class org.jboss.remoting.RemoteClientInvoker |
connected |
| Fields inherited from class org.jboss.remoting.AbstractInvoker |
classbyteloader, localServerLocator, locator, log, logExtra |
| Constructor Summary | |
MockClientInvoker(InvokerLocator locator,
MockServerInvoker server)
|
|
| Method Summary | |
void |
connect()
connect to the remote invoker |
void |
disconnect()
disconnect from the remote invokere |
byte[] |
getClassBytes(String className)
method is called to retrieve a byte array of a Class for a given class name |
protected void |
handleConnect()
subclasses must implement this method to provide a hook to connect to the remote server, if this applies to the specific transport. |
protected void |
handleDisconnect()
subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies to the specific transport. |
boolean |
isConnected()
subclasses must provide this method to return true if their remote connection is connected and false if disconnected. |
protected byte[] |
transport(String sesionId,
byte[] buffer)
called to transport the marshalled invocation to the remote destination, and receive back the marshalled invocation bytes back. |
| Methods inherited from class org.jboss.remoting.RemoteClientInvoker |
finalize, invoke, postProcess, preProcess |
| Methods inherited from class org.jboss.remoting.AbstractInvoker |
addClass, getClientLocator, getLocator, loadClass, read, setClassLoader, setClientLocator, unmarshal |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.remoting.transport.ClientInvoker |
getClientLocator, setClientLocator |
| Methods inherited from interface org.jboss.remoting.Invoker |
getLocator |
| Constructor Detail |
public MockClientInvoker(InvokerLocator locator,
MockServerInvoker server)
| Method Detail |
protected void handleConnect()
throws ConnectionFailedException
handleConnect in class RemoteClientInvokerConnectionFailedExceptionprotected void handleDisconnect()
handleDisconnect in class RemoteClientInvokerpublic byte[] getClassBytes(String className)
AbstractInvoker
getClassBytes in class AbstractInvokerclassName -
public void connect()
throws ConnectionFailedException
RemoteClientInvoker
connect in interface ClientInvokerconnect in class RemoteClientInvokerConnectionFailedExceptionpublic void disconnect()
RemoteClientInvoker
disconnect in interface ClientInvokerdisconnect in class RemoteClientInvokerpublic boolean isConnected()
RemoteClientInvoker
isConnected in interface ClientInvokerisConnected in class RemoteClientInvoker
protected byte[] transport(String sesionId,
byte[] buffer)
throws IOException
RemoteClientInvoker
transport in class RemoteClientInvokersesionId - session id to pass alongbuffer - buffer of the serialized method invocation to send to the server
IOException - fatal exception should only be raised in the case the transport write fails (but is still a valid connection)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||