User: patriot1burke
  Date: 01/09/21 14:58:47

  Modified:    src/main/org/jboss/ha HARMIServerImpl.java
  Log:
  added logging
  
  Revision  Changes    Path
  1.3       +5 -3      jbossmx/src/main/org/jboss/ha/HARMIServerImpl.java
  
  Index: HARMIServerImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/HARMIServerImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HARMIServerImpl.java      2001/09/20 23:29:27     1.2
  +++ HARMIServerImpl.java      2001/09/21 21:58:47     1.3
  @@ -23,19 +23,20 @@
   
   {
      protected String replicantName;
  -   protected long lastSet = 0;
  +   protected long lastSet = System.currentTimeMillis();
      protected ArrayList replicants;
      protected Object handler;
      protected HashMap invokerMap = new HashMap ();
      protected HAPartition partition = null;
      protected RemoteStub myStub = null;
  +   protected Logger log;
      
      public HARMIServerImpl (HAPartition partition, String replicantName, Object 
handler) throws Exception
      {
         this.replicantName = replicantName;
         this.partition = partition;
         this.handler = handler;
  -      
  +      this.log = Logger.create(this.getClass());
         Method[] methods = handler.getClass ().getMethods ();
         
         for (int i = 0; i < methods.length; i++)
  @@ -71,6 +72,7 @@
      
      public void replicantsChanged (String key, ArrayList newReplicants)
      {
  +      log.info("replicantsChanged" + key + " to " + newReplicants.size());
         replicants = newReplicants;
         lastSet = System.currentTimeMillis ();
      }
  @@ -106,4 +108,4 @@
            throw (Exception)ite.getTargetException ();
         }
      }
  -}
  \ No newline at end of file
  +}
  
  
  

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

Reply via email to