Class OsSupport

java.lang.Object
com.swiftmq.impl.streams.OsSupport

public class OsSupport extends Object
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 Details

    • totalSpace

      public long totalSpace(String path) throws Exception
      Returns the total space of a partition referenced by a path.
      Parameters:
      path - path
      Returns:
      total space
      Throws:
      Exception
    • usableSpace

      public long usableSpace(String path) throws Exception
      Returns the usable space of a partition referenced by a path.
      Parameters:
      path - path
      Returns:
      usable space
      Throws:
      Exception
    • unallocatedSpace

      public long unallocatedSpace(String path) throws Exception
      Returns the unallocated (free) space of a partition referenced by a path.
      Parameters:
      path - path
      Returns:
      usable space
      Throws:
      Exception
    • processCpuLoad

      public int processCpuLoad() throws Exception
      Returns the current CPU load of the Router process.
      Returns:
      cpu load in percent
      Throws:
      Exception