|
||||||||||
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.OmniInvocation
public class OmniInvocation
Class OmniInvocation provides an invocation object for an omnihandle invocation in M2MI.
Note: Class OmniInvocation is multiple thread safe.
Field Summary |
---|
Fields inherited from class edu.rit.m2mi.Invocation |
---|
myEoid, myMethodDescriptor, myMethodInvoker, myTargetObjects |
Constructor Summary | |
---|---|
OmniInvocation()
Construct a new omnihandle invocation object. |
|
OmniInvocation(Eoid theEoid,
MethodDescriptor theMethodDescriptor,
MethodInvoker theMethodInvoker)
Construct a new omnihandle invocation object with the given EOID, method descriptor, and method invoker. |
Method Summary | |
---|---|
protected byte[] |
getMessagePrefix()
Obtain the M2MP message prefix corresponding to this omnihandle invocation object. |
protected Iterator |
getTargetObjects()
Determine the target objects that this omnihandle invocation object will invoke. |
void |
processFromHandle()
Process this omnihandle invocation, assuming it was created as a result of calling a method on an omnihandle. |
void |
processFromMessage()
Process this omnihandle invocation, assuming it was created from an incoming M2MI message. |
void |
readExternal(ObjectInput theObjectInput)
Read this omnihandle invocation object from the given object input stream. |
void |
writeExternal(ObjectOutput theObjectOutput)
Write this omnihandle 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 OmniInvocation()
public OmniInvocation(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 Externalizable
writeExternal
in class Invocation
theObjectOutput
- Object output stream.
IOException
- Thrown if an I/O error occurred.public void readExternal(ObjectInput theObjectInput) throws ClassNotFoundException, IOException
readExternal
in interface Externalizable
readExternal
in class Invocation
theObjectInput
- 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 Invocation
InvocationException
- (unchecked exception) Thrown if there was a problem processing the
invocation.public void processFromMessage()
processFromMessage
in class Invocation
InvocationException
- (unchecked exception) Thrown if there was a problem processing the
invocation.protected byte[] getMessagePrefix()
getMessagePrefix
in class Invocation
protected Iterator getTargetObjects()
getTargetObjects
in class Invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |