|
||||||||||
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 ClientInvoker
invocation
-
java.lang.Throwable
protected InvocationRequest marshallInvocation(InvocationRequest localInvocation) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public boolean isConnected()
isConnected
in interface ClientInvoker
public void connect() throws ConnectionFailedException
connect
in interface ClientInvoker
ConnectionFailedException
public void disconnect()
disconnect
in interface ClientInvoker
public void setMarshaller(Marshaller marshaller)
setMarshaller
in interface ClientInvoker
public Marshaller getMarshaller()
getMarshaller
in interface ClientInvoker
public void setUnMarshaller(UnMarshaller unmarshaller)
setUnMarshaller
in interface ClientInvoker
public 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 ClientInvoker
java.lang.Throwable
public void terminateLease(java.lang.String sessionId, int disconnectTimeout)
ClientInvoker
terminateLease
in interface ClientInvoker
public long getLeasePeriod(java.lang.String sessionID)
getLeasePeriod
in interface ClientInvoker
public 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 |