Cassandra session to use for executing CQL scripts and maintaining current state.
scope of Cassandra objects manipulated by the CQL scripts.
state that this scope is in before the first CQL script is executed (i.e., before any of them are created).
ResourceTransitionFinder instance that can find resources that implement Transitions, and open each one as an InputStream.
if defined, store the current state tracking data in this keyspace, creating it if it does not exist; defaults to None, in which case the current state tracking data is stored in the Session's keyspace.
if defined, store the current state tracking data in this keyspace, creating it if it does not exist; defaults to None, in which case the current state tracking data is stored in the Session's keyspace.
Execute the given sequence of transitions in order, if the first transition starts with the current state of the scope.
Execute the given sequence of transitions in order, if the first transition starts with the current state of the scope.
IllegalArgumentException if the first transition does not start with the current state of the scope
Get the current state of this scope.
Return a non-destructive sequence of transitions (if any exists) that would migrate the scope from its current state to the given end state.
Return a sequence of transitions (if any exists) that would migrate the scope from its current state to the given end state.
If a sequence of non-destructive transitions exists from the current state to the given end state, execute them in order.
If a sequence of non-destructive transitions exists from the current state to the given end state, execute them in order.
IllegalArgumentException if no sequence of non-destructive transitions exists from the current state to the requested end state
If a sequence of transitions exists from the current state to the given end state, execute them in order.
If a sequence of transitions exists from the current state to the given end state, execute them in order.
IllegalArgumentException if no sequence of transitions exists from the current state to the requested end state
state that this scope is in before the first CQL script is executed (i.e., before any of them are created).
scope of Cassandra objects manipulated by the CQL scripts.
Cassandra session to use for executing CQL scripts and maintaining current state.
Set the current state of this scope.
ResourceTransitionFinder instance that can find resources that implement Transitions, and open each one as an InputStream.
This utility can be used to:
NOTE: The optional 'alternateCurrentStateKeySpace' may be given to specify where the scope's current state tracking data should be stored. It defaults to None, in which case this data is stored in the Session's keyspace. A common case would be accept the default and to ensure that none of the CQL migration scripts attempt to change the Session's keyspace (e.g., via a 'USE' statement). In that case the scope's current state data will be stored in the same keyspace all of its other data. However, you may optionally provide an explicit 'alternateCurrentStateKeySpace' if for some reason you do not want the current state stored in the Session's keyspace (e.g., if some of the CQL scripts do change the Session's keyspace via 'USE' statements).
Author:
Eric Evans