Beispiel #1
0
  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;
  }
Beispiel #2
0
 /* (non-Javadoc)
  * @see com.danga.jmemcached.management.PoolMonitorMBean#getBusySockets()
  */
 public int getBusySockets() {
   return pool.getBusySockets(host);
 }
Beispiel #3
0
 /* (non-Javadoc)
  * @see com.danga.jmemcached.management.PoolMonitorMBean#getDeadSockets()
  */
 public int getDeadSockets() {
   return pool.getDeadSockets(host);
 }
Beispiel #4
0
 /* (non-Javadoc)
  * @see com.danga.jmemcached.management.PoolMonitorMBean#getAvailableSockets()
  */
 public int getAvailableSockets() {
   return pool.getAvailableSockets(host);
 }