com.threerings.presents.peer.data
Class PeerMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller<ClientObject>
      extended by com.threerings.presents.peer.data.PeerMarshaller
All Implemented Interfaces:
Streamable, InvocationService<ClientObject>, PeerService

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from PeerService.java.")
public class PeerMarshaller
extends InvocationMarshaller<ClientObject>
implements PeerService

Provides the implementation of the PeerService interface that marshalls the arguments and delivers the request to the provider on the server. Also provides an implementation of the response listener interfaces that marshall the response arguments and deliver them back to the requesting client.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.presents.data.InvocationMarshaller
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static int GENERATE_REPORT
          The method id used to dispatch generateReport(java.lang.String, com.threerings.presents.client.InvocationService.ResultListener) requests.
static int INVOKE_ACTION
          The method id used to dispatch invokeAction(byte[]) requests.
static int INVOKE_REQUEST
          The method id used to dispatch invokeRequest(byte[], com.threerings.presents.client.InvocationService.ResultListener) requests.
static int RATIFY_LOCK_ACTION
          The method id used to dispatch ratifyLockAction(com.threerings.presents.peer.data.NodeObject.Lock, boolean) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
PeerMarshaller()
           
 
Method Summary
 void generateReport(String arg1, InvocationService.ResultListener arg2)
          Generates a server status report for this peer and returns it to the supplied listener.
 void invokeAction(byte[] arg1)
          Requests that the specified action be invoked on this server.
 void invokeRequest(byte[] arg1, InvocationService.ResultListener arg2)
          Requests that the specified request be invoked on this server and wants a confirmation when it's complete.
 void ratifyLockAction(NodeObject.Lock arg1, boolean arg2)
          Informs the node that the sending peer ratifies its acquisition or release of the specified lock.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller
getInvocationCode, init, readObject, sendRequest, sendRequest, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERATE_REPORT

public static final int GENERATE_REPORT
The method id used to dispatch generateReport(java.lang.String, com.threerings.presents.client.InvocationService.ResultListener) requests.

See Also:
Constant Field Values

INVOKE_ACTION

public static final int INVOKE_ACTION
The method id used to dispatch invokeAction(byte[]) requests.

See Also:
Constant Field Values

INVOKE_REQUEST

public static final int INVOKE_REQUEST
The method id used to dispatch invokeRequest(byte[], com.threerings.presents.client.InvocationService.ResultListener) requests.

See Also:
Constant Field Values

RATIFY_LOCK_ACTION

public static final int RATIFY_LOCK_ACTION
The method id used to dispatch ratifyLockAction(com.threerings.presents.peer.data.NodeObject.Lock, boolean) requests.

See Also:
Constant Field Values
Constructor Detail

PeerMarshaller

public PeerMarshaller()
Method Detail

generateReport

public void generateReport(String arg1,
                           InvocationService.ResultListener arg2)
Description copied from interface: PeerService
Generates a server status report for this peer and returns it to the supplied listener. The result must be a string.

Specified by:
generateReport in interface PeerService
Parameters:
arg1 - the type of report to generate. See ReportManager for more information.

invokeAction

public void invokeAction(byte[] arg1)
Description copied from interface: PeerService
Requests that the specified action be invoked on this server.

Specified by:
invokeAction in interface PeerService

invokeRequest

public void invokeRequest(byte[] arg1,
                          InvocationService.ResultListener arg2)
Description copied from interface: PeerService
Requests that the specified request be invoked on this server and wants a confirmation when it's complete.

Specified by:
invokeRequest in interface PeerService

ratifyLockAction

public void ratifyLockAction(NodeObject.Lock arg1,
                             boolean arg2)
Description copied from interface: PeerService
Informs the node that the sending peer ratifies its acquisition or release of the specified lock.

Specified by:
ratifyLockAction in interface PeerService