org.sadun.util.polling
Class FileMovedJMXNotification

java.lang.Object
  extended byNotification
      extended byorg.sadun.util.polling.BaseJMXNotification
          extended byorg.sadun.util.polling.FileMovedJMXNotification

public class FileMovedJMXNotification
extends org.sadun.util.polling.BaseJMXNotification

See Also:
Serialized Form

Field Summary
protected  BasePollerEvent event
           
static java.lang.String NOTIFICATION_TYPE
           
 
Constructor Summary
FileMovedJMXNotification(ObjectName pollerName, SequenceNumberGenerator sqg, BasePollerEvent evt)
           
 
Method Summary
protected  BasePollerEvent getEvent()
          Note: this is null for exception notifications.
 org.sadun.util.MovedFile getMovedFile()
          See FileMovedEvent.getPath().
 java.io.File getOriginalPath()
          See FileMovedEvent.getOriginalPath().
 java.io.File getPath()
          See FileMovedEvent.getPath().
 long getPollerEventTime()
          Return the time of the original poller event.
protected static java.lang.String mkMsg(BasePollerEvent evt, java.lang.String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_TYPE

public static final java.lang.String NOTIFICATION_TYPE
See Also:
Constant Field Values

event

protected BasePollerEvent event
Constructor Detail

FileMovedJMXNotification

public FileMovedJMXNotification(ObjectName pollerName,
                                SequenceNumberGenerator sqg,
                                BasePollerEvent evt)
Method Detail

getOriginalPath

public java.io.File getOriginalPath()
See FileMovedEvent.getOriginalPath().

Returns:
the same as FileMovedEvent.getOriginalPath().

getPath

public java.io.File getPath()
See FileMovedEvent.getPath().

Returns:
the same as FileMovedEvent.getPath().

getMovedFile

public org.sadun.util.MovedFile getMovedFile()
See FileMovedEvent.getPath().

Returns:
the same as FileMovedEvent.getPath().

getEvent

protected BasePollerEvent getEvent()
Note: this is null for exception notifications.

Returns:
the event underlying this notification, or null

mkMsg

protected static java.lang.String mkMsg(BasePollerEvent evt,
                                        java.lang.String propertyName)

getPollerEventTime

public long getPollerEventTime()
Return the time of the original poller event.

Returns:
the time of the original poller event.


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.