Package fr.dyade.aaa.jndi2.server
Class JndiServer
- java.lang.Object
-
- fr.dyade.aaa.jndi2.server.JndiServer
-
public class JndiServer extends Object
Class of a JNDI centralized server. This agent may be accessed either by TCP connections or agent notifications.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_POOL_SIZEDefault value for POOL_SIZE property.static StringPOOL_SIZE_PROPThis property allows to set the number of listening thread, default value is 3.static StringSO_TIMEOUT_PROPDeprecated.private static TcpServertcpServer
-
Constructor Summary
Constructors Constructor Description JndiServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AgentIdgetDefault()Returns the default JndiServer id on the local agent server.static AgentIdgetDefault(short serverId)Returns the default JndiServer id on the given agent server.static voidinit(String args, boolean firstTime)static voidstopService()Stops theJndiServerservice.
-
-
-
Field Detail
-
SO_TIMEOUT_PROP
@Deprecated public static final String SO_TIMEOUT_PROP
Deprecated.This property allows to Enable/disable SO_TIMEOUT with the specified timeout in milliseconds, default value is 10.000L (10 second).Be careful, this property is no longer used.
This property can be fixed either from
javalaunching command, or ina3servers.xmlconfiguration file.- See Also:
- Constant Field Values
-
POOL_SIZE_PROP
public static final String POOL_SIZE_PROP
This property allows to set the number of listening thread, default value is 3.This property can be fixed either from
javalaunching command, or ina3servers.xmlconfiguration file.- See Also:
- Constant Field Values
-
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
Default value for POOL_SIZE property.- See Also:
- Constant Field Values
-
tcpServer
private static TcpServer tcpServer
-
-
Method Detail
-
stopService
public static void stopService()
Stops theJndiServerservice.
-
getDefault
public static AgentId getDefault()
Returns the default JndiServer id on the local agent server.- Returns:
- the
AgentIdof the JndiServer
-
getDefault
public static AgentId getDefault(short serverId)
Returns the default JndiServer id on the given agent server.- Parameters:
serverId- the id of the agent server- Returns:
- the
AgentIdof the JndiServer
-
-