/**
* Close the connection.
* @throws IOException if an I/O error occurs when closing the connection
*/
void close() throws IOException {
LOGGER.log(Level.FINE, "Sending logoff");
try {
handleRequest(new RequestLogoff());
} catch (final IOException e) {
LOGGER.log(Level.WARNING, "Unexpected exception when logging off", e);
}
LOGGER.log(Level.FINE, "Stopping client listener");
clientListener.stop();
IOUtils.closeSilently(socket);
LOGGER.log(Level.FINE, "Closed");
if (connectionId != null) {
// Only send closed notification when we could connect succesfully
connector.sendConnectionNotification(JMXConnectionNotification.CLOSED, connectionId);
}
}
ClientConnection.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:OperatieBRP
作者:
评论列表
文章目录