com.jproxy.proxy.callback
Class CallbackTunnel

java.lang.Object
  extended bycom.jproxy.proxy.Tunnel
      extended bycom.jproxy.proxy.callback.CallbackTunnel
All Implemented Interfaces:
java.io.Serializable

public class CallbackTunnel
extends Tunnel

The invoker-side object distribution protocol implementation. The class is used to support asynchronous and synchronous callbacks. All details of communication protocol is encapsulated in instance of CallbackServer proxy.

See Also:
Serialized Form

Field Summary
 boolean doResult
           
 boolean oneWay
           
 CallbackServer server
          CallbackServer remote object
 long serverObjectId
           
 Tunnel serverTunnel
           
 
Fields inherited from class com.jproxy.proxy.Tunnel
CALLBACK_INTERFACES, CALLBACK_ONE_WAY, CALLBACK_PENDING_TIME, CALLBACK_RECEIVER_TIMEOUT, CALLBACK_RETURN_RESULT, CALLBACK_TUNNEL_CLASS, CALLBACK_VALIDATE_RECEIVER, callbackTunnels, CLIENT_INVOCATION_INTERCEPTOR, CONCURRENT_CALLBACKS, DATASTACK_ENABLED, defaultSessionId, env, features, HOST_URL, INITIAL_CONTEXT_FACTORY, INPROCESS_CALL_OPTIMIZATION_ENABLED, INVOCATOR_THREADING_ENABLED, JAAS_CONFIGURATION_NAME, LOG_CLASS, LOG_LEVEL, LOW_VERSION, MAX_FAILOVER_ATTEMPTS, NATIVE_EXCEPTIONS_ENABLED, NETWORK_PERFORMANCE_THRESHOLD, NONREMOTE_CLASSES, NONREMOTE_INTERFACES, OBJECT_TTL, PROVIDER_URL, REMOTE_CLASSES, REMOTE_INTERFACES, SERVER_CLASSPATH, SERVER_INVOCATION_INTERCEPTOR, SOAP_INIT_ARGUMENTS, SOAP_URL_FROM_WSDL, SOCKET_TIMEOUT, STUB_REUSE_ENABLED, STUBGEN_CODEBASE_PATH_MAPPING, STUBGEN_COMPILER_OPTIONS, TIMEOUT_UPDATE_ENABLED, TUNNEL_CLASS, TUNNEL_URL, tunnels, USE_JPROXY_SSL_SOCKET_FACTORY, version, VERSION
 
Constructor Summary
CallbackTunnel(java.lang.Object[] args)
           
 
Method Summary
 CallbackClient getCallbackClient()
           
 CallbackServer getCallbackServer()
           
 java.lang.Object invoke(java.lang.Object dataObj)
          The method marshales data to the CallbackServer remote object The result is not supported in the implementation.
 void setCallbackServer(CallbackServer _server)
           
 
Methods inherited from class com.jproxy.proxy.Tunnel
createCallbackTunnel, createConstructRequest, createDestructRequest, createInvokeRequest, createReferenceRequest, createSessionRequest, createStaticInvokeRequest, createStubRequest, createTunnel, getConstructorParameters, getEventListener, getInstance, getServerUrl, getTimeout, init, invokeMethod, invokeRequest, invokeStaticMethod, invokeStaticMethod, loadProperties, newInstance, newInstance, newStub, removeInstance, setEventListener, setServerUrl, setTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

public CallbackServer server
CallbackServer remote object


serverTunnel

public Tunnel serverTunnel

serverObjectId

public long serverObjectId

doResult

public boolean doResult

oneWay

public boolean oneWay
Constructor Detail

CallbackTunnel

public CallbackTunnel(java.lang.Object[] args)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object dataObj)
                        throws java.lang.Throwable
The method marshales data to the CallbackServer remote object The result is not supported in the implementation. The method is executed on the client that invokes method on remote object.

Specified by:
invoke in class Tunnel
Parameters:
dataObj - Data object
Throws:
TunnelException
java.lang.Throwable

getCallbackClient

public CallbackClient getCallbackClient()
                                 throws TunnelException
Specified by:
getCallbackClient in class Tunnel
Throws:
TunnelException

getCallbackServer

public CallbackServer getCallbackServer()

setCallbackServer

public void setCallbackServer(CallbackServer _server)


Copyright © JProxy LLC. All Rights Reserved.