public void addMasterState(MasterState state) {
		checkNotNull(state);

		synchronized (lock) {
			if (!discarded) {
				masterState.add(state);
			}
		}
	}
public void addMasterState ( MasterState state ) { checkNotNull ( state ) ; synchronized ( lock ) { if ( ! discarded ) { masterState . add ( state ) ; } } }
Adds a master state (state generated on the checkpoint coordinator) to
the pending checkpoint.

@param state The state to add