Class JCoConnectionClusterMBeanImpl
- java.lang.Object
-
- de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
-
- de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
-
- de.hybris.platform.sap.core.jco.jmx.impl.JCoConnectionClusterMBeanImpl
-
- All Implemented Interfaces:
JCoConnectionClusterMBean,JCoConnectionMonitor,org.springframework.beans.factory.InitializingBean
@ManagedResource(description="Overview of the SAP JCo Connections of all nodes of the cluster.") public class JCoConnectionClusterMBeanImpl extends AbstractJMXMBean implements JCoConnectionClusterMBean
JCoConnection cluster monitoring JMX MBean.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetCacheExpirationTimestampprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetCacheTimestampprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetLongRunnerCountprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetNodesCountprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetNodesWithoutResultCountprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetPoolLimitReachedCountprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetResetStringprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorGetTotalCountprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorSnapshotFileprotected classJCoConnectionClusterMBeanImpl.TenantAwareExecutorSnapshotXML-
Nested classes/interfaces inherited from class de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
AbstractJMXMBean.TenantAwareExecutor<T>
-
-
Constructor Summary
Constructors Constructor Description JCoConnectionClusterMBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateSnapshotFile()Create JCo connections snapshot file operation.java.lang.StringcreateSnapshotXML()Returns all current JCo connections as XML String.java.util.DategetCacheExpirationTimestamp()Returns the time stamp until the current cluster cache is valid.java.util.DategetCacheTimestamp()Returns the time stamp of the current cluster cache.java.lang.IntegergetLongRunnerCount()Returns the number of JCo connections whose lifetime exceed a specific threshold parameter.java.lang.IntegergetNodesCount()Returns the total number of nodes of the result.java.lang.IntegergetNodesWithoutResultCount()Returns the total number of nodes which haven't returned a result.java.lang.IntegergetPoolLimitReachedCount()Returns number of RFC destinations whose pool size is reached.java.lang.IntegergetTotalCount()Returns the total number of JCo connections.java.lang.StringresetCache()Resets the JCo connections cache operation.voidsetSnapshotClusterHandler(JCoConnectionsSnapshotClusterHandler snapshotClusterHandler)Injection setter forJCoConnectionsSnapshotClusterHandler.-
Methods inherited from class de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
activateTenant, afterPropertiesSet, deactivateTenant, getBeanInterface, getObjectName, isJNDIContextAware, setBeanInterface, setJmxPath
-
Methods inherited from class de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
getJmxDomain, getJmxPath, getObjectNameString, getTenantId, setTenant
-
-
-
-
Method Detail
-
setSnapshotClusterHandler
public void setSnapshotClusterHandler(JCoConnectionsSnapshotClusterHandler snapshotClusterHandler)
Injection setter forJCoConnectionsSnapshotClusterHandler.- Parameters:
snapshotClusterHandler- the snapshotClusterHandler to set
-
getTotalCount
@ManagedAttribute(description="Shows the total number of JCo connections of all nodes of the cluster.") public java.lang.Integer getTotalCount()
Description copied from interface:JCoConnectionMonitorReturns the total number of JCo connections.- Specified by:
getTotalCountin interfaceJCoConnectionMonitor- Returns:
- number of JCo connections
-
getLongRunnerCount
@ManagedAttribute(description="Shows the number of JCo connections with a long lifetime of all nodes of the cluster.") public java.lang.Integer getLongRunnerCount()
Description copied from interface:JCoConnectionMonitorReturns 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:
getLongRunnerCountin interfaceJCoConnectionMonitor- Returns:
- number of JCo connections whose lifetime exceed the defined threshold
-
getPoolLimitReachedCount
@ManagedAttribute(description="Shows the number of RFC destinations whose pool size is reached of all nodes of the cluster.") public java.lang.Integer getPoolLimitReachedCount()
Description copied from interface:JCoConnectionMonitorReturns number of RFC destinations whose pool size is reached.- Specified by:
getPoolLimitReachedCountin interfaceJCoConnectionMonitor- Returns:
- number of RFC destinations whose pool size is reached
-
getNodesCount
@ManagedAttribute(description="Shows the total number of nodes of the cluster.") public java.lang.Integer getNodesCount()
Description copied from interface:JCoConnectionClusterMBeanReturns the total number of nodes of the result.- Specified by:
getNodesCountin interfaceJCoConnectionClusterMBean- Returns:
- number of nodes
-
getNodesWithoutResultCount
@ManagedAttribute(description="Shows the total number of nodes which returned no result of the cluster .") public java.lang.Integer getNodesWithoutResultCount()
Description copied from interface:JCoConnectionClusterMBeanReturns the total number of nodes which haven't returned a result.- Specified by:
getNodesWithoutResultCountin interfaceJCoConnectionClusterMBean- Returns:
- number of nodes
-
getCacheTimestamp
@ManagedAttribute(description="Shows the time stamp of the JCo connections cluster attributes cache.") public java.util.Date getCacheTimestamp()
Description copied from interface:JCoConnectionClusterMBeanReturns the time stamp of the current cluster cache.- Specified by:
getCacheTimestampin interfaceJCoConnectionClusterMBean- Returns:
- cluster snapshot time stamp
-
getCacheExpirationTimestamp
@ManagedAttribute(description="Shows the time stamp the JCo connections cluster attribute caches is valid to.") public java.util.Date getCacheExpirationTimestamp()
Description copied from interface:JCoConnectionClusterMBeanReturns the time stamp until the current cluster cache is valid.- Specified by:
getCacheExpirationTimestampin interfaceJCoConnectionClusterMBean- Returns:
- cluster snapshot valid to time stamp
-
resetCache
@ManagedOperation(description="Resets the JCo connections cluster attributes cache.") public java.lang.String resetCache()
Description copied from interface:JCoConnectionClusterMBeanResets the JCo connections cache operation.- Specified by:
resetCachein interfaceJCoConnectionClusterMBean- Returns:
- result message
-
createSnapshotXML
@ManagedOperation(description="Returns all current JCo connections of all nodes of the cluster as XML string.") public java.lang.String createSnapshotXML()
Description copied from interface:JCoConnectionMonitorReturns all current JCo connections as XML String.- Specified by:
createSnapshotXMLin interfaceJCoConnectionMonitor- Returns:
- XML String
-
createSnapshotFile
@ManagedOperation(description="Create JCo connections cluster snapshot file of all nodes of the cluster.") public java.lang.String createSnapshotFile()
Description copied from interface:JCoConnectionMonitorCreate JCo connections snapshot file operation.- Specified by:
createSnapshotFilein interfaceJCoConnectionMonitor- Returns:
- result message
-
-