@Override void end() { remoteNotificationManager.removeNotificationListener(); server.connectionClosed(this); }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
@Override public void handle(DataInput input, final int correlationId) throws IOException { log.trace("GetDomains"); final String[] domains = server.getMBeanServerConnection().getDomains(); writeResponse(domains, GET_DOMAINS, correlationId); log.tracef("[%d] GetDomains - Success Response Sent", correlationId); }
private synchronized void removeNotificationListener(int listenerId) throws ListenerNotFoundException, InstanceNotFoundException, IOException { Association association = listeners.remove(listenerId); if (association != null) { server.getMBeanServerConnection().removeNotificationListener(association.name, association.listener, association.filter, association.handback); } else { log.warnf("Request to removeNotificationListener, listener with ID %d not found.", listenerId); } }
@Override public void handleEnd(Channel channel) { remoteNotificationManager.removeNotificationListener(); server.connectionClosed(ServerProxy.this); }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Send ID to client sendConnectionId(); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
@Override public void handle(DataInput input, final int correlationId) throws IOException { log.trace("GetDefaultDomain"); final String defaultDomain = server.getMBeanServerConnection().getDefaultDomain(); writeResponse(defaultDomain, GET_DEFAULT_DOMAIN, correlationId); log.tracef("[%d] CreateMBean - Success Response Sent", correlationId); } }
public void handleError(Channel channel, IOException error) { log.warn("Channel closing due to error", error); remoteNotificationManager.removeNotificationListener(); server.connectionClosed(ServerProxy.this); }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
@Override public void handle(DataInput input, final int correlationId) throws IOException { log.trace("GetDomains"); final String[] domains = server.getMBeanServerConnection().getDomains(); writeResponse(domains, GET_DOMAINS, correlationId); log.tracef("[%d] GetDomains - Success Response Sent", correlationId); }
public void close() { try { channel.writeShutdown(); channel.close(); } catch (IOException e) { log.warn("Unable to close channel"); // Can't rely on the Receiver to have called this if we can't close down. remoteNotificationManager.removeNotificationListener(); server.connectionClosed(this); } }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
@Override public void handle(DataInput input, final int correlationId) throws IOException { log.trace("GetMBeanCount"); final Integer count = server.getMBeanServerConnection().getMBeanCount(); writeResponse(count, GET_MBEAN_COUNT, correlationId); log.tracef("[%d] GetMBeanCount - Success Response Sent", correlationId); }
@Override void end() { remoteNotificationManager.removeNotificationListener(); server.connectionClosed(this); }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Send ID to client sendConnectionId(); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
private synchronized void removeNotificationListener(int listenerId) throws ListenerNotFoundException, InstanceNotFoundException, IOException { Association association = listeners.remove(listenerId); if (association != null) { server.getMBeanServerConnection().removeNotificationListener(association.name, association.listener, association.filter, association.handback); } else { log.warnf("Request to removeNotificationListener, listener with ID %d not found.", listenerId); } }
@Override public void handleEnd(Channel channel) { remoteNotificationManager.removeNotificationListener(); server.connectionClosed(ServerProxy.this); }
void start() throws IOException { // Create a connection ID connectionId = UUID.randomUUID(); log.debugf("Created connectionID %s", connectionId.toString()); // Send ID to client sendConnectionId(); // Inform server the connection is now open server.connectionOpened(this); channel.receiveMessage(new MessageReciever()); }
@Override public void handle(DataInput input, final int correlationId) throws IOException { log.trace("GetMBeanCount"); final Integer count = server.getMBeanServerConnection().getMBeanCount(); writeResponse(count, GET_MBEAN_COUNT, correlationId); log.tracef("[%d] GetMBeanCount - Success Response Sent", correlationId); }
@Override void end() { remoteNotificationManager.removeNotificationListener(); server.connectionClosed(this); }