MonitorableEntrypublic final class MonitorableEntry extends Object Represents a monitor entry in dynamic reloading. |
Fields Summary |
---|
private String | id | private String | displayName | private File | monitoredFile | private long | lastReloadedAt | private MonitorListener | listener |
Constructors Summary |
---|
MonitorableEntry(String id, String displayName, File monitoredFile, MonitorListener listener)Constructor.
this.id = id;
this.displayName = displayName;
this.monitoredFile = monitoredFile;
this.lastReloadedAt = monitoredFile.lastModified();
this.listener = listener;
| MonitorableEntry(String id, File monitoredFile, MonitorListener listener)Constructor.
this(id, id, monitoredFile, listener);
| MonitorableEntry(File monitoredFile, MonitorListener listener)Constructor. Use this when "id" is not necessary.
this("AutoDeployDirectory", monitoredFile, listener);
|
Methods Summary |
---|
public boolean | equals(java.lang.Object other)Indicates whether the given object is equal to this one.
return monitoredFile.equals(((MonitorableEntry) other).monitoredFile);
| java.lang.String | getDisplayName()Returns the display name of the entry (usually this is the same as
the id).
return this.displayName;
| java.lang.String | getId()Returns the id of the entry.
return this.id;
| long | getLastReloadedTimeStamp()Returns the last attempted reload time stamp of the monitored entry.
return this.lastReloadedAt;
| MonitorListener | getListener()Returns the listener for this entry
return this.listener;
| java.io.File | getMonitoredFile()Returns the monitored file for this entry.
return this.monitoredFile;
| public int | hashCode()Returns a hash code for this object.
return id.hashCode();
| void | setLastReloadedTimeStamp(long ts)Sets the time stamp of last reload attempt.
this.lastReloadedAt = ts;
|
|