org.jboss.xnio
Class XnioConfiguration

java.lang.Object
  extended by org.jboss.xnio.XnioConfiguration
Direct Known Subclasses:
NioXnioConfiguration

public abstract class XnioConfiguration
extends java.lang.Object

An abstract configuration for an XNIO provider. This class provides configuration items that are always common to all providers.

Since:
1.2

Constructor Summary
protected XnioConfiguration()
          Construct an uninitialized instance.
 
Method Summary
 java.util.List<javax.management.MBeanServer> getMBeanServers()
          Get the MBeanServers that the provider should register with.
 java.lang.String getName()
          Get the common name of the XNIO provider instance.
 void setMBeanServers(java.util.List<javax.management.MBeanServer> mBeanServers)
          Set the MBeanServers that the provider should register with.
 void setName(java.lang.String name)
          Set the common name of the XNIO provider instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XnioConfiguration

protected XnioConfiguration()
Construct an uninitialized instance.

Method Detail

getMBeanServers

public java.util.List<javax.management.MBeanServer> getMBeanServers()
Get the MBeanServers that the provider should register with. A null value indicates that the provider should attempt autodetection, based on the value of the xnio.agentid system property.

Returns:
the list of MBean servers, or null to indicate autodetection

setMBeanServers

public void setMBeanServers(java.util.List<javax.management.MBeanServer> mBeanServers)
Set the MBeanServers that the provider should register with. A null value indicates that the provider should attempt autodetection, based on the value of the xnio.agentid system property.

Parameters:
mBeanServers - the list of MBean servers, or null to indicate autodetection

getName

public java.lang.String getName()
Get the common name of the XNIO provider instance.

Returns:
the name

setName

public void setName(java.lang.String name)
Set the common name of the XNIO provider instance.

Parameters:
name - the name