com.threerings.bureau.data
Class BureauMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller<ClientObject>
      extended by com.threerings.bureau.data.BureauMarshaller
All Implemented Interfaces:
BureauService, Streamable, InvocationService<ClientObject>

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

Provides the implementation of the BureauService 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 AGENT_CREATED
          The method id used to dispatch agentCreated(int) requests.
static int AGENT_CREATION_FAILED
          The method id used to dispatch agentCreationFailed(int) requests.
static int AGENT_DESTROYED
          The method id used to dispatch agentDestroyed(int) requests.
static int BUREAU_ERROR
          The method id used to dispatch bureauError(java.lang.String) requests.
static int BUREAU_INITIALIZED
          The method id used to dispatch bureauInitialized(java.lang.String) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
BureauMarshaller()
           
 
Method Summary
 void agentCreated(int arg1)
          Notify the server that a previosuly requested agent is now created and ready to use.
 void agentCreationFailed(int arg1)
          Notify the server that a previosuly requested agent could not be created.
 void agentDestroyed(int arg1)
          Notify the server that an agent is no longer running.
 void bureauError(String arg1)
          Notifies the server that this bureau has encountered a critical error and needs to be shut down.
 void bureauInitialized(String arg1)
          Notifies the server that the bureau is up and running and ready to receive requests via the BureauReceiver.
 
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

AGENT_CREATED

public static final int AGENT_CREATED
The method id used to dispatch agentCreated(int) requests.

See Also:
Constant Field Values

AGENT_CREATION_FAILED

public static final int AGENT_CREATION_FAILED
The method id used to dispatch agentCreationFailed(int) requests.

See Also:
Constant Field Values

AGENT_DESTROYED

public static final int AGENT_DESTROYED
The method id used to dispatch agentDestroyed(int) requests.

See Also:
Constant Field Values

BUREAU_ERROR

public static final int BUREAU_ERROR
The method id used to dispatch bureauError(java.lang.String) requests.

See Also:
Constant Field Values

BUREAU_INITIALIZED

public static final int BUREAU_INITIALIZED
The method id used to dispatch bureauInitialized(java.lang.String) requests.

See Also:
Constant Field Values
Constructor Detail

BureauMarshaller

public BureauMarshaller()
Method Detail

agentCreated

public void agentCreated(int arg1)
Description copied from interface: BureauService
Notify the server that a previosuly requested agent is now created and ready to use.

Specified by:
agentCreated in interface BureauService
See Also:
BureauReceiver.createAgent(int)

agentCreationFailed

public void agentCreationFailed(int arg1)
Description copied from interface: BureauService
Notify the server that a previosuly requested agent could not be created.

Specified by:
agentCreationFailed in interface BureauService
See Also:
BureauReceiver.createAgent(int)

agentDestroyed

public void agentDestroyed(int arg1)
Description copied from interface: BureauService
Notify the server that an agent is no longer running. Normally called in response to a call to destroyAgent

Specified by:
agentDestroyed in interface BureauService
See Also:
BureauReceiver.destroyAgent(int)

bureauError

public void bureauError(String arg1)
Description copied from interface: BureauService
Notifies the server that this bureau has encountered a critical error and needs to be shut down.

Specified by:
bureauError in interface BureauService

bureauInitialized

public void bureauInitialized(String arg1)
Description copied from interface: BureauService
Notifies the server that the bureau is up and running and ready to receive requests via the BureauReceiver.

Specified by:
bureauInitialized in interface BureauService
See Also:
BureauReceiver