commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trei...@apache.org
Subject cvs commit: jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid NodeManagerImpl.java
Date Mon, 31 May 2004 07:01:22 GMT
treilly     2004/05/31 00:01:22

  Modified:    id/src/java/org/apache/commons/id/uuid NodeManagerImpl.java
  Log:
  catch IOException
  
  Revision  Changes    Path
  1.4       +7 -2      jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/NodeManagerImpl.java
  
  Index: NodeManagerImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/NodeManagerImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NodeManagerImpl.java	28 Apr 2004 03:09:06 -0000	1.3
  +++ NodeManagerImpl.java	31 May 2004 07:01:22 -0000	1.4
  @@ -15,6 +15,7 @@
    */
   package org.apache.commons.id.uuid;
   
  +import java.io.IOException;
   import java.util.Iterator;
   import java.util.Set;
   
  @@ -91,7 +92,11 @@
           }
           // See if we need to store state information.
           if ((lastUUIDTimeStored + nodeState.getSynchInterval()) > (findMaxTimestamp()
/ Clock.INTERVALS_PER_MILLI)) {
  -            nodeState.store(nodesSet);
  +            try {
  +                nodeState.store(nodesSet);
  +            } catch (IOException ioe) {
  +               //@TODO add listener and send notify
  +            }
           }
           return allNodes[currentNodeIndex];
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message