Skip to content

Commit

Permalink
issue JPPF-436 fixed typos in Readme and javadoc, removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lolocohen committed Apr 20, 2018
1 parent fe3e22f commit 5954062
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion jmxremote-nio/README.md
Expand Up @@ -59,7 +59,7 @@ JMX service URLs are in the form `service:jmx:jppf://<host>:<port>`

#### Authentication and authorization

Authentication is provided as an instance of [JMXAuthenticator](https://docs.oracle.com/javase/7/docs/api/index.html?javax/management/remote/JMXAuthenticator.html), passed on via the server environment property `jmx.remote.authenticator` (also Java the constant [JMXConnectorServer.AUTHENTICATOR](https://docs.oracle.com/javase/7/docs/api/javax/management/remote/JMXConnectorServer.html#AUTHENTICATOR)).
Authentication is provided as an instance of [JMXAuthenticator](https://docs.oracle.com/javase/7/docs/api/index.html?javax/management/remote/JMXAuthenticator.html), passed on via the server environment property `jmx.remote.authenticator` (also the Java constant [JMXConnectorServer.AUTHENTICATOR](https://docs.oracle.com/javase/7/docs/api/javax/management/remote/JMXConnectorServer.html#AUTHENTICATOR)).

On the client side, credentials are passed as a user-defined object via the connector environment property `jmx.remote.credentials` (also the Java constant
[JMXConnector.CREDENTIALS](https://docs.oracle.com/javase/7/docs/api/javax/management/remote/JMXConnector.html#CREDENTIALS)).
Expand Down
Expand Up @@ -87,8 +87,6 @@ public JMXMessageHandler(final ChannelsPair channels, final Map<String, ?> env)
this.server = channels.readingContext().getServer();
this.mgr = this.server.getTransitionManager();
this.requestTimeout = JMXEnvHelper.getLong(JPPFProperties.JMX_REMOTE_REQUEST_TIMEOUT, env, JPPFConfiguration.getProperties());
//connectionRequest = channels.isServerSide() ? null : new JMXRequest(CONNECTION_MESSAGE_ID, JMXMessageType.CONNECT);
//if (connectionRequest != null) putRequest(connectionRequest);
}

/**
Expand Down
Expand Up @@ -139,14 +139,6 @@ public class JMXMessageType {
* Identifier for a notification.
*/
public static final byte NOTIFICATION = 28;
/**
* Identifier for a notification.
*/
public static final byte LOGIN = 29;
/**
* Identifier for a notification.
*/
public static final byte LOGOUT = 30;
/**
* A non-modifiable mapping of type values to readable names.
*/
Expand Down Expand Up @@ -195,8 +187,6 @@ private static Map<Byte, String> initTypeNames() {
map.put(SET_ATTRIBUTES, "SET_ATTRIBUTES");
map.put(UNREGISTER_MBEAN, "UNREGISTER_MBEAN");
map.put(NOTIFICATION, "NOTIFICATION");
map.put(LOGIN, "LOGIN");
map.put(LOGOUT, "LOGOUT");
return map;
}
}
Expand Up @@ -110,15 +110,6 @@ public class ChannelsPair extends Pair<JMXContext, JMXContext> {
*/
private Subject subject;

/**
* @param first the reading channel.
* @param second the writing channel.
* @param server the JMX nio server.
*/
public ChannelsPair(final JMXContext first, final JMXContext second, final JMXNioServer server) {
this(first, second, server, null);
}

/**
* @param first the reading channel.
* @param second the writing channel.
Expand Down

0 comments on commit 5954062

Please sign in to comment.