[jboss-cvs] JBossAS SVN: r89887 - in projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as: server and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 5 13:38:18 EDT 2009
Author: ALRubinger
Date: 2009-06-05 13:38:18 -0400 (Fri, 05 Jun 2009)
New Revision: 89887
Modified:
projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/config/BasicJBossASServerConfig.java
projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/server/JBossASServerImpl.java
Log:
[JBBOOT-90] Add @ManagementProperty annotations to expose new configuration properties as read-only
Modified: projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/config/BasicJBossASServerConfig.java
===================================================================
--- projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/config/BasicJBossASServerConfig.java 2009-06-05 17:34:45 UTC (rev 89886)
+++ projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/config/BasicJBossASServerConfig.java 2009-06-05 17:38:18 UTC (rev 89887)
@@ -246,6 +246,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getBindAddress()
*/
+ @ManagementProperty(description = "The address to which server sockets should bind", readOnly = true)
public synchronized String getBindAddress()
{
return this.bindAddress;
@@ -360,6 +361,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getBootLibraryLocation()
*/
+ @ManagementProperty(description = "The location of the boot libraries", readOnly = true)
public URL getBootLibraryLocation()
{
URL url = null;
@@ -563,6 +565,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getServerLogLocation()
*/
+ @ManagementProperty(description = "The location of the server logs", readOnly = true)
public URL getServerLogLocation()
{
URL url = null;
@@ -625,6 +628,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getServerConfigLocation()
*/
+ @ManagementProperty(description = "The location of the server configuration files", readOnly = true)
public URL getServerConfLocation()
{
URL url = null;
@@ -718,6 +722,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getServerDataLocation()
*/
+ @ManagementProperty(description = "The location into which data files are written", readOnly = true)
public URL getServerDataLocation()
{
URL url = null;
@@ -780,6 +785,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getServerTempLocation()
*/
+ @ManagementProperty(description = "The location into which temp files may be written", readOnly = true)
public URL getServerTempLocation()
{
URL url = null;
@@ -842,6 +848,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getPartitionName()
*/
+ @ManagementProperty(description = "The name of the clustering partition", readOnly = true)
public String getPartitionName()
{
return this.partitionName;
@@ -865,6 +872,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getUdpGroup()
*/
+ @ManagementProperty(description = "The UDP Group used in clustering", readOnly = true)
public String getUdpGroup()
{
return this.udpGroup;
@@ -889,6 +897,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getUdpPort()
*/
+ @ManagementProperty(description = "The UDP Port used in clustering", readOnly = true)
public Integer getUdpPort()
{
return this.udpPort;
@@ -912,6 +921,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#isLoadNative()
*/
+ @ManagementProperty(description = "Whether or not to load the native libraries", readOnly = true)
public Boolean isLoadNative()
{
return this.loadNative;
@@ -935,6 +945,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.config.JBossASServerConfig#getNativeLibraryLocation()
*/
+ @ManagementProperty(description = "The location in which the native libraries reside", readOnly = true)
public URL getNativeLibraryLocation()
{
URL url = null;
@@ -997,6 +1008,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.spi.as.config.JBossASServerConfig#isUsePlatformMBeanServer()
*/
+ @ManagementProperty(description = "Whether or not to use the Platform MBean Server for JMX Operations", readOnly = true)
public Boolean isUsePlatformMBeanServer()
{
return this.usePlatformMBeanServer;
Modified: projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/server/JBossASServerImpl.java
===================================================================
--- projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/server/JBossASServerImpl.java 2009-06-05 17:34:45 UTC (rev 89886)
+++ projects/bootstrap/trunk/impl-as/src/main/java/org/jboss/bootstrap/impl/as/server/JBossASServerImpl.java 2009-06-05 17:38:18 UTC (rev 89887)
@@ -170,7 +170,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getBuildDate()
*/
- @ManagementProperty(description = "The server build date")
+ @ManagementProperty(description = "The server build date", readOnly = true)
public String getBuildDate()
{
return version.getBuildDate();
@@ -179,7 +179,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getBuildID()
*/
- @ManagementProperty(description = "The server build ID")
+ @ManagementProperty(description = "The server build ID", readOnly = true)
public String getBuildID()
{
return version.getBuildID();
@@ -188,7 +188,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getBuildJVM()
*/
- @ManagementProperty(description = "The server build JVM")
+ @ManagementProperty(description = "The server build JVM", readOnly = true)
public String getBuildJVM()
{
return version.getBuildJVM();
@@ -197,7 +197,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getBuildNumber()
*/
- @ManagementProperty(description = "The server build number")
+ @ManagementProperty(description = "The server build number", readOnly = true)
public String getBuildNumber()
{
return version.getBuildNumber();
@@ -206,7 +206,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getBuildOS()
*/
- @ManagementProperty(description = "The server build OS")
+ @ManagementProperty(description = "The server build OS", readOnly = true)
public String getBuildOS()
{
return version.getBuildOS();
@@ -215,7 +215,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getStartDate()
*/
- @ManagementProperty(description = "The server start time")
+ @ManagementProperty(description = "The server start time", readOnly = true)
public Date getStartDate()
{
// We copy so we don't export the mutable state, JBBOOT-73
@@ -226,7 +226,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getVersion()
*/
- @ManagementProperty(description = "The server version string")
+ @ManagementProperty(description = "The server version string", readOnly = true)
public String getVersion()
{
return version.toString();
@@ -235,7 +235,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getVersionName()
*/
- @ManagementProperty(description = "The server version name")
+ @ManagementProperty(description = "The server version name", readOnly = true)
public String getVersionName()
{
return version.getName();
@@ -244,7 +244,7 @@
/* (non-Javadoc)
* @see org.jboss.bootstrap.impl.as.server.JBossASServer#getVersionNumber()
*/
- @ManagementProperty(description = "The server version number string")
+ @ManagementProperty(description = "The server version number string", readOnly = true)
public String getVersionNumber()
{
return version.getVersionNumber();
@@ -374,7 +374,7 @@
// Clone so we don't give callers access to internal state
this.startDate = (Date) startDate.clone();
}
-
+
@Override
public String toString()
{
More information about the jboss-cvs-commits
mailing list