com.threerings.presents.peer.client
Interface PeerService

All Superinterfaces:
InvocationService<ClientObject>
All Known Implementing Classes:
PeerMarshaller

public interface PeerService
extends InvocationService<ClientObject>

Defines requests made from one peer to another.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Method Summary
 void generateReport(String type, InvocationService.ResultListener listener)
          Generates a server status report for this peer and returns it to the supplied listener.
 void invokeAction(byte[] serializedAction)
          Requests that the specified action be invoked on this server.
 void invokeRequest(byte[] serializedAction, InvocationService.ResultListener listener)
          Requests that the specified request be invoked on this server and wants a confirmation when it's complete.
 void ratifyLockAction(NodeObject.Lock lock, boolean acquire)
          Informs the node that the sending peer ratifies its acquisition or release of the specified lock.
 

Method Detail

ratifyLockAction

void ratifyLockAction(NodeObject.Lock lock,
                      boolean acquire)
Informs the node that the sending peer ratifies its acquisition or release of the specified lock.


invokeAction

void invokeAction(byte[] serializedAction)
Requests that the specified action be invoked on this server.


invokeRequest

void invokeRequest(byte[] serializedAction,
                   InvocationService.ResultListener listener)
Requests that the specified request be invoked on this server and wants a confirmation when it's complete.


generateReport

void generateReport(String type,
                    InvocationService.ResultListener listener)
Generates a server status report for this peer and returns it to the supplied listener. The result must be a string.

Parameters:
type - the type of report to generate. See ReportManager for more information.