org.ow2.jonas.webapp.jonasadmin
Class JonasBaseAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
Direct Known Subclasses:
ApplyArchiveConfigAction, ApplyClusterAction, ApplyCmiAction, ApplyCmiClusterAction, ApplyConfirmDestinationsAction, ApplyConfirmXaResourceAction, ApplyContainersStatisticAction, ApplyDatasourceAction, ApplyDatasourceStatAction, ApplyDepmonitorConfigurationAction, ApplyDestinationsAction, ApplyEjbContainersStatisticAction, ApplyEjbSessionConfigurationAction, ApplyJonasServerAction, ApplyJonasServersAction, ApplyJonasServersAction, ApplyJonasServersConfirmAction, ApplyJonasServersConfirmMoveAction, ApplyJtmConfigurationAction, ApplyLoggersAction, ApplyLoggingJonasAction, ApplyMbeanFilteringAction, ApplyMemoryAction, ApplyMimePartMailFactoryAction, ApplyMonitoringAction, ApplyRealmsAction, ApplyResourceAdapterAction, ApplyResourceAdapterCFAction, ApplySessionMailFactoryAction, ApplyStackDumpAction, ApplyTopAction, ApplyVersioningConfigurationAction, ApplyWorkcleanerConfigurationAction, ApplyWorkmanagerConfigurationAction, BaseDeployAction, CmiClusterAction, CmiClusterAction, CmiMemberAction, CmiObjectAction, CmiProtocolAction, CmiServerAction, ConnectionFactoryEditAction, CreateClusterAction, CreateJonasServerAction, DaemonProxyClusterAction, DaemonProxyClusterAction, DaemonProxyClusterApplyModifAction, DaemonProxyClusterConfigureServerAction, DaemonProxyClusterModifyAction, DaemonProxyMemberAction, DestinationAddAction, DestinationAddConfirmAction, DestinationDeleteAction, DestinationDeleteConfirmAction, DestinationEditAction, DestinationsAction, DiscoveryServiceStartMasterAction, DisplayNodeInfoAction, EditAllClusterDaemonsAction, EditClusterDaemonAction, EditClusterdVmMemoryAction, EditContainerAction, EditContainerStatisticAction, EditDatasourceAction, EditDatasourcePropertiesAction, EditDatasourceRealmAction, EditDatasourceStatAction, EditDestinationAction, EditDomainAction, EditEarAction, EditEjbAction, EditEjbCsStatisticAction, EditJmsServiceAction, EditJmxServerAction, EditJonasServerAction, EditJtmServiceAction, EditJvmAction, EditLdapRealmAction, EditLoggingJonasAction, EditMailFactoryAction, EditMailServiceAction, EditMemoryAction, EditMonitoringAction, EditRegistryAction, EditResourceAdapterAction, EditResourceAdapterAOAction, EditResourceAdapterASAction, EditResourceAdapterCFAction, EditResourceAdapterCFStatAction, EditResourceAdapterStatAction, EditSecurityCatalinaRealmAction, EditServiceDepmonitorAction, EditServiceDiscoveryAction, EditServiceSecurityAction, EditServletServerAction, EditSmartclientServiceAction, EditStackDumpAction, EditTopAction, EditTransactionMonitorAction, EditTransactionRecoveryAction, EditTransactionStatisticAction, EditVersioningServiceAction, EditWorkcleanerServiceAction, EditWorkmanagerServiceAction, EjbHaClusterAction, EjbHaMemberAction, ExecuteEjbAction, HaltJonasServerAction, HaltJonasServerAction, HandlersDetailsAction, JkClusterAction, JkMemberAction, JonasMqConnectAction, JonasMqConnectPlatformAction, JonasServerRunGCAction, JonasServersMoveAction, JonasServerStopAction, JoramClusterAction, JoramMemberAction, ListAppContainersAction, ListConnectionFactoriesAction, ListContainersAction, ListDatabasesAction, ListDatasourcesAction, ListJ2eeMBeansAction, ListJmsResourcesAction, ListLoggersAction, ListMailFactoriesAction, ListMBeanDetailsAction, ListMBeansAction, ListMimePartMailFactoriesAction, ListOwnerMBeansAction, ListQueuesAction, ListRegistryAction, ListResourceAdaptersAction, ListServicesAction, ListSessionMailFactoriesAction, ListTopicsAction, ListUnknownMBeansAction, ListWebContainersAction, ListWebServiceAction, ListXaResourceAction, LogicalClusterAction, LogicalMemberAction, MdbEditAction, MdbsAction, PingAllJonasServersAction, PortComponentsDetailsAction, PresentConnectionFactoryAction, PresentQueueAction, PresentTopicAction, RemoveJoramDestinationsAction, RemoveJoramUsersAction, ResetCountersAction, ResetRecoveryAction, ResetTransactionsAction, SaveCatalinaAction, SaveDestinationAction, SaveRealmAction, ServerConfigModifiedAction, ServerGraphsAction, ServerThreadCountAction, ServerTransactionsCountAction, SetupWhereAreYouAction, StartAllJonasServersAction, StartClusterAction, StartClusterDaemonAction, StartJonasServerAction, StartJonasServerAction, StartJonasServiceAction, StartStandbyJonasServerAction, StartStandbyJonasServerAction, StopAllJonasServersAction, StopClusterAction, StopClusterDaemonAction, StopJonasServerAction, StopJonasServerAction, StopJonasServiceAction, StopStandbyJonasServerAction, TomcatClusterAction, TomcatMemberAction, ViewContainerAction, ViewContainerEjbsAction, ViewHandlersAction, ViewLoggingJonasAction, ViewPortComponentsAction, WebServiceDetailsAction

public abstract class JonasBaseAction
extends org.apache.struts.action.Action

Author:
Michel-Ange ANTON, Florent Benoit (changes for struts 1.2.2)

Field Summary
static int DEPTH_DOMAIN
           
static int DEPTH_SERVER
           
static String GLOBAL_ERROR_FORWARD
          Global Forward error page name.
protected  org.apache.struts.action.ActionMessages m_Errors
           
protected  org.apache.struts.util.MessageResources m_Resources
          The MessageResources we will be retrieving messages from.
protected  HttpSession m_Session
           
protected  WhereAreYou m_WhereAreYou
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
JonasBaseAction()
           
 
Method Summary
protected  void addGlobalError(Throwable p_Throwable)
          Add a global error in m_Errorsinstance of m_ErrorsActionMessages and log it.
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).
abstract  org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response)
           
 J2EEMBeanAttributeInfo[] getAttributes(ObjectName objectName, String serverName)
          Get management attributes.
protected  boolean getBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  boolean getBooleanAttribute(Properties p_Props, String ps_AttrName)
          Properties accessor.
protected  boolean getBooleanAttribute(Properties p_Props, String ps_AttrName, boolean p_Default)
          Properties accessor.
protected  int getIntAttribute(ObjectName objectName, String attrName)
          MBean ObjectName accessor.
protected  int getIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  int getIntegerAttribute(Properties p_Props, String ps_AttrName)
          Properties accessor.
protected  int getIntegerAttribute(Properties p_Props, String ps_AttrName, int p_Default)
          Properties accessor.
protected  String getJonasBase()
           
protected  List getListAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  long getLongAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  long getLongAttribute(Properties p_Props, String ps_AttrName)
          Properties accessor.
protected  long getLongAttribute(Properties p_Props, String ps_AttrName, long p_Default)
          Properties accessor.
static String getNameForProvider(String providerUrl, Collection<?> checkWithinInThis)
          Gets the server name for given provider url.
protected  Properties getPropsFromString(String ps_Props)
          Get properties from stringified property table.
 ServiceItem getServerItem(String serviceName)
          Get service item.
protected  long getShortAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String[] getStringArrayAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String getStringAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String getStringAttribute(Properties p_Props, String ps_AttrName)
          Properties accessor.
protected  String getStringAttribute(Properties p_Props, String ps_AttrName, String p_Default)
          Properties accessor.
protected  String getTreeBranchName(int p_Width)
          Return the name of the branch in the tree for the selected node.
protected  void initialize(HttpServletRequest p_Request)
          Initialize the instance variables.
protected  Object invoke(ObjectName on, String operation, Object[] param, String[] signature)
          MBean ObjectName accessor.
 boolean isActive(String serviceName)
          true if the given service is active.
protected  void refreshDomainDeployTree(HttpServletRequest p_Request)
          Refresh the domain deployment nodes of the tree.
protected  void refreshServicesTree(HttpServletRequest request)
          refresh service's tree.
protected  void refreshTree(HttpServletRequest p_Request)
          Refresh the entire management tree.
protected static String removeChar(String string, char c)
          Remove a specific character in a String Do not use replaceAll as it is a JDK 1.4 method.
protected  void setBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName, boolean p_Value)
          MBean ObjectName accessor.
protected  void setBooleanAttribute(Properties p_Props, String ps_AttrName, boolean p_Value)
          Properties accessor.
protected  void setIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName, int p_Value)
          MBean ObjectName accessor.
protected  void setIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)
          MBean ObjectName accessor.
protected  void setIntegerAttribute(Properties p_Props, String ps_AttrName, int p_Value)
          Properties accessor.
protected  void setLongAttribute(ObjectName p_ObjectName, String ps_AttrName, long p_Value)
          MBean ObjectName accessor.
protected  void setLongAttribute(Properties p_Props, String ps_AttrName, long p_Value)
          Properties accessor.
protected  void setShortAttribute(ObjectName p_ObjectName, String ps_AttrName, long p_Value)
          MBean ObjectName accessor.
protected  void setStringAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)
          MBean ObjectName accessor.
protected  void setStringAttribute(Properties p_Props, String ps_AttrName, String p_Value)
          Properties accessor.
protected  void setStringAttribute(Properties p_Props, String ps_AttrName, String p_Value, String p_Default)
          Properties accessor.
protected  String toStringBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String toStringIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String toStringLongAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
protected  String toStringShortAttribute(ObjectName p_ObjectName, String ps_AttrName)
          MBean ObjectName accessor.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPTH_DOMAIN

public static final int DEPTH_DOMAIN
See Also:
Constant Field Values

DEPTH_SERVER

public static final int DEPTH_SERVER
See Also:
Constant Field Values

GLOBAL_ERROR_FORWARD

public static final String GLOBAL_ERROR_FORWARD
Global Forward error page name.

See Also:
Constant Field Values

m_Resources

protected org.apache.struts.util.MessageResources m_Resources
The MessageResources we will be retrieving messages from.


m_Session

protected HttpSession m_Session

m_Errors

protected org.apache.struts.action.ActionMessages m_Errors

m_WhereAreYou

protected WhereAreYou m_WhereAreYou
Constructor Detail

JonasBaseAction

public JonasBaseAction()
Method Detail

executeAction

public abstract org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping,
                                                                     org.apache.struts.action.ActionForm p_Form,
                                                                     HttpServletRequest p_Request,
                                                                     HttpServletResponse p_Response)
                                                              throws IOException,
                                                                     ServletException
Throws:
IOException
ServletException

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping p_Mapping,
                                                      org.apache.struts.action.ActionForm p_Form,
                                                      HttpServletRequest p_Request,
                                                      HttpServletResponse p_Response)
                                               throws IOException,
                                                      ServletException
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). Return an ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.

Overrides:
execute in class org.apache.struts.action.Action
Parameters:
p_Mapping - The ActionMapping used to select this instance
p_Form - The optional ActionForm bean for this request (if any)
p_Request - The HTTP request we are processing
p_Response - The HTTP response we are creating
Returns:
The forward where redirect
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs

initialize

protected void initialize(HttpServletRequest p_Request)
Initialize the instance variables.

Parameters:
p_Request - The HTTP request we are processing

getTreeBranchName

protected String getTreeBranchName(int p_Width)
Return the name of the branch in the tree for the selected node.

Parameters:
p_Width - Depth of the branch
Returns:
The branch name

addGlobalError

protected void addGlobalError(Throwable p_Throwable)
Add a global error in m_Errorsinstance of m_ErrorsActionMessages and log it.

Parameters:
p_Throwable - Error to add

invoke

protected Object invoke(ObjectName on,
                        String operation,
                        Object[] param,
                        String[] signature)
MBean ObjectName accessor.

Parameters:
on - Instance of ObjectName to access to MBean
param - invoke parameters
signature - invoke parameters signature

getStringAttribute

protected String getStringAttribute(ObjectName p_ObjectName,
                                    String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

getStringArrayAttribute

protected String[] getStringArrayAttribute(ObjectName p_ObjectName,
                                           String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

setStringAttribute

protected void setStringAttribute(ObjectName p_ObjectName,
                                  String ps_AttrName,
                                  String p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

getIntegerAttribute

protected int getIntegerAttribute(ObjectName p_ObjectName,
                                  String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

toStringIntegerAttribute

protected String toStringIntegerAttribute(ObjectName p_ObjectName,
                                          String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

setIntegerAttribute

protected void setIntegerAttribute(ObjectName p_ObjectName,
                                   String ps_AttrName,
                                   int p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

setIntegerAttribute

protected void setIntegerAttribute(ObjectName p_ObjectName,
                                   String ps_AttrName,
                                   String p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

getLongAttribute

protected long getLongAttribute(ObjectName p_ObjectName,
                                String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

getIntAttribute

protected int getIntAttribute(ObjectName objectName,
                              String attrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

toStringLongAttribute

protected String toStringLongAttribute(ObjectName p_ObjectName,
                                       String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

setLongAttribute

protected void setLongAttribute(ObjectName p_ObjectName,
                                String ps_AttrName,
                                long p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

getShortAttribute

protected long getShortAttribute(ObjectName p_ObjectName,
                                 String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

toStringShortAttribute

protected String toStringShortAttribute(ObjectName p_ObjectName,
                                        String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

setShortAttribute

protected void setShortAttribute(ObjectName p_ObjectName,
                                 String ps_AttrName,
                                 long p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

getBooleanAttribute

protected boolean getBooleanAttribute(ObjectName p_ObjectName,
                                      String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

toStringBooleanAttribute

protected String toStringBooleanAttribute(ObjectName p_ObjectName,
                                          String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

setBooleanAttribute

protected void setBooleanAttribute(ObjectName p_ObjectName,
                                   String ps_AttrName,
                                   boolean p_Value)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
p_Value - Value to write

getListAttribute

protected List getListAttribute(ObjectName p_ObjectName,
                                String ps_AttrName)
MBean ObjectName accessor.

Parameters:
p_ObjectName - Instance of ObjectName to access to MBean
ps_AttrName - Attribute name of MBean
Returns:
The value of attribute

getStringAttribute

protected String getStringAttribute(Properties p_Props,
                                    String ps_AttrName)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
Returns:
The value of attribute

getStringAttribute

protected String getStringAttribute(Properties p_Props,
                                    String ps_AttrName,
                                    String p_Default)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Default - The returned value if the attribute don't exists in the properties
Returns:
The value of attribute

setStringAttribute

protected void setStringAttribute(Properties p_Props,
                                  String ps_AttrName,
                                  String p_Value)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Value - Value to write

setStringAttribute

protected void setStringAttribute(Properties p_Props,
                                  String ps_AttrName,
                                  String p_Value,
                                  String p_Default)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Value - Value to write
p_Default - The forced value if the value is null or empty

getIntegerAttribute

protected int getIntegerAttribute(Properties p_Props,
                                  String ps_AttrName)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
Returns:
The value of attribute (return 0 if attribute don't exists)

getIntegerAttribute

protected int getIntegerAttribute(Properties p_Props,
                                  String ps_AttrName,
                                  int p_Default)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Default - The returned value if the attribute don't exists in the properties
Returns:
The value of attribute

setIntegerAttribute

protected void setIntegerAttribute(Properties p_Props,
                                   String ps_AttrName,
                                   int p_Value)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Value - Value to write

getLongAttribute

protected long getLongAttribute(Properties p_Props,
                                String ps_AttrName)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
Returns:
The value of attribute (return 0 if attribute don't exists)

getLongAttribute

protected long getLongAttribute(Properties p_Props,
                                String ps_AttrName,
                                long p_Default)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Default - The returned value if the attribute don't exists in the properties
Returns:
The value of attribute

setLongAttribute

protected void setLongAttribute(Properties p_Props,
                                String ps_AttrName,
                                long p_Value)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Value - Value to write

getBooleanAttribute

protected boolean getBooleanAttribute(Properties p_Props,
                                      String ps_AttrName)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
Returns:
The value of attribute (return false if attribute don't exists)

getBooleanAttribute

protected boolean getBooleanAttribute(Properties p_Props,
                                      String ps_AttrName,
                                      boolean p_Default)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Default - The returned value if the attribute don't exists in the properties
Returns:
The value of attribute

setBooleanAttribute

protected void setBooleanAttribute(Properties p_Props,
                                   String ps_AttrName,
                                   boolean p_Value)
Properties accessor.

Parameters:
p_Props - Instance of Properties
ps_AttrName - Attribute name of Properties
p_Value - Value to write

getPropsFromString

protected Properties getPropsFromString(String ps_Props)
Get properties from stringified property table.

Parameters:
ps_Props - stringified property table
Returns:
properties.

removeChar

protected static String removeChar(String string,
                                   char c)
Remove a specific character in a String Do not use replaceAll as it is a JDK 1.4 method.

Parameters:
string - the given string
c - character to remove in the String
Returns:
a string

refreshTree

protected void refreshTree(HttpServletRequest p_Request)
                    throws Exception
Refresh the entire management tree.

Throws:
Exception - any.

refreshServicesTree

protected void refreshServicesTree(HttpServletRequest request)
                            throws Exception
refresh service's tree.

Parameters:
request - the http request.
Throws:
Exception - any.

refreshDomainDeployTree

protected void refreshDomainDeployTree(HttpServletRequest p_Request)
                                throws Exception
Refresh the domain deployment nodes of the tree.

Parameters:
p_Request - the http request
Throws:
Exception - any.

getJonasBase

protected String getJonasBase()
Returns:
the current server's JONAS_BASE.

getNameForProvider

public static String getNameForProvider(String providerUrl,
                                        Collection<?> checkWithinInThis)
Gets the server name for given provider url.

Parameters:
providerUrl - get name for this
checkWithinInThis - check in this list
Returns:

getServerItem

public ServiceItem getServerItem(String serviceName)
Get service item.

Parameters:
serviceName - the service name.
Returns:
the service item.

isActive

public boolean isActive(String serviceName)
true if the given service is active.

Parameters:
serviceName - the service name.
Returns:
true if the given service is active.

getAttributes

public J2EEMBeanAttributeInfo[] getAttributes(ObjectName objectName,
                                              String serverName)
Get management attributes.

Parameters:
objectName - objectName
serverName - server name.
Returns:
attributes for the given objectName.


Copyright © 2010 OW2 Consortium. All Rights Reserved.