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

Field Summary
protected  java.lang.Object[] args
           
protected  int clientInvocationThread
           
protected  ClusterAlgorithm clusterAlgorithm
           
protected  java.lang.Object[] marshalledArgs
           
protected  java.lang.Object marshalledResult
           
protected  java.lang.Object marshalledThrowable
           
protected  java.lang.reflect.Method method
           
protected  java.lang.String methodName
           
protected  java.lang.Object methodResult
           
protected  boolean rmiMarshalling
           
protected  java.lang.String signature
           
protected  java.util.ArrayList stubs
           
protected  java.lang.String subsystem
           
protected  int system
           
protected  java.lang.Throwable throwable
           
 
Fields inherited from interface jrunx.cluster.ClusterConstants
AVAILABLE_SERVICES, CLUSTER_MANAGER_JNDI, DEFAULT_CLUSTER_DOMAIN, DEFAULT_ENABLED, JINI_CODE_BASE_JAR, PRIMARY_SERVICE, SECONDARY_SERVICE
 
Constructor Summary
Invocation()
           
Invocation(int system, java.lang.reflect.Method method, java.lang.Object[] args, boolean rmiMarshalling)
           
 
Method Summary
 void addService(ClusterableService svc)
           
 void clearThrowable()
           
 java.lang.Object[] getArgs()
           
 int getClientInvocationThread()
           
 ClusterAlgorithm getClusterAlgorithm()
           
 java.util.ArrayList getKnownServices()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.String getMethodName()
           
 java.lang.Object getMethodResult()
           
 java.lang.String getSignature()
           
 java.lang.String getSubsystem()
           
 int getSystem()
           
 java.lang.Throwable getThrowable()
           
 Invocation invoke()
           
 boolean isRmiMarshalling()
           
protected  java.lang.Object marshall(java.lang.Object obj)
           
 void readExternal(java.io.ObjectInput in)
           
 void removeService(ClusterableService svc)
           
 void setArgs(java.lang.Object[] args)
           
 void setClientInvocationThread(int clientInvocationThreadHashCode)
           
 void setClusterAlgorithm(ClusterAlgorithm clusterAlgorithm)
           
 void setKnownServices(java.util.ArrayList sv)
           
 void setMethod(java.lang.reflect.Method method)
           
 void setMethodName(java.lang.String methodName)
           
 void setMethodResult(java.lang.Object methodResult)
           
 void setRmiMarshalling(boolean rmiMarshalling)
           
 void setSignature(java.lang.String signature)
           
 void setSubsystem(java.lang.String subsystem)
           
 void setSystem(int system)
           
 void setThrowable(java.lang.Throwable t)
           
 boolean threwThrowable()
           
 java.lang.String toString()
           
protected  java.lang.Object unmarshall(java.lang.Object obj)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Invocation

public Invocation()

Invocation

public Invocation(int system,
                  java.lang.reflect.Method method,
                  java.lang.Object[] args,
                  boolean rmiMarshalling)
Method Detail

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.