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