Package com.uc4.api.objects
Class FileSystem
- java.lang.Object
- 
- com.uc4.api.objects.FileSystem
 
- 
 public class FileSystem extends java.lang.ObjectThis class represents the "FileSystem" tab of an file event object.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringFILE_NONE"None" file typestatic java.lang.StringFILE_SIZEFile size.static java.lang.StringFILESYSTEM_SPACE_FREEFree space of volumes (OS/390) or of a drive (Windows).static java.lang.StringOPERATOR_EQUAL=.static java.lang.StringOPERATOR_GREATER>.static java.lang.StringOPERATOR_GREATER_EQUAL>=.static java.lang.StringOPERATOR_LOWER<.static java.lang.StringOPERATOR_LOWER_EQUAL<=.static java.lang.StringOPERATOR_NOT_EQUAL<>.static java.lang.StringPATH_FILE_COUNTNumber of files.static java.lang.StringPATH_SPACE_UNUSEDFree drive space.static java.lang.StringPATH_SPACE_USEDUsed drive space.static java.lang.StringSKIP_NAME_CHECKSkip UC4ObjectName check.static java.lang.String[]VALID_TYPESAll the valid file types
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedFileSystem(com.uc4.util.XMLDocument doc)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangedWithin(int seconds)Adds an additional condition for the event: The file modification that must have changed within the specified amount of seconds.java.lang.StringgetFileType()Returns the file type.UC4HostNamegetHost()Returns the name of the Agent for this FileEvent.java.lang.StringgetHostType()Returns the Host type valueUC4ObjectNamegetLogin()Returns the name of the login object assigned "FileSystem" tab of an file event object.java.lang.StringgetOperator()Returns the operator.java.lang.StringgetPath()intgetTimerControlMinutes()Returns the interval in minutes.TimegetTimerControlStartTime()Gets the start time of the event.java.lang.StringgetUnit()longgetValue()intgetWithinSeconds()booleanhasAdditionalChangedCondition()booleanhasAdditionalStableCondition()booleanisConsiderAll()booleanisExecuteAfterScheduledTime()booleanisExecutionTypeRepeated()booleanisExecutionTypeSingle()booleanisExecutionTypeUntilFirstHit()booleanisFirstExecutionAfterExpire()booleanisFirstExecutionImmediately()booleanisInclSubDir()booleanisStartupEvent()booleanisTimerControlAuto()booleanisTimerControlInterval()booleanisTimerControlStartTime()voidremoveAdditionalConditions()Removes additional FILE_STABLE/FILE_CHANGED conditions.voidsetConsiderAll(boolean considerAll)Sets a flag that which is used to determine if all files should be considered in the check or not.voidsetExecuteAfterScheduledTime(boolean executeAfterScheduledTime)Defines if the event should start after the scheduled time.voidsetExecutionTypeRepeated()Sets the execution type to repeated.voidsetExecutionTypeSingle()Sets the execution type to single.voidsetExecutionTypeUntilFirstHit()Sets the execution type to "Until first hit".voidsetFileType(java.lang.String fileType)Sets the file type.voidsetFirstExecutionAfterExpire()Sets the first execution after time is expired .voidsetFirstExecutionImmediately()Sets the first execution immediately.voidsetHost(UC4HostName host, java.lang.String hostType)Sets the Agent for this Event.voidsetInclSubDir(boolean inclSubDir)Enables or disables the search in sub directories.voidsetLogin(UC4ObjectName loginObject)Sets the name of the login object this field just effect on HostType WIN, UNIX Os/390 (MVS).voidsetOperator(java.lang.String operator)Sets the operator.voidsetPath(java.lang.String path)Sets the path.voidsetStartupEvent(boolean startupEvent)voidsetTimerControlAuto()Sets the TimeControl to Auto.voidsetTimerControlInterval(int interval)Sets the polling interval in minutes.voidsetTimerControlStartTime(Time start)Sets the start time of the event.voidsetUnit(java.lang.String unit)Sets the unit of the value.voidsetValue(long value)Sets the current value.voidstableWithin(int seconds)Adds an additional condition for the event: The file must be stable within the specified number of seconds.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
 
- 
- 
- 
Field Detail- 
PATH_SPACE_UNUSEDpublic static final java.lang.String PATH_SPACE_UNUSED Free drive space.- See Also:
- Constant Field Values
 
 - 
PATH_FILE_COUNTpublic static final java.lang.String PATH_FILE_COUNT Number of files.- See Also:
- Constant Field Values
 
 - 
FILE_SIZEpublic static final java.lang.String FILE_SIZE File size.- See Also:
- Constant Field Values
 
 - 
FILESYSTEM_SPACE_FREEpublic static final java.lang.String FILESYSTEM_SPACE_FREE Free space of volumes (OS/390) or of a drive (Windows).- See Also:
- Constant Field Values
 
 - 
PATH_SPACE_USEDpublic static final java.lang.String PATH_SPACE_USED Used drive space.- See Also:
- Constant Field Values
 
 - 
FILE_NONEpublic static final java.lang.String FILE_NONE "None" file type- See Also:
- Constant Field Values
 
 - 
VALID_TYPESpublic static final java.lang.String[] VALID_TYPES All the valid file types
 - 
OPERATOR_GREATERpublic static final java.lang.String OPERATOR_GREATER >.- See Also:
- Constant Field Values
 
 - 
OPERATOR_LOWERpublic static final java.lang.String OPERATOR_LOWER <.- See Also:
- Constant Field Values
 
 - 
OPERATOR_EQUALpublic static final java.lang.String OPERATOR_EQUAL =.- See Also:
- Constant Field Values
 
 - 
OPERATOR_GREATER_EQUALpublic static final java.lang.String OPERATOR_GREATER_EQUAL >=.- See Also:
- Constant Field Values
 
 - 
OPERATOR_LOWER_EQUALpublic static final java.lang.String OPERATOR_LOWER_EQUAL <=.- See Also:
- Constant Field Values
 
 - 
OPERATOR_NOT_EQUALpublic static final java.lang.String OPERATOR_NOT_EQUAL <>.- See Also:
- Constant Field Values
 
 - 
SKIP_NAME_CHECKpublic static final java.lang.String SKIP_NAME_CHECK Skip UC4ObjectName check.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setLoginpublic void setLogin(UC4ObjectName loginObject) Sets the name of the login object this field just effect on HostType WIN, UNIX Os/390 (MVS).- Parameters:
- loginObject- login object
 
 - 
stableWithinpublic 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
 
 - 
getWithinSecondspublic int getWithinSeconds() - Returns:
- Returns the number of seconds for an additional stable/changed critera
 
 - 
changedWithinpublic 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
 
 - 
hasAdditionalStableConditionpublic boolean hasAdditionalStableCondition() - Returns:
- trueif the additional FILE_STABLE condition has been set.
 
 - 
hasAdditionalChangedConditionpublic boolean hasAdditionalChangedCondition() - Returns:
- trueif the additional FILE_CHANGED condition has been set.
 
 - 
removeAdditionalConditionspublic void removeAdditionalConditions() Removes additional FILE_STABLE/FILE_CHANGED conditions. This is the same as selecting an empty entry in the Dropdownbox in the GUI.
 - 
storeprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
 - 
isConsiderAllpublic boolean isConsiderAll() - Returns:
- true if all files should be considered, false otherwise
 
 - 
setConsiderAllpublic 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
 
 - 
getUnitpublic java.lang.String getUnit() - Returns:
- Unit
 
 - 
setUnitpublic void setUnit(java.lang.String unit) Sets the unit of the value. The parameterunitcan contain the following values:- bytes
- KB
- MB
- GB
- TB
- HostSpecific
 - Parameters:
- unit- Unit
 
 - 
isStartupEventpublic boolean isStartupEvent() - Returns:
- Startup Event setting if the Host type is "MVS".
 
 - 
setStartupEventpublic void setStartupEvent(boolean startupEvent) - Parameters:
- startupEvent- Startup Event setting if the Host type is "MVS".
 
 - 
isInclSubDirpublic boolean isInclSubDir() - Returns:
- true if sub directories should be included
 
 - 
setInclSubDirpublic void setInclSubDir(boolean inclSubDir) Enables or disables the search in sub directories.- Parameters:
- inclSubDir- true if sub directories should be considered
 
 - 
getValuepublic long getValue() - Returns:
- The current value
 
 - 
setValuepublic void setValue(long value) Sets the current value.- Parameters:
- value- positive Number
 
 - 
getOperatorpublic java.lang.String getOperator() Returns the operator. This is one of the constants defined in this class which start with OPERATOR.- Returns:
- Operator
 
 - 
setOperatorpublic void setOperator(java.lang.String operator) Sets the operator. The parameteroperatormust be one of the OPERATOR* constants defined in this class.- Parameters:
- operator- Operator
 
 - 
getFileTypepublic java.lang.String 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
 
 - 
setFileTypepublic void setFileType(java.lang.String fileType) Sets the file type. The parameterfileTypemust 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
 
 - 
getPathpublic java.lang.String getPath() - Returns:
- Returns the Path
 
 - 
setPathpublic void setPath(java.lang.String path) Sets the path.- Parameters:
- path- Path
 
 - 
setHostpublic void setHost(UC4HostName host, java.lang.String hostType) Sets the Agent for this Event.- Parameters:
- host- Host
- hostType- Type of the host (for example WINDOWS)
 
 - 
getHostpublic UC4HostName getHost() Returns the name of the Agent for this FileEvent.- Returns:
- host
 
 - 
getLoginpublic UC4ObjectName getLogin() Returns the name of the login object assigned "FileSystem" tab of an file event object.- Returns:
- login object
 
 - 
isExecuteAfterScheduledTimepublic boolean isExecuteAfterScheduledTime() - Returns:
- True if the event should be started after the scheduled time
 
 - 
setExecuteAfterScheduledTimepublic 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
 
 - 
isFirstExecutionAfterExpirepublic boolean isFirstExecutionAfterExpire() - Returns:
- True if the first execution should be done after time is expired
 
 - 
isFirstExecutionImmediatelypublic boolean isFirstExecutionImmediately() - Returns:
- True if the first execution should be done immediately
 
 - 
setFirstExecutionImmediatelypublic void setFirstExecutionImmediately() Sets the first execution immediately.
 - 
setFirstExecutionAfterExpirepublic void setFirstExecutionAfterExpire() Sets the first execution after time is expired .
 - 
setExecutionTypeRepeatedpublic void setExecutionTypeRepeated() Sets the execution type to repeated.
 - 
isExecutionTypeRepeatedpublic boolean isExecutionTypeRepeated() - Returns:
- True if the execution type is repeated
 
 - 
setExecutionTypeSinglepublic void setExecutionTypeSingle() Sets the execution type to single.
 - 
isExecutionTypeSinglepublic boolean isExecutionTypeSingle() - Returns:
- True if the execution type is set to single
 
 - 
setExecutionTypeUntilFirstHitpublic void setExecutionTypeUntilFirstHit() Sets the execution type to "Until first hit".
 - 
isExecutionTypeUntilFirstHitpublic boolean isExecutionTypeUntilFirstHit() - Returns:
- True if the execution type is set to "Until first hit"
 
 - 
isTimerControlIntervalpublic boolean isTimerControlInterval() - Returns:
- True if the Event is executed in a defined interval
 
 - 
setTimerControlIntervalpublic void setTimerControlInterval(int interval) Sets the polling interval in minutes.- Parameters:
- interval- Interval in minutes
 
 - 
setTimerControlAutopublic void setTimerControlAuto() Sets the TimeControl to Auto.
 - 
isTimerControlAutopublic boolean isTimerControlAuto() - Returns:
- true if Timer is Auto
 
 - 
getTimerControlMinutespublic int getTimerControlMinutes() Returns the interval in minutes.- Returns:
- Timer Interval in minutes
 
 - 
isTimerControlStartTimepublic boolean isTimerControlStartTime() - Returns:
- True if the Event is set to be executed at a defined time
 
 - 
getTimerControlStartTimepublic Time getTimerControlStartTime() Gets the start time of the event.- Returns:
- Start time
 
 - 
setTimerControlStartTimepublic void setTimerControlStartTime(Time start) Sets the start time of the event.- Parameters:
- start- Start time
 
 - 
getHostTypepublic java.lang.String getHostType() Returns the Host type value- Returns:
- hostType
 
 
- 
 
-