com.resilientedge.jockey.appcomm
Class CallMethod

java.lang.Object
  |
  +--com.resilientedge.jockey.appcomm.CallMethod
All Implemented Interfaces:
Marshallable

public class CallMethod
extends java.lang.Object
implements Marshallable

An object to handle an object location strategy for calling methods.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Field Summary
static int SINGLETON
          one strategy to find an object; it's a singleton.
 
Fields inherited from interface com.resilientedge.jockey.appcomm.Marshallable
FAILED, SUCCESS, TYPE_FIXED_STRING, TYPE_OBJECT, TYPE_UINT_32
 
Constructor Summary
CallMethod()
          Basic constructor.
CallMethod(int type)
          Basic constructor.
 
Method Summary
 int fromBytes(byte[] buffer, int offset)
          Reinitialize this object from the contents of an array of bytes.
 java.lang.String getMarshalName()
          Return an identifier for this object.
 int getMarshalSize()
          Return the number of bytes that this object would require to marshal itself.
 int toBytes(byte[] buffer, int offset)
          Marshal this object to a language independent array of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final int SINGLETON
one strategy to find an object; it's a singleton.
Constructor Detail

CallMethod

public CallMethod()
Basic constructor.

CallMethod

public CallMethod(int type)
Basic constructor.
Method Detail

getMarshalName

public java.lang.String getMarshalName()
Return an identifier for this object. This has to be unique among marshallable objects. Currently, format is "PI" | "SI" "class-stem-name".
Specified by:
getMarshalName in interface Marshallable
Returns:
name for this object.

toBytes

public int toBytes(byte[] buffer,
                   int offset)
Marshal this object to a language independent array of bytes.
Specified by:
toBytes in interface Marshallable
Parameters:
buffer - a destination buffer to receive this object.
offset - begin marshalling at this offset from buffer start
Returns:
the number of bytes of the input buffer consumed.

fromBytes

public int fromBytes(byte[] buffer,
                     int offset)
Reinitialize this object from the contents of an array of bytes.
Specified by:
fromBytes in interface Marshallable
Parameters:
buffer - a buffer containing the marshalled object.
offset - begin unmarshalling at this offset from buffer start
Returns:
the number of bytes of the input buffer consumed.

getMarshalSize

public int getMarshalSize()
Return the number of bytes that this object would require to marshal itself.
Specified by:
getMarshalSize in interface Marshallable
Returns:
the number of bytes that this object would consume.


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.