Class JCoMonitorJAXBHandler
java.lang.Object
de.hybris.platform.sap.core.jco.monitor.jaxb.JCoMonitorJAXBHandler
JCo connection monitor manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPackage which contains the JAXB items for JCo connection monitoring. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateNodes(File file) Generates JAXB nodes from multiple passed node snapshot XML strings.Generates JAXB nodes from multiple passed node snapshot XML strings.generateNodes(String snapshot) Generates JAXB nodes from the passed cluster snapshot XML string.generateNodes(Map<Integer, String> snapshots) Generates JAXB nodes from multiple passed node snapshot XML strings.generateNodesFromJCoConnectionData(int nodeId, List<? extends com.sap.conn.jco.monitor.JCoConnectionData> connectionDataList) Generates the JAXB nodes from JCoConnectionData for one node id.generateSnapshot(Nodes nodes) Generates one single cluster snapshot for all passed node snapshots into the output stream.voidgenerateSnapshot(OutputStream os, Nodes nodes) Generates one single cluster snapshot for all passed node snapshots into the output stream.voidgenerateSnapshot(OutputStream os, Map<Integer, String> snapshots) Generates one single cluster snapshot for all passed node snapshots into the output stream.getRFCDestinationNameFromGroupName(String groupName) Extracts the RFC destination name from the group name.protected voidsafeClose(InputStream resource) protected void
-
Field Details
-
JAXB_CLUSTER_PACKAGE
Package which contains the JAXB items for JCo connection monitoring.- See Also:
-
-
Constructor Details
-
JCoMonitorJAXBHandler
public JCoMonitorJAXBHandler()
-
-
Method Details
-
generateSnapshot
Generates one single cluster snapshot for all passed node snapshots into the output stream.- Parameters:
os- output streamnodes- JAXB content- Throws:
JCoMonitorException-JCoMonitorException
-
generateSnapshot
public void generateSnapshot(OutputStream os, Map<Integer, String> snapshots) throws JCoMonitorExceptionGenerates one single cluster snapshot for all passed node snapshots into the output stream.- Parameters:
os- output streamsnapshots- node snapshot map- Throws:
JCoMonitorException-JCoMonitorException
-
generateSnapshot
Generates one single cluster snapshot for all passed node snapshots into the output stream.- Parameters:
nodes- JAXB content- Returns:
- snapshot as string
- Throws:
JCoMonitorException-JCoMonitorException
-
generateNodes
Generates JAXB nodes from the passed cluster snapshot XML string.- Parameters:
snapshot- snapshot XML string- Returns:
- JAXB content
- Throws:
JCoMonitorException-JCoMonitorException
-
generateNodes
Generates JAXB nodes from multiple passed node snapshot XML strings.- Parameters:
snapshots- node snapshot map- Returns:
- JAXB content
- Throws:
JCoMonitorException-JCoMonitorException
-
generateNodes
Generates JAXB nodes from multiple passed node snapshot XML strings.- Parameters:
file- file- Returns:
- JAXB content
- Throws:
JCoMonitorException-JCoMonitorException
-
generateNodes
Generates JAXB nodes from multiple passed node snapshot XML strings.- Parameters:
is- input stream- Returns:
- JAXB content
- Throws:
JCoMonitorException-JCoMonitorException
-
generateNodesFromJCoConnectionData
public Nodes generateNodesFromJCoConnectionData(int nodeId, List<? extends com.sap.conn.jco.monitor.JCoConnectionData> connectionDataList) Generates the JAXB nodes from JCoConnectionData for one node id.- Parameters:
nodeId- node idconnectionDataList- list of JCo connection data- Returns:
- node (root) node
-
getRFCDestinationNameFromGroupName
Extracts the RFC destination name from the group name.- Parameters:
groupName- group name of JCo connection- Returns:
- RFC destination name
-
safeClose
-
safeClose
-