Class sun.server.ServerParameters
All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.ServerParameters
java.lang.Object
|
+----sun.server.ServerParameters
- public class ServerParameters
- extends Object
This class provides access to and modification of server configuration
parameters.
-
backlog
- Backlog parameter for listen.
-
DEFAULT_BACKLOG
-
-
DEFAULT_GRACE
-
-
DEFAULT_HOST
-
-
DEFAULT_MAX_THREADS
-
-
DEFAULT_MIN_THREADS
-
-
DEFAULT_NAME
-
-
DEFAULT_PORT
-
-
DEFAULT_TIMEOUT
-
-
DEFAULT_TRANSPORT
-
-
DEFAULT_VENDOR
-
-
DEFAULT_VERSION
-
-
grace
- The number of seconds to wait during shutdown for handler threads
to become idle.
-
group
- The group to change to when running the server.
-
host
- The host name of the server.
-
maxThreads
- The maximum number of handler threads to run.
-
minThreads
- The minimum number of handler threads to run.
-
name
- The server name.
-
port
- The port to listen on.
-
timeout
- The number of seconds to wait for a new connection before a handler
thread times out.
-
transport
- The transport (tcp, ssl, ...) that the server uses
-
user
- The user to change to when running the server.
-
vendor
- The server vendor.
-
version
- The server version.
-
ServerParameters()
- Creates new server parameters.
-
ServerParameters(ExProperties)
- Creates new server parameters initialized from properties.
-
getBacklog()
- Returns the server backlog.
-
getCertChain()
- Returns the cert chain that identifies this virtual host.
-
getGrace()
- Returns the shutdown grace period in seconds.
-
getGroup()
- Returns the server group name or id.
-
getHost()
- Returns the server host name.
-
getMaxThreads()
- Returns the maximum number of handler threads.
-
getMinThreads()
- Returns the minimum number of handler threads.
-
getName()
- Returns the server name.
-
getPort()
- Returns the server port.
-
getPrivateKey()
- Returns the private key that authenticates this virtual host.
-
getTimeout()
- Returns the handler timeout in seconds.
-
getTransport()
- Returns the server transport.
-
getUser()
- Returns the server user name or id.
-
getVendor()
- Returns the server vendor.
-
getVersion()
- Returns the server version.
-
load(ExProperties)
- Loads parameters from properties.
-
reset()
- Resets parameters to default values.
-
save(ExProperties)
- Saves parameters to properties.
-
setBacklog(int)
- Sets the server backlog.
-
setGrace(int)
- Sets the shutdown grace peiod in seconds.
-
setGroup(String)
- Sets the server group name or id.
-
setHost(String)
- Sets the server host name.
-
setMaxThreads(int)
- Sets the maximum number of handler threads.
-
setMinThreads(int)
- Sets the minimum number of handler threads.
-
setName(String)
- Sets the server name.
-
setPort(int)
- Sets the server port.
-
setTimeout(int)
- Sets the handler timeout in seconds.
-
setTransport(String)
- Sets the server transport.
-
setUser(String)
- Sets the server user name or id.
-
setVendor(String)
- Sets the server vendor.
-
setVersion(String)
- Sets the server version.
DEFAULT_NAME
public final static String DEFAULT_NAME
DEFAULT_VERSION
public final static String DEFAULT_VERSION
DEFAULT_VENDOR
public final static String DEFAULT_VENDOR
DEFAULT_HOST
public final static String DEFAULT_HOST
DEFAULT_TRANSPORT
public final static String DEFAULT_TRANSPORT
DEFAULT_PORT
public final static int DEFAULT_PORT
DEFAULT_BACKLOG
public final static int DEFAULT_BACKLOG
DEFAULT_MIN_THREADS
public final static int DEFAULT_MIN_THREADS
DEFAULT_MAX_THREADS
public final static int DEFAULT_MAX_THREADS
DEFAULT_TIMEOUT
public final static int DEFAULT_TIMEOUT
DEFAULT_GRACE
public final static int DEFAULT_GRACE
name
protected String name
- The server name.
version
protected String version
- The server version.
transport
protected String transport
- The transport (tcp, ssl, ...) that the server uses
vendor
protected String vendor
- The server vendor.
user
protected String user
- The user to change to when running the server.
group
protected String group
- The group to change to when running the server.
host
protected String host
- The host name of the server.
port
protected int port
- The port to listen on.
backlog
protected int backlog
- Backlog parameter for listen.
minThreads
protected int minThreads
- The minimum number of handler threads to run.
maxThreads
protected int maxThreads
- The maximum number of handler threads to run.
timeout
protected int timeout
- The number of seconds to wait for a new connection before a handler
thread times out.
grace
protected int grace
- The number of seconds to wait during shutdown for handler threads
to become idle.
ServerParameters
public ServerParameters()
- Creates new server parameters.
ServerParameters
public ServerParameters(ExProperties props)
- Creates new server parameters initialized from properties.
getName
public synchronized String getName()
- Returns the server name.
setName
public synchronized void setName(String name)
- Sets the server name.
getVersion
public synchronized String getVersion()
- Returns the server version.
setVersion
public synchronized void setVersion(String version)
- Sets the server version.
getTransport
public synchronized String getTransport()
- Returns the server transport.
setTransport
public synchronized void setTransport(String transport)
- Sets the server transport.
getVendor
public synchronized String getVendor()
- Returns the server vendor.
setVendor
public synchronized void setVendor(String vendor)
- Sets the server vendor.
getUser
public synchronized String getUser()
- Returns the server user name or id.
setUser
public synchronized void setUser(String user)
- Sets the server user name or id.
getGroup
public synchronized String getGroup()
- Returns the server group name or id.
setGroup
public synchronized void setGroup(String group)
- Sets the server group name or id.
getHost
public synchronized String getHost()
- Returns the server host name.
setHost
public synchronized void setHost(String host)
- Sets the server host name.
getPort
public synchronized int getPort()
- Returns the server port.
setPort
public synchronized void setPort(int port)
- Sets the server port.
getBacklog
public synchronized int getBacklog()
- Returns the server backlog.
setBacklog
public synchronized void setBacklog(int backlog)
- Sets the server backlog.
getMinThreads
public synchronized int getMinThreads()
- Returns the minimum number of handler threads.
setMinThreads
public synchronized void setMinThreads(int minThreads)
- Sets the minimum number of handler threads.
getMaxThreads
public synchronized int getMaxThreads()
- Returns the maximum number of handler threads.
setMaxThreads
public synchronized void setMaxThreads(int maxThreads)
- Sets the maximum number of handler threads.
getTimeout
public synchronized int getTimeout()
- Returns the handler timeout in seconds.
setTimeout
public synchronized void setTimeout(int timeout)
- Sets the handler timeout in seconds.
getGrace
public synchronized int getGrace()
- Returns the shutdown grace period in seconds.
setGrace
public synchronized void setGrace(int grace)
- Sets the shutdown grace peiod in seconds.
reset
public synchronized void reset()
- Resets parameters to default values.
load
public synchronized void load(ExProperties props)
- Loads parameters from properties.
save
public synchronized void save(ExProperties props)
- Saves parameters to properties.
getPrivateKey
public Key getPrivateKey()
- Returns the private key that authenticates this virtual host.
getCertChain
public CertChain getCertChain()
- Returns the cert chain that identifies this virtual host.
All Packages Class Hierarchy This Package Previous Next Index