org.yawlfoundation.yawl.resourcing.datastore.eventlog
Class EventLogger

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.datastore.eventlog.EventLogger

public class EventLogger
extends Object

Handles the logging of resource 'events'

Author:
Michael Adams Date: 27/09/2007

Nested Class Summary
static class EventLogger.audit
           
static class EventLogger.event
           
 
Constructor Summary
EventLogger()
           
 
Method Summary
static void audit(String userid, EventLogger.audit eType)
           
static EventLogger.audit getAuditEventByName(String eventName)
           
static EventLogger.event getEventByName(String eventName)
           
static long getSpecificationKey(YSpecificationID ySpecID)
          Gets the primary key for a specification record, or inserts a new entry if it doesn't exist and returns its key.
static void log(WorkItemRecord wir, String pid, EventLogger.event eType)
           
static void log(WorkItemRecord wir, String pid, int eType)
           
static void log(WorkItemRecord wir, String pid, String eventString)
           
static void log(YSpecificationID specID, String caseID, String pid, boolean launch)
           
static void log(YSpecificationID specID, String caseID, String id, EventLogger.event eType)
           
static void logAutoTask(WorkItemRecord wir, boolean start)
           
static void setLogging(boolean flag)
           
static void setOfferLogging(boolean flag)
           
static List<Runnable> shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogger

public EventLogger()
Method Detail

setLogging

public static void setLogging(boolean flag)

setOfferLogging

public static void setOfferLogging(boolean flag)

shutdown

public static List<Runnable> shutdown()

log

public static void log(WorkItemRecord wir,
                       String pid,
                       EventLogger.event eType)

logAutoTask

public static void logAutoTask(WorkItemRecord wir,
                               boolean start)

log

public static void log(WorkItemRecord wir,
                       String pid,
                       String eventString)

log

public static void log(YSpecificationID specID,
                       String caseID,
                       String id,
                       EventLogger.event eType)

log

public static void log(WorkItemRecord wir,
                       String pid,
                       int eType)

log

public static void log(YSpecificationID specID,
                       String caseID,
                       String pid,
                       boolean launch)

audit

public static void audit(String userid,
                         EventLogger.audit eType)

getSpecificationKey

public static long getSpecificationKey(YSpecificationID ySpecID)
Gets the primary key for a specification record, or inserts a new entry if it doesn't exist and returns its key.

Parameters:
ySpecID - the identifiers of the specification
Returns:
the primary key for the specification

getEventByName

public static EventLogger.event getEventByName(String eventName)

getAuditEventByName

public static EventLogger.audit getAuditEventByName(String eventName)


Copyright © 2004-2012 The YAWL Foundation.