User: user57  
  Date: 02/04/03 20:33:59

  Modified:    src/main/org/jboss/system/server ServerConfig.java
                        ServerConfigImpl.java ServerImpl.java
                        ServerInfo.java
  Log:
   o Using @jmx:managed-attribute where appropriate
  
  Revision  Changes    Path
  1.7       +4 -1      jboss-system/src/main/org/jboss/system/server/ServerConfig.java
  
  Index: ServerConfig.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerConfig.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ServerConfig.java 27 Feb 2002 09:24:26 -0000      1.6
  +++ ServerConfig.java 4 Apr 2002 04:33:59 -0000       1.7
  @@ -16,7 +16,10 @@
   /**
    * The interface of the basic <em>typed</em> JBoss server configuration.
    *
  - * @version <tt>$Revision: 1.6 $</tt>
  + * <p>Clients should use {@link ServerConfigLocator} to get an instance of 
  + *    {@link ServerConfig} and then use it to get the server's configuration bits.
  + *
  + * @version <tt>$Revision: 1.7 $</tt>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    */
   public interface ServerConfig
  
  
  
  1.5       +20 -62    
jboss-system/src/main/org/jboss/system/server/ServerConfigImpl.java
  
  Index: ServerConfigImpl.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerConfigImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ServerConfigImpl.java     4 Apr 2002 02:53:14 -0000       1.4
  +++ ServerConfigImpl.java     4 Apr 2002 04:33:59 -0000       1.5
  @@ -31,10 +31,14 @@
    * <p>Most values are determined durring first call to getter.  All values
    *    when determined will have equivilent system properties set.
    *
  + * <p>Clients are not meant to use this class directly.  Instead use
  + *    {@link ServerConfigLocator} to get an instance of {@link ServerConfig}
  + *    and then use it to get the server's configuration bits.
  + *
    * @jmx:mbean name="jboss.system:type=ServerConfig"
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version <tt>$Revision: 1.4 $</tt>
  + * @version <tt>$Revision: 1.5 $</tt>
    */
   public class ServerConfigImpl
      implements ServerConfig, ServerConfigImplMBean
  @@ -127,7 +131,7 @@
      /**
       * Get the local home directory which the server is running from.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public File getHomeDir() 
      {
  @@ -137,7 +141,7 @@
      /**
       * Get the home URL which the server is running from.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getHomeURL()
      {
  @@ -147,7 +151,7 @@
      /**
       * Get the home URL which the server is running from.
       * 
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getLibraryURL() 
      {
  @@ -169,7 +173,7 @@
      /**
       * Get the patch URL for the server.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getPatchURL() 
      {
  @@ -197,7 +201,7 @@
      /**
       * Get the name of the server.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getServerName()
      {
  @@ -211,7 +215,7 @@
      /**
       * Get the base directory for calculating server home directories.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public File getServerBaseDir()
      {
  @@ -228,7 +232,7 @@
      /**
       * Get the server home directory.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public File getServerHomeDir() {
         if (serverHomeDir == null) {
  @@ -244,7 +248,7 @@
      /**
       * Get the directory where temporary files will be stored.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public File getServerTempDir()
      {
  @@ -261,7 +265,7 @@
      /**
       * Get the directory where local data will be stored.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public File getServerDataDir()
      {
  @@ -278,7 +282,7 @@
      /**
       * Get the base directory for calculating server home URLs.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getServerBaseURL()
      {
  @@ -300,7 +304,7 @@
      /**
       * Get the server home URL.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getServerHomeURL()
      {
  @@ -322,7 +326,7 @@
      /**
       * Get the server library URL.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getServerLibraryURL()
      {
  @@ -344,7 +348,7 @@
      /**
       * Get the server configuration URL.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public URL getServerConfigURL()
      {
  @@ -370,7 +374,7 @@
       *
       * @param flag    True to enable calling exit on shutdown.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public void setExitOnShutdown(final boolean flag) {
         if (exitOnShutdown == null) {
  @@ -386,7 +390,7 @@
       *
       * @return    The current value of the exit on shutdown flag.
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public boolean getExitOnShutdown() {
         if (exitOnShutdown == null) {
  @@ -401,50 +405,4 @@
   
         return exitOnShutdown.get();
      }
  -
  -
  -   /////////////////////////////////////////////////////////////////////////
  -   //                               Deprecated                            //
  -   /////////////////////////////////////////////////////////////////////////
  -
  -   /**
  -    * @deprecated
  -    *
  -    * @jmx:managed-operation
  -    */
  -   public URL getInstallURL()
  -   {
  -      return getHomeURL();
  -   }
  -
  -   /**
  -    * @deprecated
  -    *
  -    * @jmx:managed-operation
  -    */
  -   public URL getConfigURL()
  -   {
  -      return getServerConfigURL();
  -   }
  -
  -   /**
  -    * @deprecated
  -    *
  -    * @jmx:managed-operation
  -    */
  -   public File getDataDir()
  -   {
  -      return getServerDataDir();
  -   }
  -
  -   /**
  -    * @deprecated
  -    *
  -    * @jmx:managed-operation
  -    */
  -   public File getTempDir()
  -   {
  -      return getServerTempDir();
  -   }
  -
   }
  
  
  
  1.13      +10 -10    jboss-system/src/main/org/jboss/system/server/ServerImpl.java
  
  Index: ServerImpl.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ServerImpl.java   4 Apr 2002 02:53:14 -0000       1.12
  +++ ServerImpl.java   4 Apr 2002 04:33:59 -0000       1.13
  @@ -47,7 +47,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    */
   public class ServerImpl
      implements Server, ServerImplMBean
  @@ -594,7 +594,7 @@
      ///////////////////////////////////////////////////////////////////////////
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public Date getStartDate()
      {
  @@ -602,7 +602,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public Long getTotalMemory()
      {
  @@ -610,7 +610,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public Long getFreeMemory()
      {
  @@ -618,7 +618,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public Long getMaxMemory()
      {
  @@ -628,7 +628,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getVersion()
      {
  @@ -636,7 +636,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getVersionName()
      {
  @@ -644,7 +644,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getBuildNumber()
      {
  @@ -652,7 +652,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getBuildID()
      {
  @@ -660,7 +660,7 @@
      }
      
      /**
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getBuildDate()
      {
  
  
  
  1.4       +3 -3      jboss-system/src/main/org/jboss/system/server/ServerInfo.java
  
  Index: ServerInfo.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerInfo.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ServerInfo.java   4 Apr 2002 02:53:14 -0000       1.3
  +++ ServerInfo.java   4 Apr 2002 04:33:59 -0000       1.4
  @@ -33,7 +33,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Hiram Chirino</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class ServerInfo
      implements ServerInfoMBean, MBeanRegistration
  @@ -108,7 +108,7 @@
      /**
       * Returns InetAddress.getLocalHost().getHostName();
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getHostName()
      {
  @@ -131,7 +131,7 @@
      /**
       * Returns InetAddress.getLocalHost().getHostAddress();
       *
  -    * @jmx:managed-operation
  +    * @jmx:managed-attribute
       */
      public String getHostAddress()
      {
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to