org.jboss.system.server
Class ServerConfigUtil

java.lang.Object
  extended byorg.jboss.system.server.ServerConfigUtil

public class ServerConfigUtil
extends java.lang.Object

Utilities for accessing server configuration. Note that this class cannot have dependencies on anything but bootstrap and jdk classes. Anything more than this needs to be defined in the ServerConfig interface and provided in the associated implementation.


Constructor Summary
ServerConfigUtil()
           
 
Method Summary
static java.net.InetAddress fixRemoteAddress(java.net.InetAddress address)
          Fix the remote inet address.
static java.lang.String fixRemoteAddress(java.lang.String address)
          Fix the remote address.
static java.lang.String getDefaultBindAddress()
          Retrieve the default bind address for the server
static java.lang.String getDefaultPartitionName()
          Get the default partition name
static java.lang.String getSpecificBindAddress()
          Retrieve the default bind address, but only if it is specific
static boolean isLoadNative()
          Whether to load native directories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfigUtil

public ServerConfigUtil()
Method Detail

getDefaultBindAddress

public static java.lang.String getDefaultBindAddress()
Retrieve the default bind address for the server

Returns:
the default bind adress

getSpecificBindAddress

public static java.lang.String getSpecificBindAddress()
Retrieve the default bind address, but only if it is specific

Returns:
the specific bind address

fixRemoteAddress

public static java.net.InetAddress fixRemoteAddress(java.net.InetAddress address)
Fix the remote inet address. If we pass the address to the client we don't want to tell it to connect to 0.0.0.0, use our host name instead

Parameters:
address - the passed address
Returns:
the fixed address

fixRemoteAddress

public static java.lang.String fixRemoteAddress(java.lang.String address)
Fix the remote address. If we pass the address to the client we don't want to tell it to connect to 0.0.0.0, use our host name instead

Parameters:
address - the passed address
Returns:
the fixed address

getDefaultPartitionName

public static java.lang.String getDefaultPartitionName()
Get the default partition name

Returns:
the default partition name

isLoadNative

public static boolean isLoadNative()
Whether to load native directories

Returns:
true when loading native directories