org.codehaus.wadi.tomcat55
Class TomcatManager

java.lang.Object
  extended byorg.codehaus.wadi.tomcat55.TomcatManager
All Implemented Interfaces:
Lifecycle, Manager, org.codehaus.wadi.ManagerConfig

public class TomcatManager
extends Object
implements org.codehaus.wadi.ManagerConfig, Lifecycle, Manager


Field Summary
protected  Container _container
           
protected  boolean _distributable
           
protected  int _expiredSessions
           
protected  LifecycleSupport _lifecycleListeners
           
protected static Log _log
           
protected  int _maxActive
           
protected  PropertyChangeSupport _propertyChangeListeners
           
protected  int _rejectedSessions
           
protected  int _sessionCounter
           
protected  org.codehaus.wadi.impl.StandardManager _wadi
           
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
TomcatManager()
           
 
Method Summary
 void add(Session session)
           
 void addLifecycleListener(LifecycleListener listener)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void backgroundProcess()
           
 void callback(org.codehaus.wadi.impl.StandardManager manager)
           
 Session createEmptySession()
           
 Session createSession()
           
 Session createSession(String arg0)
           
 LifecycleListener[] findLifecycleListeners()
           
 Session findSession(String id)
           
 Session[] findSessions()
           
 int getActiveSessions()
           
 Container getContainer()
           
 boolean getDistributable()
           
 int getExpiredSessions()
           
 String getInfo()
           
 int getMaxActive()
           
 int getMaxInactiveInterval()
           
 int getRejectedSessions()
           
 ServletContext getServletContext()
           
 int getSessionAverageAliveTime()
           
 int getSessionCounter()
           
 int getSessionIdLength()
           
 int getSessionMaxAliveTime()
           
 void load()
           
 void remove(Session session)
           
 void removeLifecycleListener(LifecycleListener listener)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setContainer(Container container)
           
 void setDistributable(boolean distributable)
           
 void setExpiredSessions(int expiredSessions)
           
 void setMaxActive(int maxActive)
           
 void setMaxInactiveInterval(int interval)
           
 void setRejectedSessions(int rejectedSessions)
           
 void setSessionAverageAliveTime(int arg0)
           
 void setSessionCounter(int sessionCounter)
           
 void setSessionIdLength(int sessionIdLength)
           
 void setSessionMaxAliveTime(int arg0)
           
 void start()
           
 void stop()
           
 void unload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected static final Log _log

_wadi

protected org.codehaus.wadi.impl.StandardManager _wadi

_container

protected Container _container

_distributable

protected boolean _distributable

_sessionCounter

protected int _sessionCounter

_maxActive

protected int _maxActive

_expiredSessions

protected int _expiredSessions

_rejectedSessions

protected int _rejectedSessions

_propertyChangeListeners

protected PropertyChangeSupport _propertyChangeListeners

_lifecycleListeners

protected LifecycleSupport _lifecycleListeners
Constructor Detail

TomcatManager

public TomcatManager()
Method Detail

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface org.codehaus.wadi.ManagerConfig

callback

public void callback(org.codehaus.wadi.impl.StandardManager manager)
Specified by:
callback in interface org.codehaus.wadi.ManagerConfig

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
Specified by:
addLifecycleListener in interface Lifecycle

findLifecycleListeners

public LifecycleListener[] findLifecycleListeners()
Specified by:
findLifecycleListeners in interface Lifecycle

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
Specified by:
removeLifecycleListener in interface Lifecycle

start

public void start()
           throws LifecycleException
Specified by:
start in interface Lifecycle
Throws:
LifecycleException

stop

public void stop()
          throws LifecycleException
Specified by:
stop in interface Lifecycle
Throws:
LifecycleException

getContainer

public Container getContainer()
Specified by:
getContainer in interface Manager

setContainer

public void setContainer(Container container)
Specified by:
setContainer in interface Manager

getDistributable

public boolean getDistributable()
Specified by:
getDistributable in interface Manager

setDistributable

public void setDistributable(boolean distributable)
Specified by:
setDistributable in interface Manager

getInfo

public String getInfo()
Specified by:
getInfo in interface Manager

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface Manager

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface Manager

getSessionIdLength

public int getSessionIdLength()
Specified by:
getSessionIdLength in interface Manager

setSessionIdLength

public void setSessionIdLength(int sessionIdLength)
Specified by:
setSessionIdLength in interface Manager

getSessionCounter

public int getSessionCounter()
Specified by:
getSessionCounter in interface Manager

setSessionCounter

public void setSessionCounter(int sessionCounter)
Specified by:
setSessionCounter in interface Manager

getMaxActive

public int getMaxActive()
Specified by:
getMaxActive in interface Manager

setMaxActive

public void setMaxActive(int maxActive)
Specified by:
setMaxActive in interface Manager

getActiveSessions

public int getActiveSessions()
Specified by:
getActiveSessions in interface Manager

getExpiredSessions

public int getExpiredSessions()
Specified by:
getExpiredSessions in interface Manager

setExpiredSessions

public void setExpiredSessions(int expiredSessions)
Specified by:
setExpiredSessions in interface Manager

getRejectedSessions

public int getRejectedSessions()
Specified by:
getRejectedSessions in interface Manager

setRejectedSessions

public void setRejectedSessions(int rejectedSessions)
Specified by:
setRejectedSessions in interface Manager

getSessionMaxAliveTime

public int getSessionMaxAliveTime()
Specified by:
getSessionMaxAliveTime in interface Manager

setSessionMaxAliveTime

public void setSessionMaxAliveTime(int arg0)
Specified by:
setSessionMaxAliveTime in interface Manager

getSessionAverageAliveTime

public int getSessionAverageAliveTime()
Specified by:
getSessionAverageAliveTime in interface Manager

setSessionAverageAliveTime

public void setSessionAverageAliveTime(int arg0)
Specified by:
setSessionAverageAliveTime in interface Manager

add

public void add(Session session)
Specified by:
add in interface Manager

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface Manager

createEmptySession

public Session createEmptySession()
Specified by:
createEmptySession in interface Manager

createSession

public Session createSession()
Specified by:
createSession in interface Manager

createSession

public Session createSession(String arg0)
Specified by:
createSession in interface Manager

findSession

public Session findSession(String id)
                    throws IOException
Specified by:
findSession in interface Manager
Throws:
IOException

findSessions

public Session[] findSessions()
Specified by:
findSessions in interface Manager

load

public void load()
          throws ClassNotFoundException,
                 IOException
Specified by:
load in interface Manager
Throws:
ClassNotFoundException
IOException

remove

public void remove(Session session)
Specified by:
remove in interface Manager

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface Manager

unload

public void unload()
            throws IOException
Specified by:
unload in interface Manager
Throws:
IOException

backgroundProcess

public void backgroundProcess()
Specified by:
backgroundProcess in interface Manager


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.