org.iids.aos.agent.proxy.auth
Class AuthAgentProxy<T>
java.lang.Object
org.iids.aos.agent.proxy.AgentProxy<T>
org.iids.aos.agent.proxy.auth.AuthAgentProxy<T>
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler
public class AuthAgentProxy<T>
- extends AgentProxy<T>
- Author:
- rjtimmer
- See Also:
- Serialized Form
|
Method Summary |
static
|
bind(java.lang.Class<? extends AuthInterface> itfClass,
AgentHandle local,
AgentHandle remote,
java.lang.Object credentials)
|
static
|
bind(java.lang.Class<T> itfClass,
AgentHandle local,
AgentHandle remote)
|
static
|
bind(java.lang.Class<T> itfClass,
AgentHandle local,
AgentHandle remote,
boolean assignNewLocal)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Implementation of InvocationHandler interface. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.iids.aos.agent.proxy.AgentProxy |
close, finalize, getAgentProxy, getLocalHandle, getRemoteHandle, isRunning, setCacheableMethod, setCacheableMethod, setCachedResult, setItfClass, setLocalHandle, setLocalHandle, silentClose, toString, waitForClose |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
credentials
protected java.lang.Object credentials
AuthAgentProxy
public AuthAgentProxy()
AuthAgentProxy
protected AuthAgentProxy(AgentHandle local,
AgentHandle remote,
java.lang.Object credentials)
bind
public static <T> T bind(java.lang.Class<? extends AuthInterface> itfClass,
AgentHandle local,
AgentHandle remote,
java.lang.Object credentials)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Description copied from class:
AgentProxy
- Implementation of InvocationHandler interface. Sends message
invocation to an AgentHandle and waits for result to come back
(synchronous invocation model).
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler- Overrides:
invoke in class AgentProxy<T>
- Throws:
java.lang.Throwable - If the method invocation fails for some reason,
the exception of this method is thrown on by this method.
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
- Specified by:
readExternal in interface java.io.Externalizable- Overrides:
readExternal in class AgentProxy<T>
- Throws:
java.io.IOException
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable- Overrides:
writeExternal in class AgentProxy<T>
- Throws:
java.io.IOException
bind
public static <T> T bind(java.lang.Class<T> itfClass,
AgentHandle local,
AgentHandle remote,
boolean assignNewLocal)
bind
public static <T> T bind(java.lang.Class<T> itfClass,
AgentHandle local,
AgentHandle remote)
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.