Class JCoConnectionMonitorClusterProvider

java.lang.Object
de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorProvider
de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorClusterProvider

public class JCoConnectionMonitorClusterProvider extends JCoConnectionMonitorProvider
Provider of JCoConnectionMonitorProvider for node environment.
  • Constructor Details

    • JCoConnectionMonitorClusterProvider

      public JCoConnectionMonitorClusterProvider()
  • Method Details

    • initializeCache

      public void initializeCache(Map<Integer,String> snapshotsPerNode, long snapshotTimestamp) throws JCoMonitorException
      Initializes the snapshot cache.
      Parameters:
      snapshotsPerNode - snapshot as XML string per node id
      snapshotTimestamp - snapshot time stamp
      Throws:
      JCoMonitorException - JCoMonitorException
    • reset

      public void reset()
      Resets the snapshot content.
    • snapshotAvailable

      public boolean snapshotAvailable()
      Checks if snapshot content is available.
      Returns:
      true, if available
    • getCacheTimestamp

      public Long getCacheTimestamp()
      Returns the time stamp.
      Returns:
      time stamp as long
    • getNodesCount

      public Integer getNodesCount()
      Returns the total number of nodes of the result.
      Returns:
      number of nodes
    • getNodesWithoutResultCount

      public Integer getNodesWithoutResultCount()
      Returns the total number of nodes which returned no result.
      Returns:
      number of nodes without result
    • getTotalCount

      public Integer getTotalCount()
      Returns cached result of total number of JCo connections.
      Returns:
      number of JCo connections
    • getLongRunnerCount

      public Integer getLongRunnerCount()
      Returns the cached result for number of JCo connections whose lifetime exceed a specific threshold parameter.
      Returns:
      number of JCo connections whose lifetime exceed the defined threshold
    • getPoolLimitReachedCount

      public Integer getPoolLimitReachedCount()
      Returns the cached result for number of RFC destinations whose pool size is reached.
      Returns:
      number of RFC destinations whose pool size is reached
    • getSnapshotXML

      public String getSnapshotXML(Map<Integer,String> snapshotsPerNode, long snapshotTimestamp) throws JCoMonitorException
      Returns all current JCo connections as XML String.
      Parameters:
      snapshotsPerNode - snapshot as XML string per node id
      snapshotTimestamp - snapshot time stamp
      Returns:
      snapshot XML as string
      Throws:
      JCoMonitorException - JCoMonitorException
    • createSnapshotFile

      public File createSnapshotFile(Map<Integer,String> snapshotsPerNode, long snapshotTimestamp) throws JCoMonitorException
      Create JCo connections snapshot file operation.
      Parameters:
      snapshotsPerNode - snapshot as XML string per node id
      snapshotTimestamp - snapshot time stamp
      Returns:
      result message
      Throws:
      JCoMonitorException - JCoMonitorException
    • createSnapshotCache

      protected void createSnapshotCache(Map<Integer,String> snapshotsPerNode, long cacheTimestamp) throws JCoMonitorException
      Creates the snapshot data which is buffered.
      Parameters:
      snapshotsPerNode - snapshot as XML string per node id
      cacheTimestamp - cache time stamp
      Throws:
      JCoMonitorException - JCoMonitorException
    • getJCoConnectionByRFCDestinationMap

      protected Map<String,List<JcoConnectionType>> getJCoConnectionByRFCDestinationMap(Nodes nodes)
      Returns all JCo connections per RFC destination.
      Parameters:
      nodes - JAXB content
      Returns:
      RFC destination / JCo Connections map
    • safeClose

      protected void safeClose(OutputStream resource)