incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: incubator-altrmi/src/java/org/apache/altrmi/server/impl/socket AbstractCompleteSocketStreamServer.java
Date Mon, 10 Mar 2003 08:04:46 GMT
hammant     2003/03/10 00:04:45

  Modified:    src/java/org/apache/altrmi/common
                        AltrmiRuntimeException.java
               src/java/org/apache/altrmi/server/impl/socket
                        AbstractCompleteSocketStreamServer.java
  Log:
  Server must be started before being stopped.
  
  Revision  Changes    Path
  1.3       +5 -0      incubator-altrmi/src/java/org/apache/altrmi/common/AltrmiRuntimeException.java
  
  Index: AltrmiRuntimeException.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/common/AltrmiRuntimeException.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AltrmiRuntimeException.java	17 Feb 2003 20:28:06 -0000	1.2
  +++ AltrmiRuntimeException.java	10 Mar 2003 08:04:45 -0000	1.3
  @@ -77,6 +77,11 @@
           m_throwable = throwable;
       }
   
  +    public AltrmiRuntimeException( final String message)
  +    {
  +        this( message, null );
  +    }
  +
       /**
        * Retrieve root cause of the exception.
        *
  
  
  
  1.4       +5 -2      incubator-altrmi/src/java/org/apache/altrmi/server/impl/socket/AbstractCompleteSocketStreamServer.java
  
  Index: AbstractCompleteSocketStreamServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/socket/AbstractCompleteSocketStreamServer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractCompleteSocketStreamServer.java	10 Mar 2003 07:37:16 -0000	1.3
  +++ AbstractCompleteSocketStreamServer.java	10 Mar 2003 08:04:45 -0000	1.4
  @@ -200,8 +200,11 @@
       public void stop()
       {
   
  -        setState(SHUTTINGDOWN);
  +        if (getState() != STARTED) {
  +            throw new AltrmiRuntimeException("Server Not Started at time of stop");
  +        }
   
  +        setState(SHUTTINGDOWN);
           try
           {
               m_serverSocket.close();
  
  
  

Mime
View raw message