org.xmlBlaster.util.queue
Class EventHelper
java.lang.Object
org.xmlBlaster.util.queue.EventHelper
- All Implemented Interfaces:
- I_StorageSizeListener
public class EventHelper
- extends java.lang.Object
- implements I_StorageSizeListener
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)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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_CALLBACKid1
- joeid2
- 1val
- 90%eventDispatcher
-
- Throws:
XmlBlasterException
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
Copyright © 1999-2014 The xmlBlaster.org contributers.