public class FileSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_NONE
"None" file type
|
static java.lang.String |
FILE_SIZE
File size.
|
static java.lang.String |
FILESYSTEM_SPACE_FREE
Free space of volumes (OS/390) or of a drive (Windows).
|
static java.lang.String |
OPERATOR_EQUAL
=.
|
static java.lang.String |
OPERATOR_GREATER
>.
|
static java.lang.String |
OPERATOR_GREATER_EQUAL
>=.
|
static java.lang.String |
OPERATOR_LOWER
<.
|
static java.lang.String |
OPERATOR_LOWER_EQUAL
<=.
|
static java.lang.String |
OPERATOR_NOT_EQUAL
<>.
|
static java.lang.String |
PATH_FILE_COUNT
Number of files.
|
static java.lang.String |
PATH_SPACE_UNUSED
Free drive space.
|
static java.lang.String |
PATH_SPACE_USED
Used drive space.
|
static java.lang.String |
SKIP_NAME_CHECK
Skip UC4ObjectName check.
|
static java.lang.String[] |
VALID_TYPES
All the valid file types
|
Modifier | Constructor and Description |
---|---|
protected |
FileSystem(com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and Description |
---|---|
void |
changedWithin(int seconds)
Adds an additional condition for the event:
The file modification that must have changed within the specified amount of seconds.
|
java.lang.String |
getFileType()
Returns the file type.
|
UC4HostName |
getHost()
Returns the name of the Agent for this FileEvent.
|
java.lang.String |
getHostType()
Returns the Host type value
|
UC4ObjectName |
getLogin()
Returns the name of the login object assigned "FileSystem" tab of an file event object.
|
java.lang.String |
getOperator()
Returns the operator.
|
java.lang.String |
getPath() |
int |
getTimerControlMinutes()
Returns the interval in minutes.
|
Time |
getTimerControlStartTime()
Gets the start time of the event.
|
java.lang.String |
getUnit() |
long |
getValue() |
int |
getWithinSeconds() |
boolean |
hasAdditionalChangedCondition() |
boolean |
hasAdditionalStableCondition() |
boolean |
isConsiderAll() |
boolean |
isExecuteAfterScheduledTime() |
boolean |
isExecutionTypeRepeated() |
boolean |
isExecutionTypeSingle() |
boolean |
isExecutionTypeUntilFirstHit() |
boolean |
isFirstExecutionAfterExpire() |
boolean |
isFirstExecutionImmediately() |
boolean |
isInclSubDir() |
boolean |
isStartupEvent() |
boolean |
isTimerControlAuto() |
boolean |
isTimerControlInterval() |
boolean |
isTimerControlStartTime() |
void |
removeAdditionalConditions()
Removes additional FILE_STABLE/FILE_CHANGED conditions.
|
void |
setConsiderAll(boolean considerAll)
Sets a flag that which is used to determine if all files should be considered in the check or not.
|
void |
setExecuteAfterScheduledTime(boolean executeAfterScheduledTime)
Defines if the event should start after the scheduled time.
|
void |
setExecutionTypeRepeated()
Sets the execution type to repeated.
|
void |
setExecutionTypeSingle()
Sets the execution type to single.
|
void |
setExecutionTypeUntilFirstHit()
Sets the execution type to "Until first hit".
|
void |
setFileType(java.lang.String fileType)
Sets the file type.
|
void |
setFirstExecutionAfterExpire()
Sets the first execution after time is expired .
|
void |
setFirstExecutionImmediately()
Sets the first execution immediately.
|
void |
setHost(UC4HostName host,
java.lang.String hostType)
Sets the Agent for this Event.
|
void |
setInclSubDir(boolean inclSubDir)
Enables or disables the search in sub directories.
|
void |
setLogin(UC4ObjectName loginObject)
Sets the name of the login object this field just effect on HostType WIN, UNIX Os/390 (MVS).
|
void |
setOperator(java.lang.String operator)
Sets the operator.
|
void |
setPath(java.lang.String path)
Sets the path.
|
void |
setStartupEvent(boolean startupEvent) |
void |
setTimerControlAuto()
Sets the TimeControl to Auto.
|
void |
setTimerControlInterval(int interval)
Sets the polling interval in minutes.
|
void |
setTimerControlStartTime(Time start)
Sets the start time of the event.
|
void |
setUnit(java.lang.String unit)
Sets the unit of the value.
|
void |
setValue(long value)
Sets the current value.
|
void |
stableWithin(int seconds)
Adds an additional condition for the event:
The file must be stable within the specified number of seconds.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request) |
public static final java.lang.String PATH_SPACE_UNUSED
public static final java.lang.String PATH_FILE_COUNT
public static final java.lang.String FILE_SIZE
public static final java.lang.String FILESYSTEM_SPACE_FREE
public static final java.lang.String PATH_SPACE_USED
public static final java.lang.String FILE_NONE
public static final java.lang.String[] VALID_TYPES
public static final java.lang.String OPERATOR_GREATER
public static final java.lang.String OPERATOR_LOWER
public static final java.lang.String OPERATOR_EQUAL
public static final java.lang.String OPERATOR_GREATER_EQUAL
public static final java.lang.String OPERATOR_LOWER_EQUAL
public static final java.lang.String OPERATOR_NOT_EQUAL
public static final java.lang.String SKIP_NAME_CHECK
public void setLogin(UC4ObjectName loginObject)
loginObject
- login objectpublic void stableWithin(int seconds)
seconds
- Number of secondspublic int getWithinSeconds()
public void changedWithin(int seconds)
seconds
- Number of secondspublic boolean hasAdditionalStableCondition()
true
if the additional FILE_STABLE condition has been set.public boolean hasAdditionalChangedCondition()
true
if the additional FILE_CHANGED condition has been set.public void removeAdditionalConditions()
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
public boolean isConsiderAll()
public void setConsiderAll(boolean considerAll)
considerAll
- true if all files should be considered, false otherwisepublic java.lang.String getUnit()
public void setUnit(java.lang.String unit)
unit
can contain the
following values:
unit
- Unitpublic boolean isStartupEvent()
public void setStartupEvent(boolean startupEvent)
startupEvent
- Startup Event setting if the Host type is "MVS".public boolean isInclSubDir()
public void setInclSubDir(boolean inclSubDir)
inclSubDir
- true if sub directories should be consideredpublic long getValue()
public void setValue(long value)
value
- positive Numberpublic java.lang.String getOperator()
public void setOperator(java.lang.String operator)
operator
must
be one of the OPERATOR* constants defined in this class.operator
- Operatorpublic java.lang.String getFileType()
public void setFileType(java.lang.String fileType)
fileType
must be one of the constants defined in this class:
fileType
- File typepublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- Pathpublic void setHost(UC4HostName host, java.lang.String hostType)
host
- HosthostType
- Type of the host (for example WINDOWS)public UC4HostName getHost()
public UC4ObjectName getLogin()
public boolean isExecuteAfterScheduledTime()
public void setExecuteAfterScheduledTime(boolean executeAfterScheduledTime)
executeAfterScheduledTime
- True if the event should be started after the scheduled timepublic boolean isFirstExecutionAfterExpire()
public boolean isFirstExecutionImmediately()
public void setFirstExecutionImmediately()
public void setFirstExecutionAfterExpire()
public void setExecutionTypeRepeated()
public boolean isExecutionTypeRepeated()
public void setExecutionTypeSingle()
public boolean isExecutionTypeSingle()
public void setExecutionTypeUntilFirstHit()
public boolean isExecutionTypeUntilFirstHit()
public boolean isTimerControlInterval()
public void setTimerControlInterval(int interval)
interval
- Interval in minutespublic void setTimerControlAuto()
public boolean isTimerControlAuto()
public int getTimerControlMinutes()
public boolean isTimerControlStartTime()
public Time getTimerControlStartTime()
public void setTimerControlStartTime(Time start)
start
- Start timepublic java.lang.String getHostType()