Package wt.util.jmx

Class JmxConnectUtil

java.lang.Object
wt.util.jmx.JmxConnectUtil

public final class JmxConnectUtil extends Object
Utility for establishing local JMX connections to the server manager and method server processes.

Methods herein will return null or throw an exception if the host they are called on is not trusted by the target JVM. Trust is determined by being on the same host, being a node in the Windchill server cluster (as per wt.cache.main.secondaryHosts and wt.cache.main.hostname), or being listed in wt.auth.trustedHosts.

Supported API: true

Extendable: false

  • Method Details

    • getDefaultServerManagerLocalConnector

      public static JMXConnector getDefaultServerManagerLocalConnector() throws IOException
      Opens a local JMX connection to the default server manager.

      Do note that a WTContext should be established prior to calling this routine. If in the servlet engine or server-side utility make use of WTContextBeanHandler as needed, else initialize WTContext appropriately in your client.

      Supported API: true

      Throws:
      IOException
    • getLocalConnector

      public static JMXConnector getLocalConnector(RemoteServerManager remoteServerManager) throws IOException
      Opens a local JMX connection to the specified server manager.

      Supported API: true
      Throws:
      IOException
    • getDefaultMethodServerLocalConnector

      public static JMXConnector getDefaultMethodServerLocalConnector() throws IOException
      Opens a local JMX connection to the default method server.

      Do note that a WTContext should be established prior to calling this routine. If in the servlet engine or server-side utility make use of WTContextBeanHandler as needed, else initialize WTContext appropriately in your client.

      Supported API: true

      Throws:
      IOException
    • getLocalConnector

      public static JMXConnector getLocalConnector(RemoteMethodServer remoteMethodServer) throws IOException
      Opens a local JMX connection to the specified method server.

      Supported API: true
      Throws:
      IOException