org.sakaiproject.component.legacy.presence
Class ClusterPresenceService

java.lang.Object
  extended byorg.sakaiproject.component.legacy.presence.BasePresenceService
      extended byorg.sakaiproject.component.legacy.presence.ClusterPresenceService
All Implemented Interfaces:
PresenceService

public class ClusterPresenceService
extends BasePresenceService

ClusterPresenceService extends the BasePresenceService with a Storage model that keeps track of presence for a cluster of CHEF app servers, backed by a shared DB table.

Version:
$Revision: 632 $
Author:
University of Michigan, Sakai Software Development Team

Nested Class Summary
protected  class ClusterPresenceService.ClusterStorage
          Storage
 
Nested classes inherited from class org.sakaiproject.component.legacy.presence.BasePresenceService
BasePresenceService.Presence, BasePresenceService.Storage
 
Field Summary
protected  boolean m_autoDdl
          Configuration: to run the ddl on init or not.
protected  SqlService m_sqlService
          Dependency: SqlService
 
Fields inherited from class org.sakaiproject.component.legacy.presence.BasePresenceService
m_eventTrackingService, m_logger, m_storage, m_timeout, m_usageSessionService, m_userDirectoryService, SESSION_KEY
 
Fields inherited from interface org.sakaiproject.service.legacy.presence.PresenceService
EVENT_ABSENCE, EVENT_PRESENCE, REFERENCE_ROOT
 
Constructor Summary
ClusterPresenceService()
           
 
Method Summary
 void init()
          Final initialization, once all dependencies are set.
protected  BasePresenceService.Storage newStorage()
          Allocate a new storage object.
 void setAutoDdl(String value)
          Configuration: to run the ddl on init or not.
 void setSqlService(SqlService service)
          Dependency: SqlService.
 
Methods inherited from class org.sakaiproject.component.legacy.presence.BasePresenceService
checkPresence, checkPresenceForExpiration, destroy, getLocationDescription, getLocations, getPresence, getPresentUsers, getTimeout, locationId, presenceId, presenceReference, removePresence, setEventTrackingService, setLogger, setPresence, setTimeoutSeconds, setUsageSessionService, setUserDirectoryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sqlService

protected SqlService m_sqlService
Dependency: SqlService


m_autoDdl

protected boolean m_autoDdl
Configuration: to run the ddl on init or not.

Constructor Detail

ClusterPresenceService

public ClusterPresenceService()
Method Detail

newStorage

protected BasePresenceService.Storage newStorage()
Allocate a new storage object.

Specified by:
newStorage in class BasePresenceService
Returns:
A new storage object.

setSqlService

public void setSqlService(SqlService service)
Dependency: SqlService.

Parameters:
service - The SqlService.

setAutoDdl

public void setAutoDdl(String value)
Configuration: to run the ddl on init or not.

Parameters:
value - the auto ddl value.

init

public void init()
Final initialization, once all dependencies are set.

Overrides:
init in class BasePresenceService