org.syrup.helpers
Class LogEntryImpl

java.lang.Object
  extended byorg.syrup.helpers.LogEntryImpl
All Implemented Interfaces:
LogEntry

public class LogEntryImpl
extends java.lang.Object
implements LogEntry

A generic LogEntry Implementation.

Author:
Robbert van Dalen

Field Summary
 
Fields inherited from interface org.syrup.LogEntry
DONE, ENDED, EVENT, FAILED, GOT, IN_1, IN_2, MATCHED, NEW, OUT_1, OUT_2, PANIC, RESET, REWIRED, STARTED, STOPPED
 
Constructor Summary
LogEntryImpl(long time_, java.lang.String key_, int event_, java.lang.String worker_)
           
 
Method Summary
static LogEntry create(long time_, java.lang.String key_, int event_, java.lang.String worker_)
           
 int event()
           
 java.lang.String key()
           
static java.lang.String map(int event)
           
static int parseEvent(java.lang.String event)
           
static int parseEvents(java.lang.String events)
           
 long time()
           
 java.lang.String toString()
           
 java.lang.String worker()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntryImpl

public LogEntryImpl(long time_,
                    java.lang.String key_,
                    int event_,
                    java.lang.String worker_)
Method Detail

create

public static LogEntry create(long time_,
                              java.lang.String key_,
                              int event_,
                              java.lang.String worker_)

time

public long time()
Specified by:
time in interface LogEntry

key

public java.lang.String key()
Specified by:
key in interface LogEntry

event

public int event()
Specified by:
event in interface LogEntry

worker

public java.lang.String worker()
Specified by:
worker in interface LogEntry

toString

public java.lang.String toString()

map

public static final java.lang.String map(int event)

parseEvents

public static int parseEvents(java.lang.String events)

parseEvent

public static int parseEvent(java.lang.String event)