User: user57  
  Date: 02/02/14 16:46:51

  Modified:    src/main/org/jboss/ha/jndi HANamingService.java
                        HANamingServiceMBean.java
  Log:
   o Holy changes BatMan... OBJECT_NAME is now an ObjectName everywhere
  
  Revision  Changes    Path
  1.21      +2 -2      jbossmx/src/main/org/jboss/ha/jndi/HANamingService.java
  
  Index: HANamingService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HANamingService.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- HANamingService.java      12 Jan 2002 14:03:27 -0000      1.20
  +++ HANamingService.java      15 Feb 2002 00:46:51 -0000      1.21
  @@ -38,7 +38,7 @@
    *
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Bill Burke</a>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Sacha Labourey</a>
  - *   @version $Revision: 1.20 $
  + *   @version $Revision: 1.21 $
    *
    * <p><b>Revisions:</b><br>
    * <p><b>2001/11/19 bill burke:</b>
  @@ -102,7 +102,7 @@
   
      public ObjectName getObjectName (MBeanServer server, ObjectName name) throws 
MalformedObjectNameException
      {
  -      return new ObjectName(OBJECT_NAME);
  +      return OBJECT_NAME;
      }
      
      public String getPartitionName()
  
  
  
  1.9       +20 -18    jbossmx/src/main/org/jboss/ha/jndi/HANamingServiceMBean.java
  
  Index: HANamingServiceMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HANamingServiceMBean.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HANamingServiceMBean.java 12 Jan 2002 14:04:22 -0000      1.8
  +++ HANamingServiceMBean.java 15 Feb 2002 00:46:51 -0000      1.9
  @@ -10,6 +10,10 @@
   
   import java.net.UnknownHostException;
   
  +import javax.management.ObjectName;
  +
  +import org.jboss.util.ObjectNameFactory;
  +
   /**
    * HA-JNDI service that provides JNDI services in a clustered way.
    * Bindings are replicated cluster-wide.
  @@ -24,7 +28,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Bill Burke</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Sacha Labourey</a>
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    *
    * <p><b>Revisions:</b><br>
    */
  @@ -32,50 +36,48 @@
   public interface HANamingServiceMBean
      extends org.jboss.system.ServiceMBean
   {
  -   // Constants -----------------------------------------------------
  -   public static final String OBJECT_NAME = ":service=HANaming";
  +   ObjectName OBJECT_NAME = ObjectNameFactory.create(":service=HANaming");
       
  -   // Public --------------------------------------------------------
      /**
       * Name of the underlying partition that determine the cluster to use.
       */   
  -   public String getPartitionName();
  -   public void setPartitionName(String partitionName);
  +   String getPartitionName();
  +   void setPartitionName(String partitionName);
   
      /**
       * RmiPort to be used by the HA-JNDI service once bound. 0 => auto.
       */   
  -   public void setRmiPort(int p);
  -   public int getRmiPort();
  +   void setRmiPort(int p);
  +   int getRmiPort();
      
  -   public void setPort(int p);
  +   void setPort(int p);
      /**
       * Port on which the HA-JNDI stub is made available
       */   
  -   public int getPort();
  +   int getPort();
   
      /**
       * IP address on which the HA-JNDI stub is made available
       */   
  -   public String getBindAddress();
  -   public void setBindAddress(String host) throws UnknownHostException;
  +   String getBindAddress();
  +   void setBindAddress(String host) throws UnknownHostException;
   
      /**
       * Backlog to be used for client-server RMI invocations during JNDI queries
       */   
  -   public int getBacklog();
  -   public void setBacklog(int backlog);
  +   int getBacklog();
  +   void setBacklog(int backlog);
   
      /**
       * Client socket factory to be used for client-server RMI invocations during 
JNDI queries
       */   
  -   public String getClientSocketFactory();
  -   public void setClientSocketFactory(String factoryClassName)
  +   String getClientSocketFactory();
  +   void setClientSocketFactory(String factoryClassName)
              throws ClassNotFoundException, InstantiationException, 
IllegalAccessException;
      /**
       * Server socket factory to be used for client-server RMI invocations during 
JNDI queries
       */   
  -   public String getServerSocketFactory();
  -   public void setServerSocketFactory(String factoryClassName)
  +   String getServerSocketFactory();
  +   void setServerSocketFactory(String factoryClassName)
              throws ClassNotFoundException, InstantiationException, 
IllegalAccessException;
   }
  
  
  

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

Reply via email to