Package fr.dyade.aaa.jndi2.distributed
Class DistributedJndiServer
- java.lang.Object
-
- fr.dyade.aaa.jndi2.distributed.DistributedJndiServer
-
public class DistributedJndiServer extends Object
Class of a JNDI server that belongs to a distributed JNDI configuration. All the servers know each other. A naming context is owned by a unique server and is replicated in all the servers known by the owner server.
-
-
Constructor Summary
Constructors Constructor Description DistributedJndiServer()
-
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 the service.
-
-
-
Field Detail
-
tcpServer
private static TcpServer tcpServer
-
-
Method Detail
-
stopService
public static void stopService()
Stops the service.
-
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
-
-