org.openorb.notify
Class Util
java.lang.Object
|
+--org.openorb.notify.Util
- public class Util
- extends java.lang.Object
The Util class provides some useful methods like wildcard support
to check if an EventType is part of an EventType collection.
- Author:
- Olivier Modica
|
Constructor Summary |
Util()
|
|
Method Summary |
static int |
getMatchingEventTypeIndex(EventType eventType,
EventType[] collection)
Check if an EventType ( domain name, event name ) is a
part of an EventType collection checking wildcards. |
static boolean |
isMatchingEventType(EventType eventType,
EventType[] collection)
Check if an EventType ( domain name, event name ) is a
part of an EventType collection checking wildcards. |
static void |
sleep(long time,
org.apache.avalon.framework.logger.Logger logger)
Common sleep method for the Notification Service. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getMatchingEventTypeIndex
public static int getMatchingEventTypeIndex(EventType eventType,
EventType[] collection)
- Check if an EventType ( domain name, event name ) is a
part of an EventType collection checking wildcards.
- Returns:
- the matching EventType index in the collection or -1 if not found.
isMatchingEventType
public static boolean isMatchingEventType(EventType eventType,
EventType[] collection)
- Check if an EventType ( domain name, event name ) is a
part of an EventType collection checking wildcards.
- Returns:
- true if the EventType could be found in the collection.
sleep
public static void sleep(long time,
org.apache.avalon.framework.logger.Logger logger)
- Common sleep method for the Notification Service.
Allows single point of debugging.