Exemplo n.º 1
0
 /**
  * Adds the event that is to be associated with the log messages onto an internal stack
  *
  * @param name the name of the event to be associated
  * @param map Map indexed by entity name . The values is corresponding EntityID
  */
 public void addEvent(String name, Map<String, String> map) {
   Event e = new NetloggerEvent();
   e.setProgramName(mProgram);
   e.setEvent(name, map);
   mStack.addElement(e);
   return;
 }
Exemplo n.º 2
0
 /**
  * Adds the event that is to be associated with the log messages onto an internal stack
  *
  * @param name the name of the event to be associated
  * @param entityName the primary entity that is associated with the event e.g. workflow
  * @param entityID the id of that entity.
  */
 public void addEvent(String name, String entityName, String entityID) {
   Event e = new SimpleEvent();
   e.setProgramName(mProgram);
   e.setEvent(name, entityName, entityID);
   mStack.addElement(e);
   return;
 }