Codota Logo
MBeanServerManager
Code IndexAdd Codota to your IDE (free)

How to use
MBeanServerManager
in
org.jboss.remotingjmx

Best Java code snippets using org.jboss.remotingjmx.MBeanServerManager (Showing top 6 results out of 315)

  • Common ways to obtain MBeanServerManager
private void myMethod () {
MBeanServerManager m =
  • Codota IconMap map;map.isEmpty()
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

  public void startServer(final byte version, final Channel channel, final MBeanServerManager serverManager,
      final Executor executor, final ServerMessageInterceptor serverMessageInterceptor) throws IOException {
    if (supportedVersions.containsKey(version)) {
      if (version == VersionOne.getVersionIdentifier()) {
        VersionOne.startServer(channel, serverManager.getDefaultMBeanServer(), executor, serverMessageInterceptor);
      } else if (version == VersionTwo.getVersionIdentifier()) {
        VersionTwo.startServer(channel, serverManager, executor, serverMessageInterceptor);
      }
      return;
    } else {
      log.warnf("An attempt has been made to select an unsupported version 0x0%d", version);
    }
    throw new IllegalArgumentException("Unsupported protocol version.");
  }
}
origin: wildfly/wildfly

@Override
public void handle(DataInput input, int correlationId) throws IOException {
  log.trace("Begin");
  WrappedMBeanServerConnection mbeanServer = mbeanServerManager.getMBeanServer(keyPairs);
  if (mbeanServer != null) {
    ServerProxy server = new ServerProxy(channel, mbeanServer, executor, serverMessageInterceptor);
    server.start();
    String connectionId = server.getConnectionId();
    writeResponse(connectionId, BEGIN, correlationId);
  } else {
    // No MBeanServer was located ;-(
    throw new IOException("No MBeanServer identified from the specified parameters.");
  }
}
origin: org.jboss.remotingjmx/remoting-jmx

@Override
public void handle(DataInput input, int correlationId) throws IOException {
  log.trace("Begin");
  WrappedMBeanServerConnection mbeanServer = mbeanServerManager.getMBeanServer(keyPairs);
  if (mbeanServer != null) {
    ServerProxy server = new ServerProxy(channel, mbeanServer, executor, serverMessageInterceptor);
    server.start();
    String connectionId = server.getConnectionId();
    writeResponse(connectionId, BEGIN, correlationId);
  } else {
    // No MBeanServer was located ;-(
    throw new IOException("No MBeanServer identified from the specified parameters.");
  }
}
origin: org.jboss.remotingjmx/remoting-jmx

  public void startServer(final byte version, final Channel channel, final MBeanServerManager serverManager,
      final Executor executor, final ServerMessageInterceptor serverMessageInterceptor) throws IOException {
    if (supportedVersions.containsKey(version)) {
      if (version == VersionOne.getVersionIdentifier()) {
        VersionOne.startServer(channel, serverManager.getDefaultMBeanServer(), executor, serverMessageInterceptor);
      } else if (version == VersionTwo.getVersionIdentifier()) {
        VersionTwo.startServer(channel, serverManager, executor, serverMessageInterceptor);
      }
      return;
    } else {
      log.warnf("An attempt has been made to select an unsupported version 0x0%d", version);
    }
    throw new IllegalArgumentException("Unsupported protocol version.");
  }
}
origin: org.jboss.eap/wildfly-client-all

@Override
public void handle(DataInput input, int correlationId) throws IOException {
  log.trace("Begin");
  WrappedMBeanServerConnection mbeanServer = mbeanServerManager.getMBeanServer(keyPairs);
  if (mbeanServer != null) {
    ServerProxy server = new ServerProxy(channel, mbeanServer, executor, serverMessageInterceptor);
    server.start();
    String connectionId = server.getConnectionId();
    writeResponse(connectionId, BEGIN, correlationId);
  } else {
    // No MBeanServer was located ;-(
    throw new IOException("No MBeanServer identified from the specified parameters.");
  }
}
origin: org.jboss.eap/wildfly-client-all

  public void startServer(final byte version, final Channel channel, final MBeanServerManager serverManager,
      final Executor executor, final ServerMessageInterceptor serverMessageInterceptor) throws IOException {
    if (supportedVersions.containsKey(version)) {
      if (version == VersionOne.getVersionIdentifier()) {
        VersionOne.startServer(channel, serverManager.getDefaultMBeanServer(), executor, serverMessageInterceptor);
      } else if (version == VersionTwo.getVersionIdentifier()) {
        VersionTwo.startServer(channel, serverManager, executor, serverMessageInterceptor);
      }
      return;
    } else {
      log.warnf("An attempt has been made to select an unsupported version 0x0%d", version);
    }
    throw new IllegalArgumentException("Unsupported protocol version.");
  }
}
org.jboss.remotingjmxMBeanServerManager

Javadoc

Wrapper around the MBeanServerLocator in use to call the locator to locate the MBeanServerConnection to use and then wrap it with the internal wrapper used to pass it around internaly.

Most used methods

  • getDefaultMBeanServer
  • getMBeanServer

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now