Class JCoConnectionMonitorLocalProvider
java.lang.Object
de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorProvider
de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorLocalProvider
- All Implemented Interfaces:
JCoConnectionMonitor
public class JCoConnectionMonitorLocalProvider
extends JCoConnectionMonitorProvider
implements JCoConnectionMonitor
Provider of
JCoConnectionMonitor for local environment.-
Field Summary
Fields inherited from class de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorProvider
jaxbHandler, longLifetimeThresholdMSecs, rfcDestinationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate JCo connections snapshot file operation.Returns all current JCo connections as XML String.Returns the number of JCo connections whose lifetime exceed a specific threshold parameter.Returns number of RFC destinations whose pool size is reached.Returns the total number of JCo connections.protected voidsafeClose(OutputStream resource) voidsetLocalContext(JCoConnectionMonitorContext localContext) Injection setter forJCoConnectionMonitorContext.Methods inherited from class de.hybris.platform.sap.core.jco.monitor.provider.JCoConnectionMonitorProvider
createSnapshotFile, getClusterId, isLongLifetimeJCoConnection, setClusterService, setJaxbHandler, setLongLifetimeThresholdInSeconds, setRfcDestinationService
-
Constructor Details
-
JCoConnectionMonitorLocalProvider
public JCoConnectionMonitorLocalProvider()
-
-
Method Details
-
setLocalContext
Injection setter forJCoConnectionMonitorContext.- Parameters:
localContext- the localContext to set
-
createSnapshotXML
Description copied from interface:JCoConnectionMonitorReturns all current JCo connections as XML String.- Specified by:
createSnapshotXMLin interfaceJCoConnectionMonitor- Returns:
- XML String
-
createSnapshotFile
Description copied from interface:JCoConnectionMonitorCreate JCo connections snapshot file operation.- Specified by:
createSnapshotFilein interfaceJCoConnectionMonitor- Returns:
- result message
-
getTotalCount
Description copied from interface:JCoConnectionMonitorReturns the total number of JCo connections.- Specified by:
getTotalCountin interfaceJCoConnectionMonitor- Returns:
- number of JCo connections
-
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
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
-
safeClose
-