private ObjectName createObjectName() { ObjectName objectName = null; try { objectName = new ObjectName( "com.danga.jmemcached:type=PoolMonitor,SockIOPool=" + pool.getName() + ",name=" + host.replace(':', '_')); } catch (MalformedObjectNameException e) { log.error("Unable to create object name for pool - " + pool.getName(), e); } catch (NullPointerException e) { log.error("Unable to create object name for pool - " + pool.getName(), e); } return objectName; }
/* (non-Javadoc) * @see com.danga.jmemcached.management.PoolMonitorMBean#getBusySockets() */ public int getBusySockets() { return pool.getBusySockets(host); }
/* (non-Javadoc) * @see com.danga.jmemcached.management.PoolMonitorMBean#getDeadSockets() */ public int getDeadSockets() { return pool.getDeadSockets(host); }
/* (non-Javadoc) * @see com.danga.jmemcached.management.PoolMonitorMBean#getAvailableSockets() */ public int getAvailableSockets() { return pool.getAvailableSockets(host); }