Java Stream Close closeJMXConnection()

Here you can find the source of closeJMXConnection()

Description

close JMX Connection

License

Open Source License

Declaration

public static void closeJMXConnection() 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.io.IOException;

import javax.management.remote.JMXConnector;

public class Main {
    private static JMXConnector jmxc;
    private static int connectNumber = 0;

    public static void closeJMXConnection() {
        if (jmxc != null/* && connectNumber < 1 */) {
            try {
                jmxc.close();/*  w w w. ja  va  2  s . co m*/
                jmxc = null;
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        connectNumber--;
    }
}

Related

  1. closeInputStream(InputStream in)
  2. closeInputStream(InputStream inp)
  3. closeInputStream(InputStream inputStream)
  4. closeInputStream(InputStream inputStream)
  5. closeInputStream(InputStream stream)
  6. closeKeyMap(BufferedReader in)
  7. closeLog()
  8. closeLog()
  9. closeLog()