Package org.apache.aurora.gen.storage

Examples of org.apache.aurora.gen.storage.SaveJobInstanceUpdateEvent


    builder.add(createTransaction(Op.saveJobUpdateEvent(saveUpdateEvent)));
    storageUtil.jobUpdateStore.saveJobUpdateEvent(
        IJobUpdateEvent.build(saveUpdateEvent.getEvent()),
        saveUpdateEvent.getUpdateId());

    SaveJobInstanceUpdateEvent saveInstanceEvent =
        new SaveJobInstanceUpdateEvent(new JobInstanceUpdateEvent(), "update");
    builder.add(createTransaction(Op.saveJobInstanceUpdateEvent(saveInstanceEvent)));
    storageUtil.jobUpdateStore.saveJobInstanceUpdateEvent(
        IJobInstanceUpdateEvent.build(saveInstanceEvent.getEvent()),
        saveInstanceEvent.getUpdateId());

    builder.add(createTransaction(Op.pruneJobUpdateHistory(new PruneJobUpdateHistory(5, 10L))));
    expect(storageUtil.jobUpdateStore.pruneHistory(5, 10L)).andReturn(ImmutableSet.of("id2"));

    // NOOP LogEntry
View Full Code Here


      @Override
      protected void setupExpectations() throws Exception {
        storageUtil.expectWriteOperation();
        storageUtil.jobUpdateStore.saveJobInstanceUpdateEvent(event, UPDATE_ID);
        streamMatcher.expectTransaction(Op.saveJobInstanceUpdateEvent(
            new SaveJobInstanceUpdateEvent(event.newBuilder(), UPDATE_ID))).andReturn(position);
      }

      @Override
      protected void performMutations(MutableStoreProvider storeProvider) {
        storeProvider.getJobUpdateStore().saveJobInstanceUpdateEvent(event, UPDATE_ID);
View Full Code Here

  @Override
  public void saveJobInstanceUpdateEvent(IJobInstanceUpdateEvent event, String updateId) {
    requireNonNull(event);
    MorePreconditions.checkNotBlank(updateId);

    write(Op.saveJobInstanceUpdateEvent(new SaveJobInstanceUpdateEvent(
        event.newBuilder(),
        updateId)));
    jobUpdateStore.saveJobInstanceUpdateEvent(event, updateId);
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.storage.SaveJobInstanceUpdateEvent

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.