org.jdesktop.wonderland.server.eventrecorder
Class RecorderManager

java.lang.Object
  extended by org.jdesktop.wonderland.server.eventrecorder.RecorderManager

public class RecorderManager
extends java.lang.Object

Responsible for recording events in Wonderland. Manages a singleton instance of itself.

Author:
Bernard Horan

Method Summary
static RecorderManager getDefaultManager()
          Return the singleton instance of the RecorderManager
 boolean isRecording()
           
 void recordMessage(WonderlandClientSender sender, WonderlandClientID clientID, CellMessage message)
          Record the message from the sender
 void recordMetadata(CellMessage message, java.lang.String metadata)
          Record the metadata corresponding to the message
 void register(EventRecorder recorder)
          Register an event recorder with me.
 void unregister(EventRecorder recorder)
          Unregister an event recorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultManager

public static RecorderManager getDefaultManager()
Return the singleton instance of the RecorderManager


recordMessage

public void recordMessage(WonderlandClientSender sender,
                          WonderlandClientID clientID,
                          CellMessage message)
Record the message from the sender

Parameters:
sender - the sender of the message
clientID - the id of the client sending the message
message -

isRecording

public boolean isRecording()

recordMetadata

public void recordMetadata(CellMessage message,
                           java.lang.String metadata)
Record the metadata corresponding to the message

Parameters:
message - a message that's been received and recorded
metadata - the string metadata that acts as an annotation to the message

register

public void register(EventRecorder recorder)
Register an event recorder with me.

Parameters:
recorder - the recorder to be registered

unregister

public void unregister(EventRecorder recorder)
Unregister an event recorder

Parameters:
recorder - the event recorder to be unregistered


Open Wonderland - http://openwonderland.org