Examples of NotConnectedException


Examples of com.brewtab.irc.NotConnectedException

     * @param reason The reason for quitting as given in the QUIT message
     */
    @Override
    public void quit(String reason) {
        if (!connected) {
            throw new NotConnectedException();
        }

        Message quit = new Message(MessageType.QUIT, reason);
        ChannelFuture future = connection.send(quit);

View Full Code Here

Examples of com.starlight.intrepid.exception.NotConnectedException

  private static void sendLeaseMessage( VMID vmid, int object_id, boolean renew )
    throws NotConnectedException, IOException {

    Intrepid instance = Intrepid.findInstanceWithRemoteSession( vmid );
    if ( instance == null ) {
      throw new NotConnectedException( "No instance found with connection.", vmid );
    }

    IntrepidSPI spi;
    try {
      spi = instance.getSPI();
    }
    catch ( IllegalStateException ex ) {
      throw new NotConnectedException(
        "Invalid SPI state: " + ex.getMessage(), vmid );
    }

    IMessage message;
    if ( renew ) message = new LeaseIMessage( object_id );
View Full Code Here

Examples of com.starlight.intrepid.exception.NotConnectedException

        }
        if ( instance == null ) {
                  instance = Intrepid.findInstanceWithRemoteSession( vmid );
        }
                if ( instance == null ) {
                    throw new NotConnectedException( vmid );
                }

        try {
          return instance.getRemoteCallHandler().invoke( vmid, object_id,
            method_id, persistent_name, args, method );
View Full Code Here

Examples of com.starlight.intrepid.exception.NotConnectedException

            "Session map: {}  Outbound session map: {}  VMID remap: {}  " +
            "Reconnect delay queue: {}  Active reconnections: {}",
            destination, session_map, outbound_session_map,
            vmid_remap, reconnect_delay_queue, active_reconnections );
        }
        throw new NotConnectedException( destination );
      }
    }
    finally {
      map_lock.unlock();
    }

    IoSession session = container.getSession( SEND_MESSAGE_SESSION_CONNECT_TIMEOUT );
    if ( session == null ) throw new NotConnectedException( destination );

    SessionInfo session_info = ( SessionInfo ) session.getAttribute( SESSION_INFO_KEY );


    // See if there's a test hook that would like to drop the message
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

        public int readBytes(byte[][] bytes, int len)
            throws NotConnectedException{

            if (str == null)
                throw new NotConnectedException("Input stream was closed");

            int actual = 0 ;
            if (len <= str.length()) {
                String resStr = str.substring(0, len-1) ;
                bytes[0] = resStr.getBytes() ;
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

            return readBytes(bytes, len);
        }

        public void skipBytes(int len) throws NotConnectedException {
            if (str == null)
                throw new NotConnectedException("Stream was closed.") ;

            if (len >= str.length())
                str = "" ;
            else
                str = str.substring(len) ;
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

                str = str.substring(len) ;
        }

        public void closeInput() throws NotConnectedException {
            if (str == null)
                throw new NotConnectedException("Stream was closed.") ;

            str = null ;
        }
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

            str = null ;
        }

        public int available() throws NotConnectedException {
            if (str == null)
                throw new NotConnectedException("Stream was closed.") ;

            return str.length();
        }
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

        public int readBytes(byte[][] bytes, int len)
            throws NotConnectedException{

            if (str == null)
                throw new NotConnectedException("Input stream was closed");

            int actual = 0 ;
            if (len <= str.length()) {
                String resStr = str.substring(0, len-1) ;
                bytes[0] = resStr.getBytes() ;
View Full Code Here

Examples of com.sun.star.io.NotConnectedException

            return readBytes(bytes, len);
        }

        public void skipBytes(int len) throws NotConnectedException {
            if (str == null)
                throw new NotConnectedException("Stream was closed.") ;

            if (len >= str.length())
                str = "" ;
            else
                str = str.substring(len) ;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.