luehe       2004/04/21 16:37:07

  Modified:    catalina/src/share/org/apache/catalina Manager.java
  Log:
  Expose more of the session management methods at the top-level Manager interface
  
  Revision  Changes    Path
  1.9       +79 -1     
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Manager.java
  
  Index: Manager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Manager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Manager.java      27 Feb 2004 14:58:38 -0000      1.8
  +++ Manager.java      21 Apr 2004 23:37:07 -0000      1.9
  @@ -135,6 +135,84 @@
       public void setSessionIdLength(int idLength);
   
   
  +    /** 
  +     * Returns the total number of sessions created by this manager.
  +     *
  +     * @return Total number of sessions created by this manager.
  +     */
  +    public int getSessionCounter();
  +
  +
  +    /** 
  +     * Sets the total number of sessions created by this manager.
  +     *
  +     * @param sessionCounter Total number of sessions created by this manager.
  +     */
  +    public void setSessionCounter(int sessionCounter);
  +
  +
  +    /**
  +     * Gets the maximum number of sessions that may be active at the same time.
  +     *
  +     * <p>If this number has been reached, any requests for creating new
  +     * sessions will be rejected.
  +     *
  +     * @return Maximum number of sessions that may be active at the same time
  +     */
  +    public int getMaxActive();
  +
  +
  +    /**
  +     * Sets the maximum number of sessions that may be active at the same time.
  +     *
  +     * @param maxActive Maximum number of sessions that may be active at
  +     * the same time.
  +     */
  +    public void setMaxActive(int maxActive);
  +
  +
  +    /** 
  +     * Gets the number of currently active sessions.
  +     *
  +     * @return Number of currently active sessions
  +     */
  +    public int getActiveSessions();
  +
  +
  +    /**
  +     * Gets the number of sessions that have expired.
  +     *
  +     * @return Number of sessions that have expired
  +     */
  +    public int getExpiredSessions();
  +
  +
  +    /**
  +     * Sets the number of sessions that have expired.
  +     *
  +     * @param expiredSessions Number of sessions that have expired
  +     */
  +    public void setExpiredSessions(int expiredSessions);
  +
  +
  +    /**
  +     * Gets the number of sessions that were not created because the maximum
  +     * number of active sessions was reached.
  +     *
  +     * @return Number of rejected sessions
  +     */
  +    public int getRejectedSessions();
  +
  +
  +    /**
  +     * Sets the number of sessions that were not created because the maximum
  +     * number of active sessions was reached.
  +     *
  +     * @param rejectedSessions Number of rejected sessions
  +     */
  +    public void setRejectedSessions(int rejectedSessions);
  +
  +
       // --------------------------------------------------------- Public Methods
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to