org.objectweb.jonas.webapp.jonasadmin
Class JonasTreeBuilder

java.lang.Object
  extended by org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder
All Implemented Interfaces:
TreeBuilder

public class JonasTreeBuilder
extends java.lang.Object
implements TreeBuilder

Implementation of TreeBuilder that adds the nodes required for administering the Jonas server.

Author:
Michel-Ange ANTON (initial developer), Adriana Danes : add nodes for JMS service, Florent Benoit (changes for struts 1.2.2)

Constructor Summary
JonasTreeBuilder()
           
 
Method Summary
 void buildTree(TreeControl treeControl, org.apache.struts.action.ActionServlet servlet, javax.servlet.http.HttpServletRequest request)
          Add the required nodes to the specified treeControl instance.
 void getAllMimePartDSMailFactories(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
           
 void getAllSessionMailFactories(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
           
 void getAppContainers(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for all App Containers.
protected  void getCatalinaConnector(TreeControlNode p_CatalinaServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append node for the Connector catalina server
 void getCatalinaDetailConnectors(TreeControlNode p_ConnectorNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for all the Connectors catalina server
protected  void getCatalinaProtocols(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for the Catalina server
protected  void getClusterDaemonList(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String domainName, java.lang.String serverName)
          Append nodes for cluster daemons
 void getContainers(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for all Containers.
 void getDatasources(TreeControlNode pNodeParent, org.apache.struts.util.MessageResources pResources, java.lang.String pDomainName, java.lang.String pServerName)
          Append node for all deployed Datasources.
protected  void getDeploymentEar(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Ear deployment.
protected  void getDeploymentEjb(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Ejb deployment.
protected  void getDeploymentRar(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Rar deployment.
protected  void getDeployments(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Deployments services for the specified server.
protected  void getDeploymentWebAppli(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Web deployment.
 ItemDestination getDestinationItem(java.lang.String joramAdminDestination, java.lang.String serverName)
          Create a ItemDestination object from a String structured as follows: type=queue/topic, name=destName, id=#x.y.z
protected  void getDomain(TreeControlNode p_RootNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for the current domain.
protected  void getDomainDeploy(TreeControlNode p_DomainNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for domain management deployment.
protected  void getDomainDeploymentEar(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Ear deployment using domain management.
protected  void getDomainDeploymentEjb(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Ejb deployment using domain management.
protected  void getDomainDeploymentRar(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Rar deployment using domain management.
protected  void getDomainDeploymentWebAppli(TreeControlNode p_NodeDeployments, org.apache.struts.util.MessageResources p_Resources)
          Append node for Web deployment using domain management.
protected  void getEjbs(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_Filename, java.lang.String p_DomainName, java.lang.String p_ServerName, java.lang.String p_moduleName)
          Append node for all Ejbs for a Container.
 void getJ2eeMBeans(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, java.util.ArrayList p_List)
          Append nodes for all defined J2EE MBeans.
 void getJmsConnectionFactories(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_ServerName)
          Append subnodes for ConnectionFactory resources
 void getJmsQueues(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_ServerName)
          Append subnodes node for Queue destinations
protected  void getJmsResource(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources)
          Append nodes for Jms Resource for the specified server.
 void getJmsResources(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_ServerName)
          Append 3 subnodes for the JMS resource types + subnodes for all the ressources
 void getJmsTopics(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_ServerName)
          Append subnodes node for Topic destinations
 void getJonasMqConnectorPlatform(TreeControlNode pServerNode, java.lang.String sServerName, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest p_Request)
           
 void getJonasMqDestinations(TreeControlNode pMQNode, java.lang.String connectorName, java.lang.String sServerName, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest p_Request)
          Build the destination nodes
 void getJoramPlatform(TreeControlNode pDomainNode, java.lang.String jonasServerName, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest p_Request)
          Append node for JORAM platform management.
 void getJoramResources(TreeControlNode joramServerNode, java.lang.String jonasServerName, java.lang.String serverId, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Joram DEstinations created in a Joram server
 void getJoramServers(TreeControlNode platformNode, java.lang.String jonasServerName, javax.management.ObjectName joramPlatformON, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Joram server defined in tbe platform
 void getLoggers(TreeControlNode p_LoggingNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for each logger.
protected  void getLogging(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Logging.
protected  void getMailResource(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources)
          Append nodes for Mail Resources for the specified server.
protected  void getMBeanInfo(TreeControlNode nodeMBean, javax.management.ObjectName onMBean, org.apache.struts.util.MessageResources resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes Attributes and Operations for a defined MBean.
 void getMBeans(TreeControlNode domainNode, org.apache.struts.util.MessageResources resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for all defined MBeans.
protected  void getMimePartMailFactories(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resource, javax.servlet.http.HttpServletRequest p_Request)
           
protected  void getMonitoring(TreeControlNode p_DomainNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String domainName, java.lang.String serverName)
          Append nodes for monitoring
protected  void getMonitoringClusterList(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String domainName, java.lang.String serverName)
          Append nodes for clusters monitoring
protected  void getMonitoringNodeList(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String domainName, java.lang.String serverName)
          Append nodes for servers monitoring
 void getOwnerMBeans(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, java.util.ArrayList p_List)
          Append nodes for all defined Owner MBeans.
protected  void getProtocols(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for the Servlet server
 void getResourceAdapters(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for all Resource Adapters.
protected  void getResourceDatabase(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources)
          Append nodes for Database Resource for the specified server.
protected  void getResources(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Resources services for the specified server.
protected  void getSecurity(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Security for the specified server.
protected  void getSecurityCatalinaRealm(TreeControlNode p_SecurityNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append node for the Security catalina realm
 void getSecurityFactories(TreeControlNode p_SecurityNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append nodes for Security factories for the specified server.
protected  void getSecurityMemoryFactory(TreeControlNode p_SecurityMemoryNode, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_ResourceFactory)
          Append nodes for Memory Security Factory for the specified server.
protected  void getServer(TreeControlNode p_DomainNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append nodes for a defined Jonas server.
protected  void getServerMonitoring(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources)
          Append nodes for Monitoring.
protected  void getServiceApp(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Ear service for the JOnAS services.
protected  void getServiceDatabase(TreeControlNode pNodeServices, org.apache.struts.util.MessageResources pResources, java.lang.String pDomainName, java.lang.String pServerName)
          Append node for Database service for the JOnAS services.
protected  void getServiceDiscovery(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for discovery service for the JOnAS services.
protected  void getServiceEjbContainer(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for EJBContainer service for the JOnAS services.
protected  void getServiceJms(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Jms service for the JOnAS services.
protected  void getServiceMail(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Mail service for the JOnAS services.
protected  void getServiceResourceAdapter(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Resource service for the JOnAS services.
protected  void getServices(TreeControlNode p_ServerNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append nodes for all defined services for the specified server.
protected  void getServiceSecurity(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Security service for the JOnAS services.
protected  void getServiceTransaction(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for Transaction service for the JOnAS services.
protected  void getServiceWeb(TreeControlNode pNodeServices, org.apache.struts.util.MessageResources pResources, javax.servlet.http.HttpServletRequest pRequest, java.lang.String pDomainName, java.lang.String pServerName)
          Append node for Web service for the JOnAS services.
 void getServiceWebService(TreeControlNode p_NodeServices, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest request, java.lang.String p_DomainName, java.lang.String p_ServerName)
          Append node for WebService (ws) service for the JOnAS services.
protected  void getSessionMailFactories(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
           
 void getUnknownMBeans(TreeControlNode p_ParentNode, org.apache.struts.util.MessageResources p_Resources, java.util.ArrayList p_List)
          Append nodes for all defined Unknown MBeans.
 void getWebContainers(TreeControlNode p_NodeParent, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append node for all Web Containers.
 void getWebServiceDetails(TreeControlNode p_webServicesNode, org.apache.struts.util.MessageResources p_Resources, javax.servlet.http.HttpServletRequest p_Request)
          Append Web Service names for web services node in tree.
protected  boolean isMaster(javax.servlet.http.HttpServletRequest p_Request, java.lang.String serverName)
          Returns if the current server (with discovery running) is a master server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JonasTreeBuilder

public JonasTreeBuilder()
Method Detail

buildTree

public void buildTree(TreeControl treeControl,
                      org.apache.struts.action.ActionServlet servlet,
                      javax.servlet.http.HttpServletRequest request)
Add the required nodes to the specified treeControl instance.

Specified by:
buildTree in interface TreeBuilder
Parameters:
treeControl - The TreeControl to which we should add our nodes
servlet - The controller servlet for the admin application
request - The servlet request we are processing

getDomain

protected void getDomain(TreeControlNode p_RootNode,
                         org.apache.struts.util.MessageResources p_Resources,
                         javax.servlet.http.HttpServletRequest p_Request)
                  throws java.lang.Exception
Append nodes for the current domain.

Parameters:
p_RootNode - Root node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

isMaster

protected boolean isMaster(javax.servlet.http.HttpServletRequest p_Request,
                           java.lang.String serverName)
Returns if the current server (with discovery running) is a master server.

Returns:
if the current server is a master server.

getDomainDeploy

protected void getDomainDeploy(TreeControlNode p_DomainNode,
                               org.apache.struts.util.MessageResources p_Resources,
                               javax.servlet.http.HttpServletRequest p_Request)
                        throws java.lang.Exception
Append nodes for domain management deployment.

Parameters:
p_DomainNode - Domain node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
p_DomainName - The name of the domain.
Throws:
java.lang.Exception - if an exception occurs building the tree

getDomainDeploymentEar

protected void getDomainDeploymentEar(TreeControlNode p_NodeDeployments,
                                      org.apache.struts.util.MessageResources p_Resources)
                               throws java.lang.Exception
Append node for Ear deployment using domain management.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDomainDeploymentEjb

protected void getDomainDeploymentEjb(TreeControlNode p_NodeDeployments,
                                      org.apache.struts.util.MessageResources p_Resources)
                               throws java.lang.Exception
Append node for Ejb deployment using domain management.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDomainDeploymentWebAppli

protected void getDomainDeploymentWebAppli(TreeControlNode p_NodeDeployments,
                                           org.apache.struts.util.MessageResources p_Resources)
                                    throws java.lang.Exception
Append node for Web deployment using domain management.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDomainDeploymentRar

protected void getDomainDeploymentRar(TreeControlNode p_NodeDeployments,
                                      org.apache.struts.util.MessageResources p_Resources)
                               throws java.lang.Exception
Append node for Rar deployment using domain management.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServer

protected void getServer(TreeControlNode p_DomainNode,
                         org.apache.struts.util.MessageResources p_Resources,
                         javax.servlet.http.HttpServletRequest p_Request,
                         java.lang.String p_DomainName,
                         java.lang.String p_ServerName)
                  throws java.lang.Exception
Append nodes for a defined Jonas server.

Parameters:
p_DomainNode - Domain node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getServerMonitoring

protected void getServerMonitoring(TreeControlNode p_ServerNode,
                                   org.apache.struts.util.MessageResources p_Resources)
                            throws java.lang.Exception
Append nodes for Monitoring.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getLogging

protected void getLogging(TreeControlNode p_ServerNode,
                          org.apache.struts.util.MessageResources p_Resources,
                          javax.servlet.http.HttpServletRequest p_Request)
                   throws java.lang.Exception
Append nodes for Logging.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getLoggers

public void getLoggers(TreeControlNode p_LoggingNode,
                       org.apache.struts.util.MessageResources p_Resources,
                       javax.servlet.http.HttpServletRequest p_Request)
                throws java.lang.Exception
Append nodes for each logger.

Parameters:
p_LoggingNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getServices

protected void getServices(TreeControlNode p_ServerNode,
                           org.apache.struts.util.MessageResources p_Resources,
                           javax.servlet.http.HttpServletRequest p_Request,
                           java.lang.String p_DomainName,
                           java.lang.String p_ServerName)
                    throws java.lang.Exception
Append nodes for all defined services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceApp

protected void getServiceApp(TreeControlNode p_NodeServices,
                             org.apache.struts.util.MessageResources p_Resources,
                             java.lang.String p_DomainName,
                             java.lang.String p_ServerName)
                      throws java.lang.Exception
Append node for Ear service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getAppContainers

public void getAppContainers(TreeControlNode p_NodeParent,
                             org.apache.struts.util.MessageResources p_Resources,
                             java.lang.String p_DomainName,
                             java.lang.String p_ServerName)
                      throws java.lang.Exception
Append node for all App Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceEjbContainer

protected void getServiceEjbContainer(TreeControlNode p_NodeServices,
                                      org.apache.struts.util.MessageResources p_Resources,
                                      java.lang.String p_DomainName,
                                      java.lang.String p_ServerName)
                               throws java.lang.Exception
Append node for EJBContainer service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getContainers

public void getContainers(TreeControlNode p_NodeParent,
                          org.apache.struts.util.MessageResources p_Resources,
                          java.lang.String p_DomainName,
                          java.lang.String p_ServerName)
                   throws java.lang.Exception
Append node for all Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getEjbs

protected void getEjbs(TreeControlNode p_NodeParent,
                       org.apache.struts.util.MessageResources p_Resources,
                       java.lang.String p_Filename,
                       java.lang.String p_DomainName,
                       java.lang.String p_ServerName,
                       java.lang.String p_moduleName)
                throws java.lang.Exception
Append node for all Ejbs for a Container.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Filename - Filename of container
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceDatabase

protected void getServiceDatabase(TreeControlNode pNodeServices,
                                  org.apache.struts.util.MessageResources pResources,
                                  java.lang.String pDomainName,
                                  java.lang.String pServerName)
                           throws java.lang.Exception
Append node for Database service for the JOnAS services.

Parameters:
pNodeServices - Services node for the tree control
pResources - The MessageResources for our localized messages
pDomainName - The name of the current management domain
pServerName - The name of the currently managed JOnAS server
Throws:
java.lang.Exception - if an exception occurs building the tree

getDatasources

public void getDatasources(TreeControlNode pNodeParent,
                           org.apache.struts.util.MessageResources pResources,
                           java.lang.String pDomainName,
                           java.lang.String pServerName)
                    throws java.lang.Exception
Append node for all deployed Datasources.

Parameters:
pNodeParent - Server node for the tree control
pResources - The MessageResources for our localized messages
pDomainName - The name of the current management domain
pServerName - The name of the currently managed JOnAS server
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceWeb

protected void getServiceWeb(TreeControlNode pNodeServices,
                             org.apache.struts.util.MessageResources pResources,
                             javax.servlet.http.HttpServletRequest pRequest,
                             java.lang.String pDomainName,
                             java.lang.String pServerName)
                      throws java.lang.Exception
Append node for Web service for the JOnAS services.

Parameters:
pNodeServices - Services node for the tree control
pResources - The MessageResources for our localized messages
pRequest - The servlet request we are processing
pDomainName - The name of the current management domain
pServerName - The name of the currently managed JOnAS server
Throws:
java.lang.Exception - if an exception occurs building the tree

getWebContainers

public void getWebContainers(TreeControlNode p_NodeParent,
                             org.apache.struts.util.MessageResources p_Resources,
                             javax.servlet.http.HttpServletRequest p_Request)
                      throws java.lang.Exception
Append node for all Web Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceTransaction

protected void getServiceTransaction(TreeControlNode p_NodeServices,
                                     org.apache.struts.util.MessageResources p_Resources,
                                     java.lang.String p_DomainName,
                                     java.lang.String p_ServerName)
                              throws java.lang.Exception
Append node for Transaction service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceDiscovery

protected void getServiceDiscovery(TreeControlNode p_NodeServices,
                                   org.apache.struts.util.MessageResources p_Resources,
                                   java.lang.String p_DomainName,
                                   java.lang.String p_ServerName)
                            throws java.lang.Exception
Append node for discovery service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceWebService

public void getServiceWebService(TreeControlNode p_NodeServices,
                                 org.apache.struts.util.MessageResources p_Resources,
                                 javax.servlet.http.HttpServletRequest request,
                                 java.lang.String p_DomainName,
                                 java.lang.String p_ServerName)
                          throws java.lang.Exception
Append node for WebService (ws) service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
request - The HTTP request object currently in use.
p_DomainName - The domain name for the instance
p_ServerName - The server name for the instance being monitored
Throws:
java.lang.Exception - if an exception occurs building the tree

getWebServiceDetails

public void getWebServiceDetails(TreeControlNode p_webServicesNode,
                                 org.apache.struts.util.MessageResources p_Resources,
                                 javax.servlet.http.HttpServletRequest p_Request)
                          throws java.lang.Exception
Append Web Service names for web services node in tree.

Parameters:
p_WebServicesNode - Web Services node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceJms

protected void getServiceJms(TreeControlNode p_NodeServices,
                             org.apache.struts.util.MessageResources p_Resources,
                             java.lang.String p_DomainName,
                             java.lang.String p_ServerName)
                      throws java.lang.Exception
Append node for Jms service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getJmsResources

public void getJmsResources(TreeControlNode p_NodeParent,
                            org.apache.struts.util.MessageResources p_Resources,
                            java.lang.String p_ServerName)
                     throws java.lang.Exception
Append 3 subnodes for the JMS resource types + subnodes for all the ressources

Parameters:
p_NodeParent - JMS service node
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getJmsConnectionFactories

public void getJmsConnectionFactories(TreeControlNode p_NodeParent,
                                      org.apache.struts.util.MessageResources p_Resources,
                                      java.lang.String p_ServerName)
                               throws java.lang.Exception
Append subnodes for ConnectionFactory resources

Parameters:
p_NodeParent - CFs subnode
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getJmsQueues

public void getJmsQueues(TreeControlNode p_NodeParent,
                         org.apache.struts.util.MessageResources p_Resources,
                         java.lang.String p_ServerName)
                  throws java.lang.Exception
Append subnodes node for Queue destinations

Parameters:
p_NodeParent - Queue subnode
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getJmsTopics

public void getJmsTopics(TreeControlNode p_NodeParent,
                         org.apache.struts.util.MessageResources p_Resources,
                         java.lang.String p_ServerName)
                  throws java.lang.Exception
Append subnodes node for Topic destinations

Parameters:
p_NodeParent - Topic subnode
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceMail

protected void getServiceMail(TreeControlNode p_NodeServices,
                              org.apache.struts.util.MessageResources p_Resources,
                              javax.servlet.http.HttpServletRequest p_Request,
                              java.lang.String p_DomainName,
                              java.lang.String p_ServerName)
                       throws java.lang.Exception
Append node for Mail service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getAllSessionMailFactories

public void getAllSessionMailFactories(TreeControlNode p_NodeParent,
                                       org.apache.struts.util.MessageResources p_Resources,
                                       javax.servlet.http.HttpServletRequest p_Request)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getAllMimePartDSMailFactories

public void getAllMimePartDSMailFactories(TreeControlNode p_NodeParent,
                                          org.apache.struts.util.MessageResources p_Resources,
                                          javax.servlet.http.HttpServletRequest p_Request)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getSessionMailFactories

protected void getSessionMailFactories(TreeControlNode p_NodeParent,
                                       org.apache.struts.util.MessageResources p_Resources,
                                       javax.servlet.http.HttpServletRequest p_Request)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getMimePartMailFactories

protected void getMimePartMailFactories(TreeControlNode p_NodeParent,
                                        org.apache.struts.util.MessageResources p_Resource,
                                        javax.servlet.http.HttpServletRequest p_Request)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getServiceResourceAdapter

protected void getServiceResourceAdapter(TreeControlNode p_NodeServices,
                                         org.apache.struts.util.MessageResources p_Resources,
                                         java.lang.String p_DomainName,
                                         java.lang.String p_ServerName)
                                  throws java.lang.Exception
Append node for Resource service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getResourceAdapters

public void getResourceAdapters(TreeControlNode p_NodeParent,
                                org.apache.struts.util.MessageResources p_Resources,
                                java.lang.String p_DomainName,
                                java.lang.String p_ServerName)
                         throws java.lang.Exception
Append node for all Resource Adapters.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
pDomainName - The name of the current management domain
pServerName - The name of the currently managed JOnAS server
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceSecurity

protected void getServiceSecurity(TreeControlNode p_NodeServices,
                                  org.apache.struts.util.MessageResources p_Resources,
                                  java.lang.String p_DomainName,
                                  java.lang.String p_ServerName)
                           throws java.lang.Exception
Append node for Security service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeployments

protected void getDeployments(TreeControlNode p_ServerNode,
                              org.apache.struts.util.MessageResources p_Resources,
                              javax.servlet.http.HttpServletRequest p_Request)
                       throws java.lang.Exception
Append nodes for Deployments services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentEar

protected void getDeploymentEar(TreeControlNode p_NodeDeployments,
                                org.apache.struts.util.MessageResources p_Resources)
                         throws java.lang.Exception
Append node for Ear deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentEjb

protected void getDeploymentEjb(TreeControlNode p_NodeDeployments,
                                org.apache.struts.util.MessageResources p_Resources)
                         throws java.lang.Exception
Append node for Ejb deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentWebAppli

protected void getDeploymentWebAppli(TreeControlNode p_NodeDeployments,
                                     org.apache.struts.util.MessageResources p_Resources)
                              throws java.lang.Exception
Append node for Web deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentRar

protected void getDeploymentRar(TreeControlNode p_NodeDeployments,
                                org.apache.struts.util.MessageResources p_Resources)
                         throws java.lang.Exception
Append node for Rar deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getResources

protected void getResources(TreeControlNode p_ServerNode,
                            org.apache.struts.util.MessageResources p_Resources,
                            javax.servlet.http.HttpServletRequest p_Request)
                     throws java.lang.Exception
Append nodes for Resources services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getMailResource

protected void getMailResource(TreeControlNode p_ServerNode,
                               org.apache.struts.util.MessageResources p_Resources)
                        throws java.lang.Exception
Append nodes for Mail Resources for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getJmsResource

protected void getJmsResource(TreeControlNode p_ServerNode,
                              org.apache.struts.util.MessageResources p_Resources)
                       throws java.lang.Exception
Append nodes for Jms Resource for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getResourceDatabase

protected void getResourceDatabase(TreeControlNode p_ServerNode,
                                   org.apache.struts.util.MessageResources p_Resources)
                            throws java.lang.Exception
Append nodes for Database Resource for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurity

protected void getSecurity(TreeControlNode p_ServerNode,
                           org.apache.struts.util.MessageResources p_Resources,
                           javax.servlet.http.HttpServletRequest p_Request)
                    throws java.lang.Exception
Append nodes for Security for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurityCatalinaRealm

protected void getSecurityCatalinaRealm(TreeControlNode p_SecurityNode,
                                        org.apache.struts.util.MessageResources p_Resources,
                                        javax.servlet.http.HttpServletRequest p_Request)
                                 throws java.lang.Exception
Append node for the Security catalina realm

Parameters:
p_SecurityNode - Catalina Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurityFactories

public void getSecurityFactories(TreeControlNode p_SecurityNode,
                                 org.apache.struts.util.MessageResources p_Resources,
                                 javax.servlet.http.HttpServletRequest p_Request)
                          throws java.lang.Exception
Append nodes for Security factories for the specified server.

Parameters:
p_SecurityNode - Security node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurityMemoryFactory

protected void getSecurityMemoryFactory(TreeControlNode p_SecurityMemoryNode,
                                        org.apache.struts.util.MessageResources p_Resources,
                                        java.lang.String p_ResourceFactory)
                                 throws java.lang.Exception
Append nodes for Memory Security Factory for the specified server.

Parameters:
p_SecurityMemoryNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_ResourceFactory - The name of resource
Throws:
java.lang.Exception - if an exception occurs building the tree

getProtocols

protected void getProtocols(TreeControlNode p_ServerNode,
                            org.apache.struts.util.MessageResources p_Resources,
                            javax.servlet.http.HttpServletRequest p_Request)
                     throws java.lang.Exception
Append nodes for the Servlet server

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getCatalinaProtocols

protected void getCatalinaProtocols(TreeControlNode p_ServerNode,
                                    org.apache.struts.util.MessageResources p_Resources,
                                    javax.servlet.http.HttpServletRequest p_Request)
                             throws java.lang.Exception
Append nodes for the Catalina server

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getCatalinaConnector

protected void getCatalinaConnector(TreeControlNode p_CatalinaServerNode,
                                    org.apache.struts.util.MessageResources p_Resources,
                                    javax.servlet.http.HttpServletRequest p_Request)
                             throws java.lang.Exception
Append node for the Connector catalina server

Parameters:
p_CatalinaServerNode - Catalina Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getCatalinaDetailConnectors

public void getCatalinaDetailConnectors(TreeControlNode p_ConnectorNode,
                                        org.apache.struts.util.MessageResources p_Resources,
                                        javax.servlet.http.HttpServletRequest p_Request)
                                 throws java.lang.Exception
Append nodes for all the Connectors catalina server

Parameters:
p_ConnectorNode - Connector node for the tree control
p_Resources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - if an exception occurs building the tree

getJoramPlatform

public void getJoramPlatform(TreeControlNode pDomainNode,
                             java.lang.String jonasServerName,
                             org.apache.struts.util.MessageResources pResources,
                             javax.servlet.http.HttpServletRequest p_Request)
                      throws java.lang.Exception
Append node for JORAM platform management.

Parameters:
pDomainNode - Domain node for the tree control
jonasServerName - the name of the JOnAS server to which the current JORAM server is connected
pResources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - If an exception occurs when building the tree.

getJoramServers

public void getJoramServers(TreeControlNode platformNode,
                            java.lang.String jonasServerName,
                            javax.management.ObjectName joramPlatformON,
                            org.apache.struts.util.MessageResources pResources,
                            javax.servlet.http.HttpServletRequest p_Request)
                     throws java.lang.Exception
Append nodes for Joram server defined in tbe platform

Parameters:
platformNode - Joram platform node
jonasServerName - the name of the JOnAS server to which the current JORAM server is connected
joramPlatformON - ObjectName of Joram Platform MBean
pResources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - If an exception occurs when building the tree.

getJoramResources

public void getJoramResources(TreeControlNode joramServerNode,
                              java.lang.String jonasServerName,
                              java.lang.String serverId,
                              org.apache.struts.util.MessageResources pResources,
                              javax.servlet.http.HttpServletRequest p_Request)
                       throws java.lang.Exception
Append nodes for Joram DEstinations created in a Joram server

Parameters:
joramServerNode - Joram server node
jonasServerName - the name of the JOnAS server to which the current JORAM server is connected
serverId - Joram server id
pResources - The MessageResources for our localized messages
p_Request - The servlet request we are processing
Throws:
java.lang.Exception - If an exception occurs when building the tree.

getMBeans

public void getMBeans(TreeControlNode domainNode,
                      org.apache.struts.util.MessageResources resources,
                      javax.servlet.http.HttpServletRequest p_Request)
               throws java.lang.Exception
Append nodes for all defined MBeans.

Parameters:
domainNode - Root node for the tree control
resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getOwnerMBeans

public void getOwnerMBeans(TreeControlNode p_ParentNode,
                           org.apache.struts.util.MessageResources p_Resources,
                           java.util.ArrayList p_List)
                    throws java.lang.Exception
Append nodes for all defined Owner MBeans.

Parameters:
p_ParentNode - Parent node for the tree control
p_Resources - The MessageResources for our localized messages
p_List - The list of Mbeans
Throws:
java.lang.Exception - if an exception occurs building the tree

getJ2eeMBeans

public void getJ2eeMBeans(TreeControlNode p_ParentNode,
                          org.apache.struts.util.MessageResources p_Resources,
                          java.util.ArrayList p_List)
                   throws java.lang.Exception
Append nodes for all defined J2EE MBeans.

Parameters:
p_ParentNode - Parent node for the tree control
p_Resources - The MessageResources for our localized messages
p_List - The list of Mbeans
Throws:
java.lang.Exception - if an exception occurs building the tree

getUnknownMBeans

public void getUnknownMBeans(TreeControlNode p_ParentNode,
                             org.apache.struts.util.MessageResources p_Resources,
                             java.util.ArrayList p_List)
                      throws java.lang.Exception
Append nodes for all defined Unknown MBeans.

Parameters:
p_ParentNode - Parent node for the tree control
p_Resources - The MessageResources for our localized messages
p_List - The list of Mbeans
Throws:
java.lang.Exception - if an exception occurs building the tree

getMBeanInfo

protected void getMBeanInfo(TreeControlNode nodeMBean,
                            javax.management.ObjectName onMBean,
                            org.apache.struts.util.MessageResources resources,
                            javax.servlet.http.HttpServletRequest p_Request)
                     throws java.lang.Exception
Append nodes Attributes and Operations for a defined MBean.

Parameters:
nodeMBean - The MBean node
onMBean - The MBean Object name
resources - Resource
Throws:
java.lang.Exception

getDestinationItem

public ItemDestination getDestinationItem(java.lang.String joramAdminDestination,
                                          java.lang.String serverName)
                                   throws javax.management.MalformedObjectNameException
Create a ItemDestination object from a String structured as follows: type=queue/topic, name=destName, id=#x.y.z

Parameters:
joramAdminDestination - String containing destination description
serverName - the name of the JOnAS server to which the current JORAM server is connected
Returns:
ItemDestination containing name, type, id and ObjectName of the MBean associated to the corresponding destination
Throws:
javax.management.MalformedObjectNameException - could not construct destination ObjectName

getMonitoring

protected void getMonitoring(TreeControlNode p_DomainNode,
                             org.apache.struts.util.MessageResources p_Resources,
                             javax.servlet.http.HttpServletRequest p_Request,
                             java.lang.String domainName,
                             java.lang.String serverName)
                      throws java.lang.Exception
Append nodes for monitoring

Throws:
java.lang.Exception

getMonitoringNodeList

protected void getMonitoringNodeList(TreeControlNode p_ParentNode,
                                     org.apache.struts.util.MessageResources p_Resources,
                                     javax.servlet.http.HttpServletRequest p_Request,
                                     java.lang.String domainName,
                                     java.lang.String serverName)
                              throws java.lang.Exception
Append nodes for servers monitoring

Throws:
java.lang.Exception

getMonitoringClusterList

protected void getMonitoringClusterList(TreeControlNode p_ParentNode,
                                        org.apache.struts.util.MessageResources p_Resources,
                                        javax.servlet.http.HttpServletRequest p_Request,
                                        java.lang.String domainName,
                                        java.lang.String serverName)
                                 throws java.lang.Exception
Append nodes for clusters monitoring

Throws:
java.lang.Exception

getClusterDaemonList

protected void getClusterDaemonList(TreeControlNode p_ParentNode,
                                    org.apache.struts.util.MessageResources p_Resources,
                                    javax.servlet.http.HttpServletRequest p_Request,
                                    java.lang.String domainName,
                                    java.lang.String serverName)
                             throws java.lang.Exception
Append nodes for cluster daemons

Throws:
java.lang.Exception

getJonasMqConnectorPlatform

public void getJonasMqConnectorPlatform(TreeControlNode pServerNode,
                                        java.lang.String sServerName,
                                        org.apache.struts.util.MessageResources pResources,
                                        javax.servlet.http.HttpServletRequest p_Request)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getJonasMqDestinations

public void getJonasMqDestinations(TreeControlNode pMQNode,
                                   java.lang.String connectorName,
                                   java.lang.String sServerName,
                                   org.apache.struts.util.MessageResources pResources,
                                   javax.servlet.http.HttpServletRequest p_Request)
                            throws java.lang.Exception
Build the destination nodes

Throws:
java.lang.Exception