|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.m2mi.Invocation
edu.rit.m2mi.MultiInvocation
public class MultiInvocation
Class MultiInvocation provides an invocation object for a multihandle invocation in M2MI.
Note: Class MultiInvocation is multiple thread safe.
| Field Summary |
|---|
| Fields inherited from class edu.rit.m2mi.Invocation |
|---|
myEoid, myMethodDescriptor, myMethodInvoker, myTargetObjects |
| Constructor Summary | |
|---|---|
MultiInvocation()
Construct a new multihandle invocation object. |
|
MultiInvocation(Eoid theEoid,
MethodDescriptor theMethodDescriptor,
MethodInvoker theMethodInvoker)
Construct a new multihandle invocation object with the given EOID, method descriptor, and method invoker. |
|
| Method Summary | |
|---|---|
protected byte[] |
getMessagePrefix()
Obtain the M2MP message prefix corresponding to this multihandle invocation object. |
protected Iterator |
getTargetObjects()
Determine the target objects that this multihandle invocation object will invoke. |
void |
processFromHandle()
Process this multihandle invocation, assuming it was created as a result of calling a method on a multihandle. |
void |
processFromMessage()
Process this multihandle invocation, assuming it was created from an incoming M2MI message. |
void |
readExternal(ObjectInput theObjectInput)
Read this multihandle invocation object from the given object input stream. |
void |
writeExternal(ObjectOutput theObjectOutput)
Write this multihandle invocation object to the given object output stream. |
| Methods inherited from class edu.rit.m2mi.Invocation |
|---|
invoke, nextTargetObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiInvocation()
public MultiInvocation(Eoid theEoid,
MethodDescriptor theMethodDescriptor,
MethodInvoker theMethodInvoker)
theEoid - EOID.theMethodDescriptor - Method descriptor.theMethodInvoker - Method invoker.
NullPointerException - (unchecked exception) Thrown if any argument is null.| Method Detail |
|---|
public void writeExternal(ObjectOutput theObjectOutput)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class InvocationtheObjectOutput - Object output stream.
IOException - Thrown if an I/O error occurred.
public void readExternal(ObjectInput theObjectInput)
throws ClassNotFoundException,
IOException
readExternal in interface ExternalizablereadExternal in class InvocationtheObjectInput - Object input stream.
ClassNotFoundException - Thrown if the class for an object being deserialized cannot be found.
IOException - Thrown if an I/O error occurred.public void processFromHandle()
processFromHandle in class InvocationInvocationException - (unchecked exception) Thrown if there was a problem processing the
invocation.public void processFromMessage()
processFromMessage in class InvocationInvocationException - (unchecked exception) Thrown if there was a problem processing the
invocation.protected byte[] getMessagePrefix()
getMessagePrefix in class Invocationprotected Iterator getTargetObjects()
getTargetObjects in class Invocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||