de.netseeker.ejoe
Class ServerInfo
java.lang.Object
de.netseeker.ejoe.ConnectionHeader
de.netseeker.ejoe.ServerInfo
- All Implemented Interfaces:
- IServerInfo, java.io.Serializable
public class ServerInfo
- extends ConnectionHeader
- implements IServerInfo
- Since:
- 0.3.9.1
- Author:
- netseeker
- See Also:
- Serialized Form
Constructor Summary |
ServerInfo()
|
ServerInfo(java.nio.channels.SocketChannel channel,
java.lang.String host)
|
ServerInfo(java.nio.channels.SocketChannel channel,
java.lang.String host,
byte header)
|
ServerInfo(java.lang.String host)
|
Methods inherited from class de.netseeker.ejoe.ConnectionHeader |
copy, fromByte, fromString, getAdapterName, getAttachementInfo, getAttachment, getChannel, getCompressionLevel, getHost, getWaitingBuffer, hasAdapter, hasAttachment, hasCompression, hasNonBlockingReadWrite, hasWaitingBuffer, isClient, isConnected, isDirect, isHandshakeResponseAware, isHttp, isMixed, isPersistent, releaseAttachment, releaseWaitingBuffer, setAdapterName, setAttachment, setAttachment, setChannel, setCompression, setCompressionLevel, setConnected, setHost, setHttp, setIsDirect, setIsHandshakeResponseAware, setIsMixed, setNonBlockingReadWrite, setPersistent, setWaitingBuffer, toByte, toByteBuffer, toBytes, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServerInfo
public ServerInfo()
- Parameters:
isClient
-
ServerInfo
public ServerInfo(java.nio.channels.SocketChannel channel,
java.lang.String host,
byte header)
- Parameters:
channel
- host
- header
-
ServerInfo
public ServerInfo(java.nio.channels.SocketChannel channel,
java.lang.String host)
- Parameters:
channel
- host
-
ServerInfo
public ServerInfo(java.lang.String host)
- Parameters:
host
-
isClassServerEnabled
public boolean isClassServerEnabled()
- Specified by:
isClassServerEnabled
in interface IServerInfo
- Returns:
- Returns the _classServerEnabled.
setClassServerEnabled
public void setClassServerEnabled(boolean serverEnabled)
- Parameters:
serverEnabled
- The _classServerEnabled to set.
getHandler
public ServerHandler getHandler()
- Specified by:
getHandler
in interface IServerInfo
- Returns:
- Returns the _handler.
setHandler
public void setHandler(ServerHandler _handler)
- Parameters:
_handler
- The _handler to set.
getInterface
public java.lang.String getInterface()
- Specified by:
getInterface
in interface IServerInfo
- Returns:
- Returns the _interface.
setInterface
public void setInterface(java.lang.String _interface)
- Parameters:
_interface
- The _interface to set.
getMaxReadProcessors
public int getMaxReadProcessors()
- Specified by:
getMaxReadProcessors
in interface IServerInfo
- Returns:
- Returns the _maxReadProcessors.
setMaxReadProcessors
public void setMaxReadProcessors(int readProcessors)
- Parameters:
readProcessors
- The _maxReadProcessors to set.
getMaxWriteProcessors
public int getMaxWriteProcessors()
- Specified by:
getMaxWriteProcessors
in interface IServerInfo
- Returns:
- Returns the _maxWriteProcessors.
setMaxWriteProcessors
public void setMaxWriteProcessors(int writeProcessors)
- Parameters:
writeProcessors
- The _maxWriteProcessors to set.
getPort
public int getPort()
- Specified by:
getPort
in interface IServerInfo
- Returns:
- Returns the _port.
setPort
public void setPort(int _port)
- Parameters:
_port
- The _port to set.
isServerRunning
public boolean isServerRunning()
- Specified by:
isServerRunning
in interface IServerInfo
- Returns:
- Returns the _serverRunning.
setServerRunning
public void setServerRunning(boolean running)
- Parameters:
running
- The _serverRunning to set.
isAutomaticThreadPoolResize
public boolean isAutomaticThreadPoolResize()
- Specified by:
isAutomaticThreadPoolResize
in interface IServerInfo
- Returns:
- the _automaticThreadPoolResize
setAutomaticThreadPoolResize
public void setAutomaticThreadPoolResize(boolean threadPoolResize)
- Parameters:
threadPoolResize
- the _automaticThreadPoolResize to set
getPoolResizePeriod
public long getPoolResizePeriod()
- Specified by:
getPoolResizePeriod
in interface IServerInfo
- Returns:
- the _poolResizePeriod
setPoolResizePeriod
public void setPoolResizePeriod(long resizePeriod)
- Parameters:
resizePeriod
- the _poolResizePeriod to set
getTargetedConnectionProcessors
public int getTargetedConnectionProcessors()
- Specified by:
getTargetedConnectionProcessors
in interface IServerInfo
- Returns:
- the _targetedConnectionProcessors
setTargetedConnectionProcessors
public void setTargetedConnectionProcessors(int connectionProcessors)
- Parameters:
connectionProcessors
- the _targetedConnectionProcessors to set
Copyright © 2005-2007 netseeker. All Rights Reserved.