org.codehaus.wadi.tomcat55
Class TomcatManager

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

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


Field Summary
protected  org.apache.catalina.Container _container
           
protected  boolean _distributable
           
protected  int _expiredSessions
           
protected  org.apache.catalina.util.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(org.apache.catalina.Session session)
           
 void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void backgroundProcess()
           
 void callback(org.codehaus.wadi.impl.StandardManager manager)
           
 org.apache.catalina.Session createEmptySession()
           
 org.apache.catalina.Session createSession()
           
 org.apache.catalina.Session createSession(String arg0)
           
 org.apache.catalina.LifecycleListener[] findLifecycleListeners()
           
 org.apache.catalina.Session findSession(String id)
           
 org.apache.catalina.Session[] findSessions()
           
 int getActiveSessions()
           
 org.apache.catalina.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(org.apache.catalina.Session session)
           
 void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setContainer(org.apache.catalina.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 org.apache.catalina.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 org.apache.catalina.util.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(org.apache.catalina.LifecycleListener listener)
Specified by:
addLifecycleListener in interface org.apache.catalina.Lifecycle

findLifecycleListeners

public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
Specified by:
findLifecycleListeners in interface org.apache.catalina.Lifecycle

removeLifecycleListener

public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
Specified by:
removeLifecycleListener in interface org.apache.catalina.Lifecycle

start

public void start()
           throws org.apache.catalina.LifecycleException
Specified by:
start in interface org.apache.catalina.Lifecycle
Throws:
org.apache.catalina.LifecycleException

stop

public void stop()
          throws org.apache.catalina.LifecycleException
Specified by:
stop in interface org.apache.catalina.Lifecycle
Throws:
org.apache.catalina.LifecycleException

getContainer

public org.apache.catalina.Container getContainer()
Specified by:
getContainer in interface org.apache.catalina.Manager

setContainer

public void setContainer(org.apache.catalina.Container container)
Specified by:
setContainer in interface org.apache.catalina.Manager

getDistributable

public boolean getDistributable()
Specified by:
getDistributable in interface org.apache.catalina.Manager

setDistributable

public void setDistributable(boolean distributable)
Specified by:
setDistributable in interface org.apache.catalina.Manager

getInfo

public String getInfo()
Specified by:
getInfo in interface org.apache.catalina.Manager

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface org.apache.catalina.Manager

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface org.apache.catalina.Manager

getSessionIdLength

public int getSessionIdLength()
Specified by:
getSessionIdLength in interface org.apache.catalina.Manager

setSessionIdLength

public void setSessionIdLength(int sessionIdLength)
Specified by:
setSessionIdLength in interface org.apache.catalina.Manager

getSessionCounter

public int getSessionCounter()
Specified by:
getSessionCounter in interface org.apache.catalina.Manager

setSessionCounter

public void setSessionCounter(int sessionCounter)
Specified by:
setSessionCounter in interface org.apache.catalina.Manager

getMaxActive

public int getMaxActive()
Specified by:
getMaxActive in interface org.apache.catalina.Manager

setMaxActive

public void setMaxActive(int maxActive)
Specified by:
setMaxActive in interface org.apache.catalina.Manager

getActiveSessions

public int getActiveSessions()
Specified by:
getActiveSessions in interface org.apache.catalina.Manager

getExpiredSessions

public int getExpiredSessions()
Specified by:
getExpiredSessions in interface org.apache.catalina.Manager

setExpiredSessions

public void setExpiredSessions(int expiredSessions)
Specified by:
setExpiredSessions in interface org.apache.catalina.Manager

getRejectedSessions

public int getRejectedSessions()
Specified by:
getRejectedSessions in interface org.apache.catalina.Manager

setRejectedSessions

public void setRejectedSessions(int rejectedSessions)
Specified by:
setRejectedSessions in interface org.apache.catalina.Manager

getSessionMaxAliveTime

public int getSessionMaxAliveTime()
Specified by:
getSessionMaxAliveTime in interface org.apache.catalina.Manager

setSessionMaxAliveTime

public void setSessionMaxAliveTime(int arg0)
Specified by:
setSessionMaxAliveTime in interface org.apache.catalina.Manager

getSessionAverageAliveTime

public int getSessionAverageAliveTime()
Specified by:
getSessionAverageAliveTime in interface org.apache.catalina.Manager

setSessionAverageAliveTime

public void setSessionAverageAliveTime(int arg0)
Specified by:
setSessionAverageAliveTime in interface org.apache.catalina.Manager

add

public void add(org.apache.catalina.Session session)
Specified by:
add in interface org.apache.catalina.Manager

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface org.apache.catalina.Manager

createEmptySession

public org.apache.catalina.Session createEmptySession()
Specified by:
createEmptySession in interface org.apache.catalina.Manager

createSession

public org.apache.catalina.Session createSession()
Specified by:
createSession in interface org.apache.catalina.Manager

createSession

public org.apache.catalina.Session createSession(String arg0)
Specified by:
createSession in interface org.apache.catalina.Manager

findSession

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

findSessions

public org.apache.catalina.Session[] findSessions()
Specified by:
findSessions in interface org.apache.catalina.Manager

load

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

remove

public void remove(org.apache.catalina.Session session)
Specified by:
remove in interface org.apache.catalina.Manager

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface org.apache.catalina.Manager

unload

public void unload()
            throws IOException
Specified by:
unload in interface org.apache.catalina.Manager
Throws:
IOException

backgroundProcess

public void backgroundProcess()
Specified by:
backgroundProcess in interface org.apache.catalina.Manager


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