jrunx.rmi
Class Invocation
java.lang.Object
|
+--jrunx.rmi.Invocation
- All Implemented Interfaces:
- ClusterConstants, java.io.Externalizable, java.io.Serializable
- Direct Known Subclasses:
- EJBContainerInvocation, EJBInvocation, RemoteSQLInvocation
- public class Invocation
- extends java.lang.Object
- implements ClusterConstants, java.io.Externalizable
This class encapsulates a remote method invocation to a JRun system. It is the
parent to EJB Invocation Contexts and is used directly for remote JNDI and remote
service invocations.
- Author:
- PS Neville
- See Also:
- Serialized Form
|
Constructor Summary |
Invocation()
|
Invocation(int system,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean rmiMarshalling)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
system
protected int system
subsystem
protected java.lang.String subsystem
method
protected transient java.lang.reflect.Method method
methodName
protected java.lang.String methodName
signature
protected java.lang.String signature
clientInvocationThread
protected int clientInvocationThread
args
protected transient java.lang.Object[] args
marshalledArgs
protected java.lang.Object[] marshalledArgs
methodResult
protected transient java.lang.Object methodResult
marshalledResult
protected java.lang.Object marshalledResult
throwable
protected transient java.lang.Throwable throwable
marshalledThrowable
protected java.lang.Object marshalledThrowable
stubs
protected java.util.ArrayList stubs
clusterAlgorithm
protected ClusterAlgorithm clusterAlgorithm
rmiMarshalling
protected boolean rmiMarshalling
Invocation
public Invocation()
Invocation
public Invocation(int system,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean rmiMarshalling)
setRmiMarshalling
public void setRmiMarshalling(boolean rmiMarshalling)
isRmiMarshalling
public boolean isRmiMarshalling()
getKnownServices
public java.util.ArrayList getKnownServices()
setKnownServices
public void setKnownServices(java.util.ArrayList sv)
removeService
public void removeService(ClusterableService svc)
addService
public void addService(ClusterableService svc)
getClusterAlgorithm
public ClusterAlgorithm getClusterAlgorithm()
setClusterAlgorithm
public void setClusterAlgorithm(ClusterAlgorithm clusterAlgorithm)
getSystem
public int getSystem()
setSystem
public void setSystem(int system)
getClientInvocationThread
public int getClientInvocationThread()
setClientInvocationThread
public void setClientInvocationThread(int clientInvocationThreadHashCode)
getSubsystem
public java.lang.String getSubsystem()
setSubsystem
public void setSubsystem(java.lang.String subsystem)
getMethod
public java.lang.reflect.Method getMethod()
setMethod
public void setMethod(java.lang.reflect.Method method)
getMethodName
public java.lang.String getMethodName()
setMethodName
public void setMethodName(java.lang.String methodName)
getArgs
public java.lang.Object[] getArgs()
setArgs
public void setArgs(java.lang.Object[] args)
getSignature
public java.lang.String getSignature()
setSignature
public void setSignature(java.lang.String signature)
getMethodResult
public java.lang.Object getMethodResult()
setMethodResult
public void setMethodResult(java.lang.Object methodResult)
getThrowable
public java.lang.Throwable getThrowable()
setThrowable
public void setThrowable(java.lang.Throwable t)
clearThrowable
public void clearThrowable()
threwThrowable
public boolean threwThrowable()
invoke
public Invocation invoke()
throws java.lang.Throwable
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
unmarshall
protected java.lang.Object unmarshall(java.lang.Object obj)
throws java.io.IOException,
java.lang.ClassNotFoundException
marshall
protected java.lang.Object marshall(java.lang.Object obj)
throws java.io.IOException
Copyright � 2002 Macromedia Corporation. All Rights Reserved.