package jvmmonitor.io;

/*
*  Copyright (c) ${YEAR}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*  WSO2 Inc. licenses this file to you under the Apache License,
*  Version 2.0 (the "License"); you may not use this file except
*  in compliance with the License.
*  You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

public class ServerGCLogMonitor {
    private static final String SAMPLE_LOG_PATH = System.getProperty("user.dir") + "/gc.log.2.current";
}

@@ -684,16 +684,570 @@
 se.%0A*/%0A%0A
+import communicator.DASPublisher;%0Aimport org.wso2.carbon.databridge.agent.exception.DataEndpointAgentConfigurationException;%0Aimport org.wso2.carbon.databridge.agent.exception.DataEndpointAuthenticationException;%0Aimport org.wso2.carbon.databridge.agent.exception.DataEndpointConfigurationException;%0Aimport org.wso2.carbon.databridge.agent.exception.DataEndpointException;%0Aimport org.wso2.carbon.databridge.commons.exception.TransportException;%0A%0Aimport java.io.FileNotFoundException;%0Aimport java.net.SocketException;%0Aimport java.net.UnknownHostException;%0A%0A
 public c
@@ -1272,16 +1272,17 @@
 nitor %7B%0A
+%0A
     priv
@@ -1376,11 +1376,494 @@
 urrent%22;
+%0A%0A    public static void main(String%5B%5D args) throws DataEndpointException,%0A            SocketException,%0A            UnknownHostException,%0A            FileNotFoundException,%0A            DataEndpointConfigurationException,%0A            DataEndpointAuthenticationException,%0A            DataEndpointAgentConfigurationException,%0A            TransportException %7B%0A%0A        DASPublisher dasPublisherObj = new DASPublisher();%0A        dasPublisherObj.publishXXgcLogData(SAMPLE_LOG_PATH);%0A%0A    %7D
 %0A%7D%0A

Add method for test GC log