org.rhq.enterprise.client
Class RemoteClientProxy

java.lang.Object
  extended by org.rhq.bindings.client.AbstractRhqFacadeProxy<RemoteClient>
      extended by org.rhq.enterprise.client.RemoteClientProxy
All Implemented Interfaces:
InvocationHandler

public class RemoteClientProxy
extends AbstractRhqFacadeProxy<RemoteClient>

This class acts as a local SLSB proxy to make remote invocations to SLSB Remotes over a remoting invoker.

Author:
Greg Hinkle, Lukas Krejci

Constructor Summary
RemoteClientProxy(RemoteClient client, RhqManagers manager)
           
 
Method Summary
protected  Object doInvoke(Object proxy, Method originalMethod, Class<?>[] argTypes, Object[] args)
           
static
<T> T
getProcessor(RemoteClient remoteClient, RhqManagers manager)
           
 Class<?> getRemoteInterface()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.rhq.bindings.client.AbstractRhqFacadeProxy
getManager, getRhqFacade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteClientProxy

public RemoteClientProxy(RemoteClient client,
                         RhqManagers manager)
Method Detail

getRemoteInterface

public Class<?> getRemoteInterface()

getProcessor

public static <T> T getProcessor(RemoteClient remoteClient,
                                 RhqManagers manager)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Overrides:
invoke in class AbstractRhqFacadeProxy<RemoteClient>
Throws:
Throwable

doInvoke

protected Object doInvoke(Object proxy,
                          Method originalMethod,
                          Class<?>[] argTypes,
                          Object[] args)
                   throws Throwable
Specified by:
doInvoke in class AbstractRhqFacadeProxy<RemoteClient>
Throws:
Throwable


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.