org.objectweb.jonas.webapp.jonasadmin.WhereAreYou Class Reference

List of all members.

Public Member Functions

void initialize (ActionServlet p_Servlet, HttpServletRequest p_Request) throws JonasAdminException
String getCurrentJonasServerName ()
ObjectName getCurrentJonasServer ()
ObjectName getCurrentDomain ()
String getCurrentDomainName ()
String getSelectedNameNode ()
String getUrlToRefreshSelectedNode (HttpServletRequest p_Request, HttpServletResponse p_Response)
void selectNameNode (String p_Name, boolean p_Expand)
TreeControlNode getSelectedTreeControlNode ()
boolean isTreeToRefresh ()
void setTreeToRefresh (boolean treeToRefresh)
void refreshServers (HttpServletRequest p_Request) throws JonasAdminException
void refreshCatalina (HttpServletRequest p_Request)
void refreshJetty (HttpServletRequest p_Request)
void refreshJonas (HttpServletRequest p_Request) throws JonasAdminException
String toString ()

Static Public Attributes

final String EXCEPTION_MBEANSERVER_NOTFOUND = "error.mbeanserver.notfound"
final String SESSION_NAME = "WhereAreYou"
final String NODE_SEPARATOR = "*"

Protected Member Functions

String getServletServerName () throws ManagementException
void resetCatalina ()
void resetJetty ()
void resetJonas ()

Detailed Description

Author:
Michel-Ange ANTON

Definition at line 44 of file WhereAreYou.java.


Member Function Documentation

ObjectName org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getCurrentDomain  ) 
 

Return the current J2EE domain ObjectName.

Returns:
The ObjectName

Definition at line 170 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDomain().

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getCurrentDomainName  ) 
 

Return the current J2EE domain name.

Returns:
The name

Definition at line 179 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.monitoring.MemoryGraphServlet.doGet(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ResetTransactionsAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ResetCountersAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditTransactionStatisticAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditJtmServiceAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ApplyJtmConfigurationAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.ejb.EditEjbAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.db.ListDatabasesAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.jonasserver.JonasServerStopAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.jonasserver.JonasServerRunGCAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDomain(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.getListDeployedFiles(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshJoramTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.runGC(), and org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.undeployDataSource().

ObjectName org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getCurrentJonasServer  ) 
 

Return the ObjectName of the MBean associated to the current Jonas server.

Returns:
The ObjectName

Definition at line 161 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServer().

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getCurrentJonasServerName  ) 
 

Return the current Jonas server name.

Returns:
The name

Definition at line 152 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.monitoring.MemoryGraphServlet.doGet(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ResetTransactionsAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ResetCountersAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditTransactionStatisticAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditJtmServiceAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.ApplyJtmConfigurationAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.ejb.EditEjbAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.db.ListDatabasesAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.jonasserver.JonasServerStopAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.jonasserver.JonasServerRunGCAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.getListDeployedFiles(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServer(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.runGC(), and org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.undeployDataSource().

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getSelectedNameNode  ) 
 

Return the name of the selected node in the tree.

Returns:
The name

Definition at line 188 of file WhereAreYou.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(), and org.objectweb.jonas.webapp.taglib.TreeControl.getSelected().

Referenced by org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.getTreeBranchName().

Here is the call graph for this function:

TreeControlNode org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getSelectedTreeControlNode  ) 
 

Return the selected node in the tree.

Returns:
The selected node

Definition at line 261 of file WhereAreYou.java.

References org.objectweb.jonas.webapp.taglib.TreeControl.getSelected().

Here is the call graph for this function:

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getServletServerName  )  throws ManagementException [protected]
 

Return the name of the servlet server.

Returns:
The name of the servlet server.

Definition at line 411 of file WhereAreYou.java.

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getUrlToRefreshSelectedNode HttpServletRequest  p_Request,
HttpServletResponse  p_Response
 

Return the URL to refresh the selected node in the tree.

Parameters:
p_Request HTTP request
p_Response HTTP response
Returns:
The URL

Definition at line 205 of file WhereAreYou.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(), and org.objectweb.jonas.webapp.taglib.TreeControl.getSelected().

Here is the call graph for this function:

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.initialize ActionServlet  p_Servlet,
HttpServletRequest  p_Request
throws JonasAdminException
 

Initialize the properties in only reading.

Parameters:
p_Servlet The instance of servlet to access to the parameter of the servlet config
p_Request The request to access to the HTTP informations
Exceptions:
JonasAdminException 

Definition at line 132 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.SetupWhereAreYouAction.execute().

boolean org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.isTreeToRefresh  ) 
 

Return the state of current display of tree.

Returns:
True if the current tree is not correctly displaying

Definition at line 273 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.refreshCatalina HttpServletRequest  p_Request  ) 
 

Refresh the Catalina server properties.

Parameters:
p_Request The request to access to the HTTP informations

Definition at line 306 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.refreshJetty HttpServletRequest  p_Request  ) 
 

Refresh the Jetty server properties.

Parameters:
p_Request The request to access to the HTTP informations

Definition at line 336 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.refreshJonas HttpServletRequest  p_Request  )  throws JonasAdminException
 

Refresh the JOnAS server properties.

Parameters:
p_Request The request to access to the HTTP informations
Exceptions:
JonasAdminException 

Definition at line 356 of file WhereAreYou.java.

References org.objectweb.jonas.common.JProp.getValue().

Here is the call graph for this function:

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.refreshServers HttpServletRequest  p_Request  )  throws JonasAdminException
 

Refresh all the servers properties.

Parameters:
p_Request The request to access to the HTTP informations
Exceptions:
JonasAdminException 

Definition at line 292 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.SetupWhereAreYouAction.execute().

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.resetCatalina  )  [protected]
 

Reset the Catalina server properties.

Definition at line 420 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.resetJetty  )  [protected]
 

Reset the Jetty server properties.

Definition at line 428 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.resetJonas  )  [protected]
 

Reset the JOnAS server properties.

Definition at line 435 of file WhereAreYou.java.

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.selectNameNode String  p_Name,
boolean  p_Expand
 

Select the node in the tree.

Parameters:
p_Name The name of node to select
p_Expand Expand parent branch

Definition at line 234 of file WhereAreYou.java.

References org.objectweb.jonas.webapp.taglib.TreeControl.expandSelectedParents(), and org.objectweb.jonas.webapp.taglib.TreeControl.selectNode().

Referenced by org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditTransactionStatisticAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.jtm.EditJtmServiceAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.service.ejb.EditEjbAction.executeAction(), and org.objectweb.jonas.webapp.jonasadmin.service.db.ListDatabasesAction.executeAction().

Here is the call graph for this function:

void org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.setTreeToRefresh boolean  treeToRefresh  ) 
 

Change the state of current display of tree.

Parameters:
treeToRefresh True to refresh

Definition at line 282 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshTree().

String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.toString  ) 
 

Return in a string the contents of the instance for each propertie. Debug utility.

Returns:
The string contents

Definition at line 397 of file WhereAreYou.java.

References org.objectweb.jonas.common.JProp.toString().

Referenced by org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDomain(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServer(), org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.getTreeBranchName(), org.objectweb.jonas.webapp.taglib.JonasButtonTag.prepareBorderColumn(), org.objectweb.jonas.webapp.taglib.JonasButtonTag.prepareImage(), org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.removeChar(), org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.toStringBooleanAttribute(), org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.toStringIntegerAttribute(), and org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.toStringLongAttribute().

Here is the call graph for this function:


Member Data Documentation

final String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.EXCEPTION_MBEANSERVER_NOTFOUND = "error.mbeanserver.notfound" [static]
 

Exceptions

Definition at line 50 of file WhereAreYou.java.

final String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.NODE_SEPARATOR = "*" [static]
 

Used separator in the ident node in the tree

Definition at line 68 of file WhereAreYou.java.

Referenced by org.objectweb.jonas.webapp.jonasadmin.service.ejb.EditEjbAction.executeAction(), org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction.getTreeBranchName(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshJoramTree(), and org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree().

final String org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.SESSION_NAME = "WhereAreYou" [static]
 

Name of the variable in http session

Definition at line 58 of file WhereAreYou.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:42 2005 for JOnAS by  doxygen 1.3.9.1