Package com.uc4.api.objects
Class FileSystem
java.lang.Object
com.uc4.api.objects.FileSystem
This class represents the "FileSystem" tab of an file event object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
"None" file typestatic final String
File size.static final String
Free space of volumes (OS/390) or of a drive (Windows).static final String
=.static final String
>.static final String
>=.static final String
<.static final String
<=.static final String
<>.static final String
Number of files.static final String
Free drive space.static final String
Used drive space.static final String
Skip UC4ObjectName check.static final String[]
All the valid file types -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changedWithin
(int seconds) Adds an additional condition for the event: The file modification that must have changed within the specified amount of seconds.Returns the file type.getHost()
Returns the name of the Agent for this FileEvent.Returns the Host type valuegetLogin()
Returns the name of the login object assigned "FileSystem" tab of an file event object.Returns the operator.getPath()
int
Returns the interval in minutes.Gets the start time of the event.getUnit()
long
getValue()
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
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
Sets the execution type to repeated.void
Sets the execution type to single.void
Sets the execution type to "Until first hit".void
setFileType
(String fileType) Sets the file type.void
Sets the first execution after time is expired .void
Sets the first execution immediately.void
setHost
(UC4HostName host, 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
(String operator) Sets the operator.void
Sets the path.void
setStartupEvent
(boolean startupEvent) void
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
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
-
Field Details
-
PATH_SPACE_UNUSED
Free drive space.- See Also:
-
PATH_FILE_COUNT
Number of files.- See Also:
-
FILE_SIZE
File size.- See Also:
-
FILESYSTEM_SPACE_FREE
Free space of volumes (OS/390) or of a drive (Windows).- See Also:
-
PATH_SPACE_USED
Used drive space.- See Also:
-
FILE_NONE
"None" file type- See Also:
-
VALID_TYPES
All the valid file types -
OPERATOR_GREATER
>.- See Also:
-
OPERATOR_LOWER
<.- See Also:
-
OPERATOR_EQUAL
=.- See Also:
-
OPERATOR_GREATER_EQUAL
>=.- See Also:
-
OPERATOR_LOWER_EQUAL
<=.- See Also:
-
OPERATOR_NOT_EQUAL
<>.- See Also:
-
SKIP_NAME_CHECK
Skip UC4ObjectName check.- See Also:
-
-
Constructor Details
-
FileSystem
protected FileSystem(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
setLogin
Sets the name of the login object this field just effect on HostType WIN, UNIX Os/390 (MVS).- Parameters:
loginObject
- login object
-
stableWithin
public void stableWithin(int seconds) Adds an additional condition for the event: The file must be stable within the specified number of seconds.- Parameters:
seconds
- Number of seconds
-
getWithinSeconds
public int getWithinSeconds()- Returns:
- Returns the number of seconds for an additional stable/changed critera
-
changedWithin
public void changedWithin(int seconds) Adds an additional condition for the event: The file modification that must have changed within the specified amount of seconds.- Parameters:
seconds
- Number of seconds
-
hasAdditionalStableCondition
public boolean hasAdditionalStableCondition()- Returns:
true
if the additional FILE_STABLE condition has been set.
-
hasAdditionalChangedCondition
public boolean hasAdditionalChangedCondition()- Returns:
true
if the additional FILE_CHANGED condition has been set.
-
removeAdditionalConditions
public void removeAdditionalConditions()Removes additional FILE_STABLE/FILE_CHANGED conditions. This is the same as selecting an empty entry in the Dropdownbox in the GUI. -
store
-
isConsiderAll
public boolean isConsiderAll()- Returns:
- true if all files should be considered, false otherwise
-
setConsiderAll
public void setConsiderAll(boolean considerAll) Sets a flag that which is used to determine if all files should be considered in the check or not.- Parameters:
considerAll
- true if all files should be considered, false otherwise
-
getUnit
- Returns:
- Unit
-
setUnit
Sets the unit of the value. The parameterunit
can contain the following values:- bytes
- KB
- MB
- GB
- TB
- HostSpecific
- Parameters:
unit
- Unit
-
isStartupEvent
public boolean isStartupEvent()- Returns:
- Startup Event setting if the Host type is "MVS".
-
setStartupEvent
public void setStartupEvent(boolean startupEvent) - Parameters:
startupEvent
- Startup Event setting if the Host type is "MVS".
-
isInclSubDir
public boolean isInclSubDir()- Returns:
- true if sub directories should be included
-
setInclSubDir
public void setInclSubDir(boolean inclSubDir) Enables or disables the search in sub directories.- Parameters:
inclSubDir
- true if sub directories should be considered
-
getValue
public long getValue()- Returns:
- The current value
-
setValue
public void setValue(long value) Sets the current value.- Parameters:
value
- positive Number
-
getOperator
Returns the operator. This is one of the constants defined in this class which start with OPERATOR.- Returns:
- Operator
-
setOperator
Sets the operator. The parameteroperator
must be one of the OPERATOR* constants defined in this class.- Parameters:
operator
- Operator
-
getFileType
Returns the file type. The returned value is equal to one of the public constants defined in this class- FILE_NONE
- PATH_SPACE_UNUSED
- PATH_FILE_COUNT
- FILESYSTEM_SPACE_FREE
- PATH_SPACE_USED
- FILE_SIZE
- Returns:
- File type
-
setFileType
Sets the file type. The parameterfileType
must be one of the constants defined in this class:- FILE_NONE
- PATH_SPACE_UNUSED
- PATH_FILE_COUNT
- PATH_SPACE_USED
- FILESYSTEM_SPACE_FREE
- PATH_SPACE_USED
- FILE_SIZE
- Parameters:
fileType
- File type
-
getPath
- Returns:
- Returns the Path
-
setPath
Sets the path.- Parameters:
path
- Path
-
setHost
Sets the Agent for this Event.- Parameters:
host
- HosthostType
- Type of the host (for example WINDOWS)
-
getHost
Returns the name of the Agent for this FileEvent.- Returns:
- host
-
getLogin
Returns the name of the login object assigned "FileSystem" tab of an file event object.- Returns:
- login object
-
isExecuteAfterScheduledTime
public boolean isExecuteAfterScheduledTime()- Returns:
- True if the event should be started after the scheduled time
-
setExecuteAfterScheduledTime
public void setExecuteAfterScheduledTime(boolean executeAfterScheduledTime) Defines if the event should start after the scheduled time.- Parameters:
executeAfterScheduledTime
- True if the event should be started after the scheduled time
-
isFirstExecutionAfterExpire
public boolean isFirstExecutionAfterExpire()- Returns:
- True if the first execution should be done after time is expired
-
isFirstExecutionImmediately
public boolean isFirstExecutionImmediately()- Returns:
- True if the first execution should be done immediately
-
setFirstExecutionImmediately
public void setFirstExecutionImmediately()Sets the first execution immediately. -
setFirstExecutionAfterExpire
public void setFirstExecutionAfterExpire()Sets the first execution after time is expired . -
setExecutionTypeRepeated
public void setExecutionTypeRepeated()Sets the execution type to repeated. -
isExecutionTypeRepeated
public boolean isExecutionTypeRepeated()- Returns:
- True if the execution type is repeated
-
setExecutionTypeSingle
public void setExecutionTypeSingle()Sets the execution type to single. -
isExecutionTypeSingle
public boolean isExecutionTypeSingle()- Returns:
- True if the execution type is set to single
-
setExecutionTypeUntilFirstHit
public void setExecutionTypeUntilFirstHit()Sets the execution type to "Until first hit". -
isExecutionTypeUntilFirstHit
public boolean isExecutionTypeUntilFirstHit()- Returns:
- True if the execution type is set to "Until first hit"
-
isTimerControlInterval
public boolean isTimerControlInterval()- Returns:
- True if the Event is executed in a defined interval
-
setTimerControlInterval
public void setTimerControlInterval(int interval) Sets the polling interval in minutes.- Parameters:
interval
- Interval in minutes
-
setTimerControlAuto
public void setTimerControlAuto()Sets the TimeControl to Auto. -
isTimerControlAuto
public boolean isTimerControlAuto()- Returns:
- true if Timer is Auto
-
getTimerControlMinutes
public int getTimerControlMinutes()Returns the interval in minutes.- Returns:
- Timer Interval in minutes
-
isTimerControlStartTime
public boolean isTimerControlStartTime()- Returns:
- True if the Event is set to be executed at a defined time
-
getTimerControlStartTime
Gets the start time of the event.- Returns:
- Start time
-
setTimerControlStartTime
Sets the start time of the event.- Parameters:
start
- Start time
-
getHostType
Returns the Host type value- Returns:
- hostType
-