com.go.teaservlet
Class TeaServletAdmin

java.lang.Object
  |
  +--com.go.teaservlet.TeaServletAdmin
All Implemented Interfaces:
java.rmi.Remote, com.go.teaservlet.util.cluster.Restartable

public class TeaServletAdmin
extends java.lang.Object
implements com.go.teaservlet.util.cluster.Restartable

The Admin object which contains all administrative information. This object is meant to be used by the Admin page of the TeaServlet.

Version:
27 , 6/26/01
Author:
Reece Wilton, Brian S O'Neill, Jonathan Colwell

Inner Class Summary
 class TeaServletAdmin.ServerStatus
           
 
Constructor Summary
TeaServletAdmin(TeaServlet teaServlet)
          Initializes the Admin object for the specific TeaServlet instance.
 
Method Summary
protected  void clearServerReloadStatus()
           
 AppAdminLinks[] getAdminLinks()
           
 ApplicationInfo[] getApplications()
           
 NameValuePair[] getAttributes()
           
 java.lang.String[] getClusteredServers()
           
 FunctionInfo[] getFunctions()
          Returns information about all functions available to the templates.
 NameValuePair[] getInitParameters()
           
 Log getLog()
           
 LogEvent[] getLogEvents()
           
 TemplateError[] getRecompiledTemplateErrors()
          Returns null if no template compilation operation was requested.
 java.lang.String[] getRecompiledTemplateNames()
          Returns null if no template compilation operation was requested.
 TeaServletAdmin.ServerStatus[] getReloadStatusOfServers()
           
 javax.servlet.ServletContext getServletContext()
           
 java.lang.String getStatus(java.lang.Object paramObj)
           
 java.lang.Class getTeaServletClass()
           
 java.lang.String getTeaServletVersion()
           
 java.lang.String getTeaVersion()
           
protected  TemplateDepot.TemplateLoadResult getTemplateLoadResult()
           
 TemplateLoader.Template[] getTemplates()
           
 boolean restart(java.lang.Object paramObj)
           
protected  void setAdminLinks(AppAdminLinks[] links)
           
protected  void setClusteredServers(java.lang.String[] serverNames)
           
protected  void setServerReloadStatus(java.lang.String name, int statusCode, java.lang.String message)
           
 void setTemplateLoadResult(TemplateDepot.TemplateLoadResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeaServletAdmin

public TeaServletAdmin(TeaServlet teaServlet)
Initializes the Admin object for the specific TeaServlet instance.
Parameters:
teaServlet - the TeaServlet to administer
Method Detail

getStatus

public java.lang.String getStatus(java.lang.Object paramObj)
Specified by:
getStatus in interface com.go.teaservlet.util.cluster.Restartable

restart

public boolean restart(java.lang.Object paramObj)
Specified by:
restart in interface com.go.teaservlet.util.cluster.Restartable

getServletContext

public javax.servlet.ServletContext getServletContext()

setTemplateLoadResult

public void setTemplateLoadResult(TemplateDepot.TemplateLoadResult result)

getTemplateLoadResult

protected TemplateDepot.TemplateLoadResult getTemplateLoadResult()

getInitParameters

public NameValuePair[] getInitParameters()

getAttributes

public NameValuePair[] getAttributes()

getLog

public Log getLog()

getLogEvents

public LogEvent[] getLogEvents()

getApplications

public ApplicationInfo[] getApplications()

getFunctions

public FunctionInfo[] getFunctions()
Returns information about all functions available to the templates.

getTemplates

public TemplateLoader.Template[] getTemplates()

getRecompiledTemplateNames

public java.lang.String[] getRecompiledTemplateNames()
Returns null if no template compilation operation was requested.

getRecompiledTemplateErrors

public TemplateError[] getRecompiledTemplateErrors()
Returns null if no template compilation operation was requested.

getTeaServletClass

public java.lang.Class getTeaServletClass()

getTeaServletVersion

public java.lang.String getTeaServletVersion()

getTeaVersion

public java.lang.String getTeaVersion()

getClusteredServers

public java.lang.String[] getClusteredServers()

setClusteredServers

protected void setClusteredServers(java.lang.String[] serverNames)

getReloadStatusOfServers

public TeaServletAdmin.ServerStatus[] getReloadStatusOfServers()

clearServerReloadStatus

protected void clearServerReloadStatus()

setServerReloadStatus

protected void setServerReloadStatus(java.lang.String name,
                                     int statusCode,
                                     java.lang.String message)

getAdminLinks

public AppAdminLinks[] getAdminLinks()

setAdminLinks

protected void setAdminLinks(AppAdminLinks[] links)