com.sun.sgs.impl.kernel
Class ConfigManager

java.lang.Object
  extended by com.sun.sgs.impl.kernel.ConfigManager
All Implemented Interfaces:
ConfigMXBean

public class ConfigManager
extends Object
implements ConfigMXBean

The configuration manager for this node. This object contains various configuration values. Services and components fill in portions of this object with their defaults or overridden values.

The ConfigMXBean presented to JMX clients is immutable.


Field Summary
 
Fields inherited from interface com.sun.sgs.management.ConfigMXBean
MXBEAN_NAME
 
Constructor Summary
ConfigManager(Properties props)
          Creates a config manager instance.
 
Method Summary
 String getAppListener()
          Returns the application listener class name.
 String getAppName()
          Returns the application name.
 String getAppRoot()
          Returns the application root directory name.
 String getHostName()
          Returns the host this node is running on.
 int getJmxPort()
          Returns the JMX remote listening port.
 NodeType getNodeType()
          Returns the type of this node.
 String getProtocolDescriptor()
          Returns the protocol descriptor, as a String.
 String getServerHostName()
          Returns the server host property.
 long getStandardTxnTimeout()
          Returns the standard transaction timeout, in milliseconds.
 void setJmxPort(int jmxPort)
          Sets the jmxPort value.
 void setProtocolDescriptor(String desc)
          Sets the protocol descriptor.
 void setStandardTxnTimeout(long timeout)
          Sets the standard timeout value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigManager

public ConfigManager(Properties props)
Creates a config manager instance.

Parameters:
props - properties
Method Detail

getNodeType

public NodeType getNodeType()
Returns the type of this node.

Specified by:
getNodeType in interface ConfigMXBean
Returns:
the node type

getAppName

public String getAppName()
Returns the application name.

Specified by:
getAppName in interface ConfigMXBean
Returns:
the application name

getAppRoot

public String getAppRoot()
Returns the application root directory name.

Specified by:
getAppRoot in interface ConfigMXBean
Returns:
the application root directory name

getAppListener

public String getAppListener()
Returns the application listener class name.

Specified by:
getAppListener in interface ConfigMXBean
Returns:
the class name of the application listener

getHostName

public String getHostName()
Returns the host this node is running on.

Specified by:
getHostName in interface ConfigMXBean
Returns:
the host this node is running on

getServerHostName

public String getServerHostName()
Returns the server host property.

Specified by:
getServerHostName in interface ConfigMXBean
Returns:
the server host property, which is valid for application nodes only

getJmxPort

public int getJmxPort()
Returns the JMX remote listening port.

Specified by:
getJmxPort in interface ConfigMXBean
Returns:
the port JMX is listening on for remote connections, or -1 if no remote JMX connections are supported

getStandardTxnTimeout

public long getStandardTxnTimeout()
Returns the standard transaction timeout, in milliseconds.

Specified by:
getStandardTxnTimeout in interface ConfigMXBean
Returns:
the standard transaction timeout, in milliseconds

getProtocolDescriptor

public String getProtocolDescriptor()
Returns the protocol descriptor, as a String.

Specified by:
getProtocolDescriptor in interface ConfigMXBean
Returns:
the protocol descriptor, as a String

setStandardTxnTimeout

public void setStandardTxnTimeout(long timeout)
Sets the standard timeout value.

Parameters:
timeout - the standard timeout

setJmxPort

public void setJmxPort(int jmxPort)
Sets the jmxPort value.

Parameters:
jmxPort - the port JMX is listening on

setProtocolDescriptor

public void setProtocolDescriptor(String desc)
Sets the protocol descriptor.

Parameters:
desc - the protocol descriptor

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