com.jproxy.proxy.callback
Class CallbackTunnel

java.lang.Object
  |
  +--com.jproxy.proxy.Tunnel
        |
        +--com.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
 CallbackServer server
          CallbackServer prosy object
 long serverObjectId
           
 Tunnel serverTunnel
           
 
Fields inherited from class com.jproxy.proxy.Tunnel
CALLBACK_PENDING_TIME, CALLBACK_TUNNEL_CLASS, callbackTunnels, COMPRESSION_ENABLED, DATASTACK_ENABLED, env, features, HOST_URL, INITIAL_CONTEXT_FACTORY, INVOCATION_INTERCEPTOR, INVOCATOR_THREADING_ENABLED, JAAS_CONFIGURATION_NAME, LOG_CLASS, LOG_LEVEL, MAX_FAILOVER_ATTEMPTS, NATIVE_EXCEPTIONS_ENABLED, NETWORK_PERFORMANCE_THRESHOLD, OBJECT_DESTROY_ENABLED, OBJECT_TTL, PROVIDER_URL, REMOTE_CLASSES, SERVER_RESPONSE_MIN, SOCKET_TIMEOUT, STUBGEN_CLASSPATH, STUBGEN_COMPILER_CLASSPATH, STUBGEN_COMPILER_OPTIONS, STUBGEN_LIB_CLASSPATH, TUNNEL_CLASS, TUNNEL_URL, tunnels, USE_JPROXY_SSL_SOCKET_FACTORY, version, VERSION
 
Constructor Summary
CallbackTunnel(CallbackServer _server)
          Constructs instance of CallbackTunnel.
 
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.
 
Methods inherited from class com.jproxy.proxy.Tunnel
createCallbackTunnel, createConstructRequest, createDestructRequest, createInvokeRequest, createReferenceRequest, createStubRequest, createTunnel, getInstance, getServerUrl, getTimeout, invokeMethod, invokeRequest, newInstance, newStub, parseBoolean, removeInstance, setServerUrl, setTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

public transient CallbackServer server
CallbackServer prosy object

serverTunnel

public Tunnel serverTunnel

serverObjectId

public long serverObjectId
Constructor Detail

CallbackTunnel

public CallbackTunnel(CallbackServer _server)
               throws TunnelException
Constructs instance of CallbackTunnel.
Parameters:
serverUrlStr - URL String of Tunneling server
serverObjectId - the id of CallbackServer remote object
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.
Overrides:
invoke in class Tunnel
Parameters:
data - Data object
Throws:
TunnelException -  

getCallbackClient

public CallbackClient getCallbackClient()
                                 throws TunnelException
Overrides:
getCallbackClient in class Tunnel

getCallbackServer

public CallbackServer getCallbackServer()


Copyright © JProxy LLC. All Rights Reserved.