Examples of SnapshotStateListener


Examples of com.cloud.storage.listener.SnapshotStateListener

        stateMachine.addTransition(Snapshot.State.Copying, Event.OperationSucceeded, Snapshot.State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Copying, Event.OperationFailed, Snapshot.State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationSucceeded, Snapshot.State.Destroyed);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationFailed, State.BackedUp);

        stateMachine.registerListener(new SnapshotStateListener());
    }
View Full Code Here

Examples of com.cloud.storage.listener.SnapshotStateListener

        stateMachine.addTransition(Snapshot.State.Copying, Event.OperationSucceeded, Snapshot.State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Copying, Event.OperationFailed, Snapshot.State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationSucceeded, Snapshot.State.Destroyed);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationFailed, State.BackedUp);

        stateMachine.registerListener(new SnapshotStateListener());
    }
View Full Code Here

Examples of com.cloud.storage.listener.SnapshotStateListener

        stateMachine.addTransition(Snapshot.State.Copying, Event.OperationFailed, Snapshot.State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationSucceeded, Snapshot.State.Destroyed);
        stateMachine.addTransition(Snapshot.State.Destroying, Event.OperationFailed, State.BackedUp);
        stateMachine.addTransition(Snapshot.State.Allocated, Event.OperationFailed, State.Error);

        stateMachine.registerListener(new SnapshotStateListener());
    }
View Full Code Here

Examples of com.cloud.storage.listener.SnapshotStateListener

        _pauseInterval = 2 * NumbersUtil.parseInt(_configDao.getValue("ping.interval"), 60);

        s_logger.info("Snapshot Manager is configured.");

        _snapshotFsm = Snapshot.State.getStateMachine();
        _snapshotFsm.registerListener(new SnapshotStateListener());

        return true;
    }
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.