Class JCoConnectionsSnapshotClusterHandler

    • Constructor Detail

      • JCoConnectionsSnapshotClusterHandler

        public JCoConnectionsSnapshotClusterHandler()
    • Method Detail

      • setEventService

        public void setEventService​(EventService eventService)
        Injection setter for EventService.
        Parameters:
        eventService - the eventService to set
      • setCollectionTimeoutInSeconds

        public void setCollectionTimeoutInSeconds​(long collectionTimeoutInSeconds)
        Injection setter for collection timeout.
        Parameters:
        collectionTimeoutInSeconds - collection timeout in seconds
      • setCacheLifetimeInSeconds

        public void setCacheLifetimeInSeconds​(long cacheLifetimeInSeconds)
        Injection setter for cache lifetime.
        Parameters:
        cacheLifetimeInSeconds - cache lifetime in seconds
      • getLongRunnerCount

        public java.lang.Integer getLongRunnerCount()
        Description copied from interface: JCoConnectionMonitor
        Returns the number of JCo connections whose lifetime exceed a specific threshold parameter. The threshold parameter is defined in the project.properties file. Its default value is the same as the value of the default session timeout (3600 seconds).
        Specified by:
        getLongRunnerCount in interface JCoConnectionMonitor
        Returns:
        number of JCo connections whose lifetime exceed the defined threshold
      • getPoolLimitReachedCount

        public java.lang.Integer getPoolLimitReachedCount()
        Description copied from interface: JCoConnectionMonitor
        Returns number of RFC destinations whose pool size is reached.
        Specified by:
        getPoolLimitReachedCount in interface JCoConnectionMonitor
        Returns:
        number of RFC destinations whose pool size is reached
      • getNodesCount

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

        public java.lang.Integer getNodesWithoutResultCount()
        Returns the total number of nodes with result of the result.
        Returns:
        number of nodes without result
      • getCacheTimestamp

        public java.util.Date getCacheTimestamp()
        Returns the snapshot time stamp.
        Returns:
        snapshot time stamp
      • getCacheExpirationTimestamp

        public java.util.Date getCacheExpirationTimestamp()
        Returns the snapshot buffer valid to time stamp.
        Returns:
        snapshot valid to time stamp
      • resetCache

        public void resetCache()
        Resets the snapshot buffer.
      • isSnapshotInProcess

        public boolean isSnapshotInProcess()
        Returns an indicator whether a snapshot is currently in creation.
        Returns:
        snapshot in process indicator
      • checkState

        protected void checkState()
        Check current state of snapshot in buffer and refreshes it if lifetime is outdated.
      • createClusterSnapshot

        protected java.lang.String createClusterSnapshot​(boolean withFile,
                                                         boolean updateCache)
        Initiates the creation of one jco connections snapshot file for all cluster.
        Parameters:
        withFile - create snapshot file
        updateCache - update cache indicator
        Returns:
        status message