Package org.apache.aurora.gen.storage

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


    builder.add(createTransaction(Op.saveJobUpdate(saveUpdate)));
    storageUtil.jobUpdateStore.saveJobUpdate(
        IJobUpdate.build(saveUpdate.getJobUpdate()),
        Optional.of(saveUpdate.getLockToken()));

    SaveJobUpdateEvent saveUpdateEvent = new SaveJobUpdateEvent(new JobUpdateEvent(), "update");
    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(
View Full Code Here


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

      @Override
View Full Code Here

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

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

TOP

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

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.