no message

buko [2002-11-07 00:25:35]
no message
Filename
server/util/SpinLock.java
server/util/StringParser.java
server/util/TimeOutException.java
diff --git a/server/util/SpinLock.java b/server/util/SpinLock.java
deleted file mode 100644
index a04f240..0000000
--- a/server/util/SpinLock.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package psl.chime4.server.util;
-
-/**
- * A simple SpinLock that waits for some condition to be true.
- *
- * This code is borrowed heavily from Allen Holub's
- * <em>Taming Java Threads</em>.
- *
- * @author Azubuko Obele
- * @version 0.1
- **/
-public final class SpinLock
-{
-   /**
-    * A Strategy object that lets the SpinLock know when it's condition
-    * has been satisfied.
-    *
-    * @author Azubuko Obele
-    * @version 0.1
-    **/
-   public interface Condition
-   {
-      /**
-       * Determine if the condition has been met.
-       *
-       * @return <code>true</code> if the condition has been satisfied
-       *         else <code>false</code>
-       **/
-      public boolean isSatisfied();
-   }
-
-   /**
-    * Acquire the spin lock. This causes the calling thread to block until
-    * some condition is satisfied or until the timeout expires.
-    *
-    * @param condition the condition to wait for
-    * @param timeout   the maximum amount of time to wait
-    * @throws IllegalArgumentException
-    *         if <code>condition</code> is <code>false</code>
-    * @throws TimeOutException
-    *         if the timeout expires
-    * @throws InterruptedException
-    *         if another thread interrupts the wait
-    **/
-   public synchronized void acquire(Condition condition, long timeout)
-      throws TimeOutException, InterruptedException
-   {
-      // check for null
-      if (condition == null)
-      {
-         String msg = "condition cannot be null";
-         throw new IllegalArgumentException(msg);
-      }
-
-      // make sure timeout is reasonable
-      if (timeout < 0)
-      {
-         timeout = Long.MAX_VALUE;
-      }
-
-      long expiration = System.currentTimeMillis() + timeout;
-
-      // keep looping while the condition isn't satisfied
-      while (!condition.isSatisfied())
-      {
-         timeout = expiration - System.currentTimeMillis();
-
-         // check for the timeout condition
-         if (timeout <= 0)
-         {
-            throw new TimeOutException("lock timed out");
-         }
-
-         // wait for the given amount of time
-         wait(timeout);
-      }
-   }
-
-   /**
-    * Release the lock, notifying any threads waiting on the lock.
-    **/
-   public synchronized void release()
-   {
-      notify();
-   }
-}
-
diff --git a/server/util/StringParser.java b/server/util/StringParser.java
deleted file mode 100644
index 62d4d81..0000000
--- a/server/util/StringParser.java
+++ /dev/null
@@ -1,20 +0,0 @@
-
-package psl.chime4.server.util;
-
-import java.util.Hashtable;
-
-public class StringParser {
-
-    public static Hashtable parseKeyValueString(String str) {
-	return null;
-    }
-
-
-
-    public static String generateKeyValueString(Hashtable h) {
-	return null;
-    }
-
-
-
-} // end StringParser class
diff --git a/server/util/TimeOutException.java b/server/util/TimeOutException.java
deleted file mode 100644
index 4f13a1a..0000000
--- a/server/util/TimeOutException.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package psl.chime4.server.util;
-
-/**
- * An exception thrown when an operation times out.
- *
- * @author Azubuko Obele
- * @version 0.1
- **/
-public class TimeOutException extends Exception
-{
-   public TimeOutException()
-   {
-      super();
-   }
-
-   public TimeOutException(String msg)
-   {
-      super(msg);
-   }
-
-   public TimeOutException(String msg, Throwable cause)
-   {
-      super(msg, cause);
-   }
-
-   public TimeOutException(Throwable cause)
-   {
-      super(cause);
-   }
-}
\ No newline at end of file