games.strategy.engine.message
Class RemoteMethodCall
java.lang.Object
games.strategy.engine.message.RemoteMethodCall
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class RemoteMethodCall
- extends java.lang.Object
- implements java.io.Externalizable
All the info neccassary to describe a method call in one handy
serializable package.
- See Also:
- Serialized Form
|
Constructor Summary |
RemoteMethodCall()
|
RemoteMethodCall(java.lang.String remoteName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class<?>[] argTypes,
java.lang.Class<?> remoteInterface)
|
|
Method Summary |
static java.lang.String[] |
classesToString(java.lang.Class<?>[] classes,
java.lang.Object[] args)
|
java.lang.Object[] |
getArgs()
|
java.lang.Class<?>[] |
getArgTypes()
|
java.lang.String |
getMethodName()
|
java.lang.String |
getRemoteName()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
resolve(java.lang.Class<?> remoteType)
After we have been de-serialized, we do not transmit enough
informatin to determine the method without being told
what class we operate on. |
static java.lang.Class<?>[] |
stringsToClasses(java.lang.String[] strings,
java.lang.Object[] args)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RemoteMethodCall
public RemoteMethodCall()
RemoteMethodCall
public RemoteMethodCall(java.lang.String remoteName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class<?>[] argTypes,
java.lang.Class<?> remoteInterface)
getRemoteName
public java.lang.String getRemoteName()
- Returns:
- Returns the channelName.
getMethodName
public java.lang.String getMethodName()
- Returns:
- Returns the methodName.
getArgs
public java.lang.Object[] getArgs()
- Returns:
- Returns the args.
getArgTypes
public java.lang.Class<?>[] getArgTypes()
- Returns:
- Returns the argTypes.
stringsToClasses
public static java.lang.Class<?>[] stringsToClasses(java.lang.String[] strings,
java.lang.Object[] args)
classesToString
public static java.lang.String[] classesToString(java.lang.Class<?>[] classes,
java.lang.Object[] args)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
resolve
public void resolve(java.lang.Class<?> remoteType)
- After we have been de-serialized, we do not transmit enough
informatin to determine the method without being told
what class we operate on.