xmlBlaster 2.1.0 API

org.xmlBlaster.util.queue
Class EventHelper

java.lang.Object
  extended by org.xmlBlaster.util.queue.EventHelper
All Implemented Interfaces:
I_StorageSizeListener

public class EventHelper
extends java.lang.Object
implements I_StorageSizeListener


Field Summary
private  boolean alreadyAlarmed
           
private  I_EventDispatcher eventDispatcher
           
private  java.lang.String eventType
           
private  java.lang.String id1
           
private  java.lang.String id2
           
private  java.lang.String key
           
private static java.util.logging.Logger log
           
private  boolean procent
           
private  java.lang.String type
           
(package private)  long value
           
 
Constructor Summary
private EventHelper()
           
  EventHelper(java.lang.String eventType, java.lang.String type, java.lang.String id1, java.lang.String id2, java.lang.String val, I_EventDispatcher eventDispatcher)
           
 
Method Summary
 void changed(I_Storage storage, long numEntries, long numBytes, boolean isShutdown)
          Enforced by I_StorageSizeListener
protected  java.lang.Object clone()
           
 EventHelper getCopy(I_Storage storage)
           
 I_EventDispatcher getEventDispatcher()
           
 java.lang.String getEventType()
           
 java.lang.String getId1()
           
 java.lang.String getId2()
           
 java.lang.String getKey()
           
 java.lang.String getType()
           
 long getValue()
           
 boolean shallTrigger(long numEntries)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

eventType

private java.lang.String eventType

type

private java.lang.String type

id1

private java.lang.String id1

id2

private java.lang.String id2

value

long value

key

private java.lang.String key

procent

private boolean procent

alreadyAlarmed

private boolean alreadyAlarmed

eventDispatcher

private I_EventDispatcher eventDispatcher
Constructor Detail

EventHelper

private EventHelper()

EventHelper

public EventHelper(java.lang.String eventType,
                   java.lang.String type,
                   java.lang.String id1,
                   java.lang.String id2,
                   java.lang.String val,
                   I_EventDispatcher eventDispatcher)
            throws XmlBlasterException
Parameters:
eventType - "client/joe/session/1/queue/callback/event/threshold.90%"
type - e.g. Constants.RELATING_CALLBACK
id1 - joe
id2 - 1
val - 90%
eventDispatcher -
Throws:
XmlBlasterException
Method Detail

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getCopy

public EventHelper getCopy(I_Storage storage)

shallTrigger

public boolean shallTrigger(long numEntries)

getKey

public java.lang.String getKey()

getId1

public java.lang.String getId1()

getId2

public java.lang.String getId2()

getType

public java.lang.String getType()

getValue

public long getValue()

getEventType

public java.lang.String getEventType()

changed

public void changed(I_Storage storage,
                    long numEntries,
                    long numBytes,
                    boolean isShutdown)
Enforced by I_StorageSizeListener

Specified by:
changed in interface I_StorageSizeListener
Parameters:
queue -
numEntries -
numBytes -
isShutdown -

getEventDispatcher

public I_EventDispatcher getEventDispatcher()
Returns:
the eventDispatcher

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.