JSCAPE MFT Server

com.jscape.inet.mft.monitor
Class DirectoryMonitor

java.lang.Object
  extended by com.jscape.inet.mft.monitor.DirectoryMonitor

public class DirectoryMonitor
extends java.lang.Object

Directory monitor.

Author:
Alex Usun

Constructor Summary
DirectoryMonitor()
          This constructor is used by serialization sub-system and is not intended to use directly in client code.
DirectoryMonitor(java.lang.String name, java.lang.String pathname, java.lang.Long timeout, boolean monitorAdding, boolean monitorChanging, boolean monitorDeleting, boolean monitorRecursively, com.jscape.inet.mft.monitor.DirectoryQuota quota, java.lang.Long latencyPeriod, java.lang.String owner, java.lang.Long maxFileAgeMillis)
          Creates a new monitor instance.
 
Method Summary
 java.lang.Long getLatencyPeriod()
          Returns monitor latency period.
 java.lang.Long getMaxFileAgeMillis()
          Returns a file max age value.
 boolean getMonitorAdding()
          Returns file adding monitor flag.
 boolean getMonitorChanging()
          Returns file changing monitor flag.
 boolean getMonitorDeleting()
          Returns file deleting monitor flag.
 boolean getMonitorRecursively()
          Returns recursively monitor flag.
 java.lang.String getName()
          Returns monitor name.
 java.lang.String getOwner()
          Returns the monitor owner.
 java.lang.String getPathname()
          Returns target directory path.
 com.jscape.inet.mft.monitor.DirectoryQuota getQuota()
          Returns directory quota.
 java.lang.Long getTimeout()
          Returns monitor timeout.
 void setLatencyPeriod(java.lang.Long value)
          Sets a monitor latency period.
 void setMaxFileAgeMillis(java.lang.Long value)
          Sets a file max age value.
 void setMonitorAdding(boolean value)
          Sets file adding monitor flag
 void setMonitorChanging(boolean value)
          Sets file changing monitor flag
 void setMonitorDeleting(boolean value)
          Sets file deleting monitor flag
 void setMonitorRecursively(boolean value)
          Sets recursive monitor flag.
 void setName(java.lang.String value)
          Sets monitor name.
 void setOwner(java.lang.String value)
          Sets a monitor owner.
 void setPathname(java.lang.String value)
          Sets target directory path.
 void setQuota(com.jscape.inet.mft.monitor.DirectoryQuota value)
          Sets directory quota.
 void setTimeout(java.lang.Long value)
          Sets monitor timeout.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryMonitor

public DirectoryMonitor(java.lang.String name,
                        java.lang.String pathname,
                        java.lang.Long timeout,
                        boolean monitorAdding,
                        boolean monitorChanging,
                        boolean monitorDeleting,
                        boolean monitorRecursively,
                        com.jscape.inet.mft.monitor.DirectoryQuota quota,
                        java.lang.Long latencyPeriod,
                        java.lang.String owner,
                        java.lang.Long maxFileAgeMillis)
Creates a new monitor instance.

Parameters:
name - monitor name
pathname - target directory
timeout - monitor timeout in ms
monitorAdding - if true file adding will be monitored
monitorChanging - if true file changing will be monitored
monitorDeleting - if true file deleting will be monitored
monitorRecursively - if true subdirectories will be monitored recursively
quota - disk space quota for the monitored directory in bytes
latencyPeriod - a latency period
owner - a monitor owner
maxFileAgeMillis - a file max file age

DirectoryMonitor

public DirectoryMonitor()
This constructor is used by serialization sub-system and is not intended to use directly in client code.

Method Detail

getName

public java.lang.String getName()
Returns monitor name.

Returns:
monitor name

setName

public void setName(java.lang.String value)
Sets monitor name.

Parameters:
value - monitor name

getPathname

public java.lang.String getPathname()
Returns target directory path.

Returns:
target directory path

setPathname

public void setPathname(java.lang.String value)
Sets target directory path.

Parameters:
value - target directory path

getTimeout

public java.lang.Long getTimeout()
Returns monitor timeout.

Returns:
monitor timeout in ms

setTimeout

public void setTimeout(java.lang.Long value)
Sets monitor timeout.

Parameters:
value - monitor timeout in ms

getMonitorAdding

public boolean getMonitorAdding()
Returns file adding monitor flag.

Returns:
true if file adding is monitored; false otherwise

setMonitorAdding

public void setMonitorAdding(boolean value)
Sets file adding monitor flag

Parameters:
value - if true file adding will be monitored

getMonitorChanging

public boolean getMonitorChanging()
Returns file changing monitor flag.

Returns:
true if file changing is monitored; false otherwise

setMonitorChanging

public void setMonitorChanging(boolean value)
Sets file changing monitor flag

Parameters:
value - if true file changing will be monitored

getMonitorDeleting

public boolean getMonitorDeleting()
Returns file deleting monitor flag.

Returns:
true if file deleting is monitored; false otherwise

setMonitorDeleting

public void setMonitorDeleting(boolean value)
Sets file deleting monitor flag

Parameters:
value - if true file deleting will be monitored

getMonitorRecursively

public boolean getMonitorRecursively()
Returns recursively monitor flag.

Returns:
true if monitor works recursively; false otherwise

setMonitorRecursively

public void setMonitorRecursively(boolean value)
Sets recursive monitor flag.

Parameters:
value - if true monitor will work recursively

getQuota

public com.jscape.inet.mft.monitor.DirectoryQuota getQuota()
Returns directory quota.

Returns:
directory quota in bytes

setQuota

public void setQuota(com.jscape.inet.mft.monitor.DirectoryQuota value)
Sets directory quota.

Parameters:
value - directory quota in bytes

getLatencyPeriod

public java.lang.Long getLatencyPeriod()
Returns monitor latency period.

Returns:
the monitor latency period

setLatencyPeriod

public void setLatencyPeriod(java.lang.Long value)
Sets a monitor latency period.

Parameters:
value - a monitor latency period

getOwner

public java.lang.String getOwner()
Returns the monitor owner.

Returns:
the monitor owner

setOwner

public void setOwner(java.lang.String value)
Sets a monitor owner.

Parameters:
value - a monitor owner

getMaxFileAgeMillis

public java.lang.Long getMaxFileAgeMillis()
Returns a file max age value.

Returns:
a file max age value

setMaxFileAgeMillis

public void setMaxFileAgeMillis(java.lang.Long value)
Sets a file max age value.

Parameters:
value - a file max age value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2013. All Rights Reserved