|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.jbossas5.util.JnpConfig
public class JnpConfig
This class will parse the passed File in the getConfig method. This file is normally the jboss-service.xml file in the conf directory of the JBoss Server.
Using a SaxParser it will look for the MBean tag for Naming, when it finds that it is in that tag, it will then look for the Port attribute to determine the jnp port The JBossServerHandler class handles the searching, by determining when the SAX parser has started reading the element that has the text that is being searched, and when that element has ended. Config parsing intended only for JBoss server auto discovery.
| Method Summary | |
|---|---|
static JnpConfig |
getConfig(File configXML,
Properties systemProperties)
|
String |
getJnpAddress()
Returns the JNP address, or null if the address could not be determined. |
Integer |
getJnpPort()
Returns the JNP port, or null if the port could not be determined. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JnpConfig getConfig(File configXML,
Properties systemProperties)
@Nullable public Integer getJnpPort()
@Nullable public String getJnpAddress()
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||