Examples of snapshot()


Examples of com.mongodb.DBCursor.snapshot()

        if (limit > 0)
            cursor.limit(limit);
        if (batchSize > 0)
            cursor.batchSize(batchSize);
        if (snapshotted)
            cursor.snapshot();
        if (sort != null)
            cursor.sort(sort);
        if (indexHint != null)
            cursor.hint(indexHint);
View Full Code Here

Examples of com.opengamma.engine.marketdata.MarketDataProvider.snapshot()

    return new MarketDataProviderResolver() {
      @Override
      public MarketDataProvider resolve(UserPrincipal marketDataUser, MarketDataSpecification snapshotSpec) {

        MarketDataProvider mock = mock(MarketDataProvider.class);
        when(mock.snapshot(any(MarketDataSpecification.class))).thenReturn(mock(CompositeMarketDataSnapshot.class));
        return mock;
      }
    };
  }
}
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient.snapshot()

  }

  @Override
  public LiveDataSubscriptionResponse snapshot(UserPrincipal user, LiveDataSpecification requestedSpecification, long timeout) {
    LiveDataClient underlying = identifyUnderlying(requestedSpecification);
    return underlying.snapshot(user, requestedSpecification, timeout);
  }

  @Override
  public Collection<LiveDataSubscriptionResponse> snapshot(UserPrincipal user, Collection<LiveDataSpecification> requestedSpecifications, long timeout) {
    Map<LiveDataClient, List<LiveDataSpecification>> split = splitCollection(requestedSpecifications);
View Full Code Here

Examples of com.sun.jini.reliableLog.ReliableLog.snapshot()

    ActLogHandler handler = new ActLogHandler();
    ReliableLog log = new ReliableLog(logName, handler);
    log.recover();
    Activation state = handler.getState();
    if (state == null) {
        log.snapshot();
        state = handler.getState();
    }
    state.init(log, login, config, configOptions, starter);
    if (starter == null) {
        // prevent exit
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.snapshot()

      StringBuilder message = new StringBuilder();
      NSArray<Object> arrayResult = (NSArray<Object>)result.returnValue();
      for (Object object : arrayResult) {
        if (object instanceof EOEnterpriseObject) {
          EOEnterpriseObject eo = (EOEnterpriseObject)object;
          message.append(eo.toString()).append(" | ").append(eo.snapshot()).append('\n');
        } else {
          message.append(object);
        }
      }
      return "response: \n" + message.toString().trim();
View Full Code Here

Examples of er.corebusinesslogic.ERCMailMessage.snapshot()

                    // ENHANCEME: Need to implement a waiting state to retry sending mails.
                    mailMessage.setState(ERCMailState.EXCEPTION_STATE);
                    mailMessage.setExceptionReason(e.getMessage());
                   
                    // Report the mailing error
                    ERCoreBusinessLogic.sharedInstance().reportException(e, new NSDictionary(mailMessage.snapshot(),
                                                                                    "Mail Message Snapshot"));
                } finally {
                    // The editingcontext will not have any changes if an optimistic error occurred
                    if (mailMessage.editingContext().hasChanges()) {
                        try {
View Full Code Here

Examples of er.erxtest.model.Employee.snapshot()

    Company company = Company.createCompany(ec, "Test Company");
    Employee employee = Employee.createEmployee(ec, "John", "Doe", Boolean.FALSE, company);
    Role role1 = Role.createRole(ec);
    employee.addToRoles(role1);
   
    NSDictionary<String, Object> snapshot = employee.snapshot();
    NSDictionary committedSnapshot = employee.committedSnapshot();
   
    /*
     * Snapshot should have same values as the eo and committed snapshot should be all
     * null values as eo has not yet been saved.
View Full Code Here

Examples of io.airlift.stats.Distribution.snapshot()

                completedDrivers,

                new DataSize(memoryReservation.get(), BYTE).convertToMostSuccinctDataSize(),

                queuedTime.snapshot(),
                elapsedTime.snapshot(),

                new Duration(totalScheduledTime, NANOSECONDS).convertToMostSuccinctTimeUnit(),
                new Duration(totalCpuTime, NANOSECONDS).convertToMostSuccinctTimeUnit(),
                new Duration(totalUserTime, NANOSECONDS).convertToMostSuccinctTimeUnit(),
                new Duration(totalBlockedTime, NANOSECONDS).convertToMostSuccinctTimeUnit(),
View Full Code Here

Examples of javafx.scene.Node.snapshot()

        if (node != null) {
            if (node instanceof ImageView) {
                this.imageProperty.set(((ImageView) node).getImage());
            } else {
                final WritableImage wi = node.snapshot(new SnapshotParameters(), null);
                this.imageProperty.set(wi);
            }
        }

        final double width = getImage().getWidth();
View Full Code Here

Examples of javafx.scene.canvas.Canvas.snapshot()

                                       false, CycleMethod.NO_CYCLE,
                                       new Stop(0, Color.rgb(53, 53, 53)),
                                       new Stop(1, Color.rgb(45, 45, 45))));
        CTX.fill();

        final Image PATTERN_IMAGE = CANVAS.snapshot(SNAPSHOT_PARAMETER, null);
        final ImagePattern PATTERN = new ImagePattern(PATTERN_IMAGE, 0, 0, WIDTH, HEIGHT, false);

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