Class OpenGridCluster.Info

java.lang.Object
net.sf.basedb.opengrid.OpenGridCluster.Info
Enclosing class:
OpenGridCluster

public static class OpenGridCluster.Info
extends Object
Holds information about the Open Grid cluster together with a timestamp for caching purposes.
  • Field Details

    • created

      private final long created
    • hostInfo

      private final CmdResult<String> hostInfo
    • ogsInfo

      private final CmdResult<String> ogsInfo
    • timeAdjustment

      private final int timeAdjustment
    • error

      private final boolean error
    • connected

      private final boolean connected
  • Constructor Details

  • Method Details

    • created

      public long created()
      The timestamp when this information was created.
    • isConnected

      public boolean isConnected()
      TRUE if was possible to connect to the cluster, FALSE otherwise.
      Since:
      1.4
    • getHostInfo

      public CmdResult<String> getHostInfo()
      Get the cached result of the call to OpenGridSession.getHostInfo().
    • getOpenGridInfo

      public CmdResult<String> getOpenGridInfo()
      Get the cached result of the call to OpenGridSession.getOpenGridInfo().
    • getTimeAdjustment

      public int getTimeAdjustment()
      Get the cached result of the call to OpenGridSession.getTimeAdjustment().
    • asJSONObject

      public org.json.simple.JSONObject asJSONObject​(JSONOptions options)
      Get the information as a JSON object.