Package com.swiftmq.impl.streams
Class OsSupport
java.lang.Object
com.swiftmq.impl.streams.OsSupport
Convenience class that provides methods to access environment properties. It is accessible from
Streams scripts via variable "os".
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2017, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current CPU load of the Router process.long
totalSpace
(String path) Returns the total space of a partition referenced by a path.long
unallocatedSpace
(String path) Returns the unallocated (free) space of a partition referenced by a path.long
usableSpace
(String path) Returns the usable space of a partition referenced by a path.
-
Method Details
-
totalSpace
Returns the total space of a partition referenced by a path.- Parameters:
path
- path- Returns:
- total space
- Throws:
Exception
-
usableSpace
Returns the usable space of a partition referenced by a path.- Parameters:
path
- path- Returns:
- usable space
- Throws:
Exception
-
unallocatedSpace
Returns the unallocated (free) space of a partition referenced by a path.- Parameters:
path
- path- Returns:
- usable space
- Throws:
Exception
-
processCpuLoad
Returns the current CPU load of the Router process.- Returns:
- cpu load in percent
- Throws:
Exception
-