Class JoramAdminConnect

    • Field Detail

      • logger

        public static org.objectweb.util.monolog.api.Logger logger
    • Constructor Detail

      • JoramAdminConnect

        public JoramAdminConnect()
    • Method Detail

      • main

        public static void main​(String[] args)
      • registerMBean

        public void registerMBean()
      • unregisterMBean

        public void unregisterMBean()
      • connect

        public void connect​(String name,
                            String host,
                            int port,
                            String user,
                            String pass)
                     throws ConnectException,
                            AdminException
        Creates an administration connection with given parameters, a JoramAdmin MBean is created and registered.
        Specified by:
        connect in interface JoramAdminConnectMBean
        Parameters:
        name - The name of the corresponding JMX domain.
        host - The hostname of the server.
        port - The listening port of the server.
        user - The login identification of the administrator.
        pass - The password of the administrator.
        Throws:
        AdminException - If the creation fails.
        ConnectException - if the connection is closed or broken
      • exit

        public void exit​(boolean force)
        Unregisters the MBean.
        Specified by:
        exit in interface JoramAdminConnectMBean
        Parameters:
        force - If true calls System.exit method.