jrun.servlet.session
Class ReplicationIdService

jrunx.kernel.ServiceAdapter
  |
  +--jrun.servlet.session.ReplicationIdService
All Implemented Interfaces:
javax.naming.Referenceable, ReplicationIdServiceMBean, java.io.Serializable, Service, ServiceMBean

public class ReplicationIdService
extends ServiceAdapter
implements ReplicationIdServiceMBean

Stores, creates, and retrieves the server id used by the connectors. This class is misnamed- the id is used as the session replication id but is also used for sticky sessions.

Author:
Brian Deitte
See Also:
Serialized Form

Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
ReplicationIdService()
           
 
Method Summary
 java.util.Map getIdMap(java.util.Collection collection)
           
 java.lang.String getReplicationId()
           
 void start()
          Every service other than mere data collections should start
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, stop, updateStatus
 

Constructor Detail

ReplicationIdService

public ReplicationIdService()
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Specified by:
start in interface Service
Overrides:
start in class ServiceAdapter

getReplicationId

public java.lang.String getReplicationId()
Specified by:
getReplicationId in interface ReplicationIdServiceMBean

getIdMap

public java.util.Map getIdMap(java.util.Collection collection)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.