Package org.omg.CORBA

Examples of org.omg.CORBA.TRANSIENT


    }

    @Override
    public void send_TRANSIENT_exception() {
        // TODO Auto-generated method stub
        throw new TRANSIENT(0, CompletionStatus.COMPLETED_MAYBE);
    }
View Full Code Here


                .createControl(StructuredPushConsumer.class);
        StructuredPushConsumer mockStructuredPushConsumer = (StructuredPushConsumer) controlStructuredPushConsumer
                .getMock();

        mockStructuredPushConsumer.push_structured_event(event);
        controlStructuredPushConsumer.setThrowable(new TRANSIENT());

        controlStructuredPushConsumer.replay();

        objectUnderTest_.connect_structured_push_consumer(mockStructuredPushConsumer);
View Full Code Here

    @Test
    public void testTryOperationsThrowsException() throws Exception
    {
        mockPullCoffee_.try_drinking_coffee(null, null);
        controlPullCoffeeOperations_.setMatcher(MockControl.ALWAYS_MATCHER);
        controlPullCoffeeOperations_.setThrowable(new TRANSIENT());

        mockPullCoffee_.try_cancel_coffee(null);
        controlPullCoffeeOperations_.setMatcher(new AbstractMatcher()
        {
            public boolean matches(Object[] arg0, Object[] arg1)
View Full Code Here

       
        StructuredPushReceiver _receiver = new StructuredPushReceiver(setup.getClientOrb())
        {
            public void push_structured_event(StructuredEvent event)
            {
                throw new TRANSIENT();
            }
           
            public void disconnect_structured_push_consumer()
            {
                super.disconnect_structured_push_consumer();
View Full Code Here

        // start a receiver thread
        AnyPushReceiver _receiver = new AnyPushReceiver(setup.getClientOrb())
        {
            public void push(Any any)
            {
                throw new TRANSIENT();
            }

            public void disconnect_push_consumer()
            {
                super.disconnect_push_consumer();
View Full Code Here

                selectorManager.add (request);
                request.waitOnCompletion (nanoDeadline);

                if (request.status == SelectorRequest.Status.IOERROR)
                {
                    throw new TRANSIENT ("unable to connect");
                }
                else if (request.status == SelectorRequest.Status.EXPIRED ||
                    !request.isFinalized())
                {
                    throw new TIMEOUT("connection timeout expired");
View Full Code Here

        mockConsumer_.destroy();

        controlConsumer_.replay();

        mockPushOperation_.invokePush();
        controlPushOperation_.setThrowable(new TRANSIENT());

        mockPushOperation_.dispose();

        controlPushOperation_.replay();
View Full Code Here

        controlConsumer_.setReturnValue(false);

        mockConsumer_.destroy();

        mockPushOperation_.invokePush();
        controlPushOperation_.setDefaultThrowable(new TRANSIENT());
        mockPushOperation_.dispose();

        replayAll();

        ((TaskProcessorRetryStrategy) objectUnderTest_).doPush();
View Full Code Here

        mockConsumer_.isRetryAllowed();
        controlConsumer_.setDefaultReturnValue(true);

        mockPushOperation_.invokePush();
        controlPushOperation_.setThrowable(new TRANSIENT());

        mockTaskProcessor_.executeTaskAfterDelay(0, null);
        controlTaskProcessor_.setMatcher(MockControl.ALWAYS_MATCHER);
        controlTaskProcessor_.setReturnValue(mockScheduledResult_);
View Full Code Here

    ///////////////////////////////////////////////////////////
   
    public static final int POA_REQUEST_DISCARD = OMGVMCID.value + 1 ;
   
    public TRANSIENT poaRequestDiscard( CompletionStatus cs, Throwable t ) {
        TRANSIENT exc = new TRANSIENT( POA_REQUEST_DISCARD, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.poaRequestDiscard",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

TOP

Related Classes of org.omg.CORBA.TRANSIENT

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.