Class EventRecorder

  • public class EventRecorder
    extends Client
    Records all events in the world, saves them to the database, plays them back. This is a special case of Client that has no session, but copies scene and properties from the client it impersonates. By overriding Client's sendMessage(), it maintains internal list of received events. Once recording is done, i.e. stop() is called, event list is persisted to the database.
    See Also:
    PersistentEvent, Recording
    • Constructor Detail

      • EventRecorder

        public EventRecorder()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • processEvent

        public void processEvent​(VREvent event)
        Description copied from class: VRObject
        This implementation does nothing
        processEvent in class Client
        event - Whatever has changed
      • play

        public void play()
        Play recorded client events as own events, optionally restart the loop when finished.
      • play

        public void play​(Client viewer)
        Play back to a client sends all recorded events back to a client, optionally restarts the loop when finished.
        viewer - Client who's viewing the recording