| | |
| | | import org.opends.server.admin.std.meta.JMXConnectionHandlerCfgDefn; |
| | | import org.opends.server.admin.std.server.JMXConnectionHandlerCfg; |
| | | import org.opends.server.config.JMXMBean; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.AddOperationBasis; |
| | | import org.opends.server.core.DeleteOperationBasis; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | |
| | | + serverJmxPort, "cn: JMX Connection Handler"); |
| | | InternalClientConnection connection = |
| | | InternalClientConnection.getRootConnection(); |
| | | AddOperation addOp = new AddOperation(connection, |
| | | AddOperationBasis addOp = new AddOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, |
| | | newJmxConnectionJmx.getDN(), newJmxConnectionJmx |
| | |
| | | // cleanup client connection |
| | | connector.close(); |
| | | jmxcDisabled.close(); |
| | | DeleteOperation delOp = new DeleteOperation(connection, |
| | | DeleteOperationBasis delOp = new DeleteOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, |
| | | newJmxConnectionJmx.getDN()); |
| | |
| | | |
| | | mbsc.setAttribute(name, attr); |
| | | } |
| | | |
| | | } |