Interface JoramAdminConnectMBean

  • All Known Implementing Classes:
    JoramAdminConnect

    public interface JoramAdminConnectMBean
    Allows the creation of JoramAdmin instances connected to servers.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connect​(String name)
      Creates an administration connection with default parameters, a JoramAdmin MBean is created and registered in the given domain.
      void connect​(String name, String host, int port, String user, String pass)
      Creates an administration connection with given parameters, a JoramAdmin MBean is created and registered.
      void exit​(boolean force)
      Unregisters the MBean.
    • Method Detail

      • connect

        void connect​(String name)
              throws ConnectException,
                     AdminException
        Creates an administration connection with default parameters, a JoramAdmin MBean is created and registered in the given domain.
        Parameters:
        name - The name of the corresponding JMX domain.
        Throws:
        AdminException - If the creation fails.
        ConnectException - if the connection is closed or broken
      • connect

        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.
        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

        void exit​(boolean force)
        Unregisters the MBean.
        Parameters:
        force - If true calls System.exit method.