112113114115116117118119120121122
connection = clientAdmin.connectionOpen(connection); this.env = newEnv; reader = new MessageReader(); threads = new ThreadService(1, 1); threads.handoff(reader); state = CONNECTED; stateLock.notifyAll(); } else if (state == FAILED || state == CONNECTED) { // reconnect
228229230231232233234235236237238
state = CONNECTED; if (tracing) logger.trace("connect",idstr+" "+connectionId+" Connected."); } notifThread = new ThreadService(0, 1); sendNotification(new JMXConnectionNotification( JMXConnectionNotification.OPENED, this, connectionId,
137138139140141142143144145146147
if (cb == null) { throw new IllegalArgumentException("Null callback."); } callback = cb; threads = new ThreadService(DefaultConfig.getServerMinThreads(env), DefaultConfig.getServerMaxThreads(env)); reader = new MessageReader(); threads.handoff(reader); }