|
||||||||||
| 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.transport.local.LocalClientInvoker
public class LocalClientInvoker
LocalClientInvoker does not use any transport protocol for invoking the ServerInvoker, instead will make call directly on it locally. This increases performance since no serialization required as well as needed for push callbacks where InvokerCallbackHandler is in same JVM as the callback server.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.remoting.AbstractInvoker |
|---|
AbstractInvoker.CallbackLocatorHolder |
| Field Summary |
|---|
| Fields inherited from class org.jboss.remoting.AbstractInvoker |
|---|
classbyteloader, configuration, localServerLocators, locator, passConfigMapToMarshalFactory, serializationType, socketFactory, socketFactoryCreatedFromSSLParameters |
| Constructor Summary | |
|---|---|
LocalClientInvoker(InvokerLocator locator)
|
|
LocalClientInvoker(InvokerLocator locator,
java.util.Map configuration)
|
|
LocalClientInvoker(InvokerLocator locator,
java.util.Map configuration,
boolean byValue)
|
|
| Method Summary | |
|---|---|
void |
connect()
connect to the remote invoker |
void |
disconnect()
disconnect from the remote invoker. |
void |
establishLease(java.lang.String sessionID,
java.util.Map configuration,
long leasePeriod)
|
InvokerLocator |
getCallbackLocator(java.util.Map metadata)
Gets the locator to be used for callbacks when want do not want to establish a new physical connectiong from the server to the client. |
long |
getLeasePeriod(java.lang.String sessionID)
|
Marshaller |
getMarshaller()
|
UnMarshaller |
getUnMarshaller()
|
java.lang.Object |
invoke(InvocationRequest invocation)
transport a request against a remote ServerInvoker |
boolean |
isConnected()
subclasses must provide this method to return true if their remote connection is connected and false if disconnected. |
protected InvocationRequest |
marshallInvocation(InvocationRequest localInvocation)
|
void |
setMarshaller(Marshaller marshaller)
|
void |
setServerInvoker(ServerInvoker svrInvoker)
This will set the local reference to the server invoker. |
void |
setUnMarshaller(UnMarshaller unmarshaller)
|
void |
terminateLease(java.lang.String sessionId,
int disconnectTimeout)
Must behave as a noop if there's no active lease. |
| Methods inherited from class org.jboss.remoting.AbstractInvoker |
|---|
addClientLocator, createSocketFactory, getClassLoader, getClientLocator, getClientLocators, getConfiguration, getLocator, getSerializationType, getSocketFactory, isCompleteSocketFactory, isSocketFactoryCreatedFromSSLParameters, needsCustomSSLConfiguration, setClassLoader, setSerializationType, setSocketFactory, wrapSocketFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.remoting.transport.ClientInvoker |
|---|
addClientLocator, getClientLocator, getClientLocators, getSocketFactory, setSocketFactory |
| Methods inherited from interface org.jboss.remoting.Invoker |
|---|
getLocator |
| Constructor Detail |
|---|
public LocalClientInvoker(InvokerLocator locator)
public LocalClientInvoker(InvokerLocator locator,
java.util.Map configuration)
public LocalClientInvoker(InvokerLocator locator,
java.util.Map configuration,
boolean byValue)
| Method Detail |
|---|
public java.lang.Object invoke(InvocationRequest invocation)
throws java.lang.Throwable
invoke in interface ClientInvokerinvocation -
java.lang.Throwable
protected InvocationRequest marshallInvocation(InvocationRequest localInvocation)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic boolean isConnected()
isConnected in interface ClientInvoker
public void connect()
throws ConnectionFailedException
connect in interface ClientInvokerConnectionFailedExceptionpublic void disconnect()
disconnect in interface ClientInvokerpublic void setMarshaller(Marshaller marshaller)
setMarshaller in interface ClientInvokerpublic Marshaller getMarshaller()
getMarshaller in interface ClientInvokerpublic void setUnMarshaller(UnMarshaller unmarshaller)
setUnMarshaller in interface ClientInvokerpublic UnMarshaller getUnMarshaller()
getUnMarshaller in interface ClientInvoker
public void establishLease(java.lang.String sessionID,
java.util.Map configuration,
long leasePeriod)
throws java.lang.Throwable
establishLease in interface ClientInvokerjava.lang.Throwable
public void terminateLease(java.lang.String sessionId,
int disconnectTimeout)
ClientInvoker
terminateLease in interface ClientInvokerpublic long getLeasePeriod(java.lang.String sessionID)
getLeasePeriod in interface ClientInvokerpublic void setServerInvoker(ServerInvoker svrInvoker)
svrInvoker - public InvokerLocator getCallbackLocator(java.util.Map metadata)
BidirectionalClientInvoker
getCallbackLocator in interface BidirectionalClientInvoker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||