CollServerConnexity.java 1.1 KB
package com.sitech.ismp.coll.centercoll.ServerConnectivity;

import java.util.HashMap;
import java.util.Vector;

public class CollServerConnexity implements CollServerConnexityMBean {
    CollServerConnexityBySsh collServerConnexityBySsh = null;

    public CollServerConnexity() {
        collServerConnexityBySsh = new CollServerConnexityBySsh();
    }

    @Override
    public Vector<com.sitech.ismp.coll.basic.TblATO_KPIDETAIL> collServerConnexityIndex(HashMap<String, String> params) throws Exception {
        return collServerConnexityBySsh.getRMANLogReportCol(params);
    }

    public static void main(String[] args) throws Exception {
        HashMap<String, String> params = new HashMap<String, String>();

        CollServerConnexity collMQServerConnexity = new CollServerConnexity();

        params.put("IP", args[0]);
        params.put("resourceId", args[1]);

        Vector<com.sitech.ismp.coll.basic.TblATO_KPIDETAIL> results = collMQServerConnexity.collServerConnexityIndex(params);
        for(com.sitech.ismp.coll.basic.TblATO_KPIDETAIL res:results) {
            System.out.println(res);
        }
    }
}