|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.webapp.jonasadmin.WhereAreYou
public class WhereAreYou
Constructor Summary | |
---|---|
WhereAreYou()
|
Method Summary | |
---|---|
String |
getAdminJonasServerConfDir()
|
String |
getAdminJonasServerName()
|
String |
getApplicationContextPath()
|
int |
getApplicationServerPort()
|
String |
getCurrentCatalinaDefaultHostName()
|
String |
getCurrentCatalinaDomainName()
|
String |
getCurrentCatalinaEngineName()
|
String |
getCurrentCatalinaServiceName()
|
ObjectName |
getCurrentClusterDaemon()
|
String |
getCurrentClusterDaemonName()
|
ObjectName |
getCurrentDomain()
Return the current J2EE domain ObjectName. |
String |
getCurrentDomainName()
Return the current J2EE domain name. |
int |
getCurrentJonasDeploymentType()
|
ObjectName |
getCurrentJonasServer()
Return the ObjectName of the MBean associated to the current Jonas server. |
String |
getCurrentJonasServerName()
Return the current Jonas server name. |
String |
getImagesRoot()
|
String |
getSelectedNameNode()
Return the name of the selected node in the tree. |
TreeControlNode |
getSelectedTreeControlNode()
Return the selected node in the tree. |
protected String |
getServletServerName(String domainName)
Return the name of the servlet server. |
TreeControl |
getTreeControl()
|
String |
getUrlToRefreshSelectedNode(HttpServletRequest p_Request,
HttpServletResponse p_Response)
Return the URL to refresh the selected node in the tree. |
void |
initialize(org.apache.struts.action.ActionServlet p_Servlet,
HttpServletRequest p_Request)
Initialize the properties in only reading. |
boolean |
isCatalinaServer()
|
boolean |
isCurrentJonasServer()
|
boolean |
isJettyServer()
|
boolean |
isTreeToRefresh()
Return the state of current display of tree. |
void |
refreshCatalina(HttpServletRequest p_Request,
String domainName)
Refresh the Catalina server properties. |
void |
refreshJetty(HttpServletRequest p_Request,
String domainName)
Refresh the Jetty server properties. |
void |
refreshJonas(HttpServletRequest p_Request,
String serverName)
Refresh the managed JOnAS server properties. |
void |
refreshServers(HttpServletRequest p_Request)
|
void |
refreshServers(HttpServletRequest p_Request,
String domainName,
String serverName)
Refresh all the servers properties. |
protected void |
resetCatalina()
Reset the Catalina server properties. |
protected void |
resetDomain()
Reset the domain properties. |
protected void |
resetJetty()
Reset the Jetty server properties. |
protected void |
resetJonas()
Reset the JOnAS server properties. |
void |
selectNameNode(String p_Name,
boolean p_Expand)
Select the node in the tree. |
void |
setCurrentClusterDaemon(ObjectName currentClusterDaemon)
|
void |
setCurrentClusterDaemonName(String currentClusterDaemonName)
|
void |
setCurrentJonasDeploymentType(int currentJonasDeploymentType)
|
void |
setTreeControl(TreeControl treeControl)
|
void |
setTreeToRefresh(boolean treeToRefresh)
Change the state of current display of tree. |
String |
toString()
Return in a string the contents of the instance for each propertie. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EXCEPTION_MBEANSERVER_NOTFOUND
public static final String EXCEPTION_JONASSERVER_NOTFOUND
public static final String EXCEPTION_MBEAN_J2EEDOMAIN_NOTFOUND
public static final String EXCEPTION_MBEAN_J2EESERVER_NOTFOUND
public static final String SESSION_NAME
public static final String TAGS_IMAGES_ROOT_KEY
public static final String CONTEXT_MACRO
public static final String TREE_PAGE_REFRESH
public static final String NODE_SEPARATOR
public static final int DEPLOYMENT_EAR
public static final int DEPLOYMENT_JAR
public static final int DEPLOYMENT_WAR
public static final int DEPLOYMENT_RAR
public static final int DEPLOYMENT_DATASOURCE
public static final int DEPLOYMENT_JMS
public static final int DEPLOYMENT_MAIL
public static final int DOMAIN_DEPLOYMENT_EAR
public static final int DOMAIN_DEPLOYMENT_JAR
public static final int DOMAIN_DEPLOYMENT_WAR
public static final int DOMAIN_DEPLOYMENT_RAR
public static final String DEPLOYMENT_STRING_EAR
public static final String DEPLOYMENT_STRING_JAR
public static final String DEPLOYMENT_STRING_WAR
public static final String DEPLOYMENT_STRING_RAR
public static final String DEPLOYMENT_STRING_DATASOURCE
public static final String DEPLOYMENT_STRING_JMS
public static final String DEPLOYMENT_STRING_MAILFACTORY
public static final String DOMAIN_DEPLOYMENT_STRING_EAR
public static final String DOMAIN_DEPLOYMENT_STRING_JAR
public static final String DOMAIN_DEPLOYMENT_STRING_WAR
public static final String DOMAIN_DEPLOYMENT_STRING_RAR
Constructor Detail |
---|
public WhereAreYou()
Method Detail |
---|
public void initialize(org.apache.struts.action.ActionServlet p_Servlet, HttpServletRequest p_Request) throws JonasAdminException
p_Servlet
- The instance of servlet to access to the parameter of the servlet configp_Request
- The request to access to the HTTP informations
JonasAdminException
public String getCurrentJonasServerName()
public ObjectName getCurrentJonasServer()
public ObjectName getCurrentDomain()
public String getCurrentDomainName()
public String getSelectedNameNode()
public String getUrlToRefreshSelectedNode(HttpServletRequest p_Request, HttpServletResponse p_Response)
p_Request
- HTTP requestp_Response
- HTTP response
public void selectNameNode(String p_Name, boolean p_Expand)
p_Name
- The name of node to selectp_Expand
- Expand parent branchpublic TreeControlNode getSelectedTreeControlNode()
public boolean isTreeToRefresh()
public void setTreeToRefresh(boolean treeToRefresh)
treeToRefresh
- True to refreshpublic void refreshServers(HttpServletRequest p_Request, String domainName, String serverName) throws ManagementException, JonasAdminException
p_Request
- The request to access to the HTTP informations
ManagementException
- if could not connect to the MBeanServer
JonasAdminException
public void refreshServers(HttpServletRequest p_Request)
public void refreshCatalina(HttpServletRequest p_Request, String domainName)
p_Request
- The request to access to the HTTP informationspublic void refreshJetty(HttpServletRequest p_Request, String domainName)
p_Request
- The request to access to the HTTP informationspublic void refreshJonas(HttpServletRequest p_Request, String serverName) throws ManagementException, JonasAdminException
p_Request
- The request to access to the HTTP informations
ManagementException
- if could not connect to the MBeanServer
JonasAdminException
public String toString()
toString
in class Object
protected String getServletServerName(String domainName) throws ManagementException
ManagementException
protected void resetCatalina()
protected void resetJetty()
protected void resetJonas()
protected void resetDomain()
public String getImagesRoot()
public TreeControl getTreeControl()
public void setTreeControl(TreeControl treeControl)
public boolean isCatalinaServer()
public String getCurrentCatalinaServiceName()
public boolean isCurrentJonasServer()
public int getCurrentJonasDeploymentType()
public void setCurrentJonasDeploymentType(int currentJonasDeploymentType)
public int getApplicationServerPort()
public String getApplicationContextPath()
public String getCurrentCatalinaDefaultHostName()
public String getCurrentCatalinaEngineName()
public String getCurrentCatalinaDomainName()
public boolean isJettyServer()
public String getAdminJonasServerName()
public String getAdminJonasServerConfDir()
public ObjectName getCurrentClusterDaemon()
public void setCurrentClusterDaemon(ObjectName currentClusterDaemon)
currentClusterDaemon
- public String getCurrentClusterDaemonName()
public void setCurrentClusterDaemonName(String currentClusterDaemonName)
currentClusterDaemonName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |