com.sun.sgs.nio.channels
Interface ChannelPoolMXBean


public interface ChannelPoolMXBean

The management interface for a channel pool.

A Java virtual machine has several instances of the implementation class of this interface. A class implementing this interface is an javax.management.MXBean that is obtained by calling the Channels.getChannelPoolMXBeans() method [[NOT IMPLEMENTED: or from the platform MBeanServer]].

The ObjectName for uniquely identifying the MXBean of this type within an MBeanServer is:

java.nio:type=ChannelPool,name=pool name


Method Summary
 long getCount()
          Returns an estimate of the number of open channels in this pool.
 String getName()
          Returns the name representing this channel pool.
 

Method Detail

getName

String getName()
Returns the name representing this channel pool.

Returns:
the name of this channel pool

getCount

long getCount()
Returns an estimate of the number of open channels in this pool.

The number of open channels is the number of channels opened since the Java virtual machine has started execution minus the number of channels that have been closed.

Returns:
an estimate of the number of open channels in this pool

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved