Codota Logo
org.jboss.remotingjmx
Code IndexAdd Codota to your IDE (free)

How to use org.jboss.remotingjmx

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

@Override
void end() {
  remoteNotificationManager.removeNotificationListener();
  server.connectionClosed(this);
}
origin: wildfly/wildfly

  @Override
  public void handleEvent(Event event) throws IOException {
    event.run();
  }
};
origin: wildfly/wildfly

/**
 * Get the version string of the remoting connector provider.
 *
 * @return the version string.
 */
public static String getVersionString() {
  return Version.getVersionString();
}
origin: wildfly/wildfly

public MBeanServerConnection getMBeanServerConnection(Subject delegationSubject) throws IOException {
  log.trace("getMBeanServerConnection(Subject)");
  verifyConnected();
  return versionedConnection.getMBeanServerConnection(delegationSubject);
}
origin: wildfly/wildfly

public DelegatingRemotingConnectorServer(final MBeanServerLocator mbeanServerLocator, final Endpoint endpoint,
    final Executor executor, final Map<String, ?> environment,
    final ServerMessageInterceptorFactory serverMessageInterceptorFactory) {
  this.mbeanServerManager = new DelegatingMBeanServerManager(mbeanServerLocator);
  this.endpoint = endpoint;
  this.executor = executor;
  versions = new Versions(environment);
  this.serverMessageInterceptorFactory = serverMessageInterceptorFactory != null ? serverMessageInterceptorFactory : DefaultServerInterceptorFactory.FACTORY_INSTANCE;
}
origin: wildfly/wildfly

public static IoFuture<InitialHeader> getInitialHeader(final Channel channel) {
  VersionedIoFuture<InitialHeader> future = new VersionedIoFuture<InitialHeader>();
  channel.receiveMessage(new ClientVersionReceiver(future));
  return future;
}
origin: wildfly/wildfly

public String getConnectionId() throws IOException {
  log.trace("getConnectionId()");
  verifyConnected();
  String connectionId = versionedConnection.getConnectionId();
  log.debugf("Our connection id is '%s'", connectionId);
  return connectionId;
}
origin: wildfly/wildfly

public void channelOpened(Channel channel) {
  log.trace("Channel Opened");
  try {
    writeVersionHeader(channel, false);
    channel.receiveMessage(new ClientVersionReceiver(serverMessageInterceptorFactory.create(channel)));
  } catch (IOException e) {
    log.error("Unable to send header, closing channel", e);
    IoUtils.safeClose(channel);
  }
}
origin: wildfly/wildfly

  public void run() {
    if (state == ConnectorState.OPEN) {
      try {
        shutDownHook = null;
        close();
      } catch (IOException ignored) {
      }
    }
  }
});
origin: wildfly/wildfly

public boolean isActive() {
  return connectorServer.isActive();
}
origin: wildfly/wildfly

public Map<String, ?> getAttributes() {
  return connectorServer.getAttributes();
}
origin: wildfly/wildfly

public void connect() throws IOException {
  connect(null);
}
origin: wildfly/wildfly

public JMXServiceURL getAddress() {
  return connectorServer.getAddress();
}
origin: wildfly/wildfly

public WrappedMBeanServerConnection getDefaultMBeanServer() {
  return getMBeanServer(null);
}
origin: wildfly/wildfly

public void start() throws IOException {
  connectorServer.start();
}
origin: wildfly/wildfly

public void stop() throws IOException {
  connectorServer.stop();
}
origin: wildfly/wildfly

  @Override
  public WrappedMBeanServerConnection getMBeanServer(Map<String, String> parameters) {
    if (parameters.isEmpty()) {
      return getDefaultMBeanServer();
    }
    // Only a single server do don't support parameters.
    return null;
  }
};
origin: wildfly/wildfly

private void safeClose(final Channel channel) {
  if (channel != null) {
    try {
      channel.writeShutdown();
    } catch (Exception ignored) {
    }
  }
  safeClose((Closeable) channel);
}
origin: wildfly/wildfly

@Override
public void handleEnd(Channel channel) {
  remoteNotificationManager.removeNotificationListener();
  server.connectionClosed(ServerProxy.this);
}
origin: wildfly/wildfly

public void handleError(Channel channel, IOException error) {
  log.warn("Channel closing due to error", error);
  remoteNotificationManager.removeNotificationListener();
  server.connectionClosed(ServerProxy.this);
}
org.jboss.remotingjmx

Most used classes

  • ServerMessageInterceptor$Event
  • RemotingConnectorServer
    A JMXConnectorServer to handle the server side of the lifecycle relating to making the provided MBea
  • VersionedConnection
    A bridge between the JMXConnector implementation and the underlying remoting connections.
  • ClientConnection
    The VersionOne client connection.
  • DelegatingRemotingConnectorServer$ChannelOpenListener
    The listener to handle the opening of the channel from remote clients.
  • DelegatingRemotingConnectorServer$DelegatingMBeanServerManager,
  • DelegatingRemotingConnectorServer,
  • MBeanServerLocator,
  • MBeanServerManager,
  • RemotingConnector$ShutDownHook,
  • RemotingConnector,
  • RemotingConnectorServer$1,
  • ServerMessageInterceptor,
  • ServerMessageInterceptorFactory,
  • Util$Timeout,
  • Util,
  • Version,
  • VersionedConectionFactory$ClientVersionReceiver,
  • VersionedConectionFactory$InitialHeader
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