fr.dyade.aaa.jndi2.distributed
Class DistributedJndiServer

java.lang.Object
  extended byfr.dyade.aaa.jndi2.distributed.DistributedJndiServer

public class DistributedJndiServer
extends java.lang.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
DistributedJndiServer()
           
 
Method Summary
static AgentId getDefault()
          Returns the default JndiServer id on the local agent server.
static AgentId getDefault(short serverId)
          Returns the default JndiServer id on the given agent server.
static void init(java.lang.String args, boolean firstTime)
           
static void stopService()
          Stops the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedJndiServer

public DistributedJndiServer()
Method Detail

init

public static void init(java.lang.String args,
                        boolean firstTime)
                 throws java.lang.Exception
Throws:
java.lang.Exception

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 AgentId of 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 AgentId of the JndiServer


Copyright ? 2004 Scalagent - All rights reserved