Package com.starlight.intrepid.exception

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


        }
        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

            "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

TOP

Related Classes of com.starlight.intrepid.exception.NotConnectedException

Copyright © 2018 www.massapicom. 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.