Package org.apache.qpid.server.model

Examples of org.apache.qpid.server.model.IllegalStateTransitionException


            _state.set(State.DELETED);
            deleted();
        }
        catch(MasterStateException e)
        {
            throw new IllegalStateTransitionException("Node '" + nodeName + "' cannot be deleted when role is a master");
        }
        catch (Exception e)
        {
            throw new IllegalStateTransitionException("Unexpected exception on node '" + nodeName + "' deletion", e);
        }
    }
View Full Code Here


    }

    public void testRemoveNodeFromReplicationGroupOnIllegalStateTransitionException() throws Exception
    {
        BDBHARemoteReplicationNode<?> node = mockRemoteNode();
         doThrow(new IllegalStateTransitionException("test")).when(node).delete();

         try
        {
            _mBean.removeNodeFromGroup("remotenode");
            fail("Exception not thrown");
View Full Code Here

            setState(State.DELETED);
            deleted();
        }
        catch(MasterStateException e)
        {
            throw new IllegalStateTransitionException("Node '" + nodeName + "' cannot be deleted when role is a master");
        }
        catch (Exception e)
        {
            throw new IllegalStateTransitionException("Unexpected exception on node '" + nodeName + "' deletion", e);
        }
    }
View Full Code Here

    }

    public void testRemoveNodeFromReplicationGroupOnIllegalStateTransitionException() throws Exception
    {
        BDBHARemoteReplicationNode<?> node = mockRemoteNode();
         doThrow(new IllegalStateTransitionException("test")).when(node).delete();

         try
        {
            _mBean.removeNodeFromGroup("remotenode");
            fail("Exception not thrown");
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.IllegalStateTransitionException

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.