|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.event.FileEventNotifier
Class for dispatching FileEvent
through registered FileEventListener
s.
Nested Class Summary | |
static class |
FileEventNotifier.NotificationType
Class describing a notification type. |
Field Summary | |
static FileEventNotifier.NotificationType |
FAILED
Notification type for processed entry events |
static FileEventNotifier.NotificationType |
MISMATCHING
Notification type for mismatching entry events |
static FileEventNotifier.NotificationType |
MISSING
Notification type for missing entry events |
static FileEventNotifier.NotificationType |
OVERWRITTEN
Notification type for overwritten entry events |
static FileEventNotifier.NotificationType |
PROCESSED
Notification type for failed entry events |
static FileEventNotifier.NotificationType |
SKIPPED
Notification type for skipped entry events |
Constructor Summary | |
FileEventNotifier()
|
Method Summary | |
void |
notifyAll(FileEventNotifier.NotificationType type,
sam.entry.Entry entry,
java.lang.String message)
Notifies all registered listeners of specified event |
void |
notifyAll(FileEventNotifier.NotificationType type,
sam.event.FileEvent event)
Notifies all registered listeners of specified event |
void |
register(sam.event.FileEventListener listener)
Registers a new FileEvent listener |
void |
unregister(sam.event.FileEventListener listener)
Unregisters a previously registered FileEvent listener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final FileEventNotifier.NotificationType PROCESSED
public static final FileEventNotifier.NotificationType FAILED
public static final FileEventNotifier.NotificationType MISSING
public static final FileEventNotifier.NotificationType MISMATCHING
public static final FileEventNotifier.NotificationType OVERWRITTEN
public static final FileEventNotifier.NotificationType SKIPPED
Constructor Detail |
public FileEventNotifier()
Method Detail |
public void register(sam.event.FileEventListener listener)
FileEvent
listener
public void unregister(sam.event.FileEventListener listener)
FileEvent
listener
public void notifyAll(FileEventNotifier.NotificationType type, sam.entry.Entry entry, java.lang.String message)
public void notifyAll(FileEventNotifier.NotificationType type, sam.event.FileEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |