Examples of SlobId


Examples of com.google.walkaround.slob.shared.SlobId

  @Override
  public MutateResult mutateObject(ServerMutateRequest req)
      // TODO(ohler): Actually throw SlobNotFoundException.
      throws SlobNotFoundException, IOException, AccessDeniedException {
    SlobId objectId = new SlobId(req.getSession().getObjectId());
    accessChecker.checkCanModify(objectId);
    Preconditions.checkArgument(req.getVersion() != 0,
        // NOTE(ohler): In Google Wave, there were security concerns around
        // creating objects by submitting deltas against version 0.  I'm not
        // sure Walkaround has the same problems, but let's disallow it anyway.
View Full Code Here

Examples of com.google.walkaround.slob.shared.SlobId

  public ServerMutateResponse mutateObject(ServerMutateRequest req) throws IOException {
    // TODO(danilatos): Document strategy.

    ServerMutateResponse result;
    SlobId objectId = new SlobId(req.getSession().getObjectId());

    if (numStoreServers == 0) {
      monitoring.incrementCounter("affinity-backends-disabled");
      result = localProcessor.mutateObject(req);
    } else {
View Full Code Here

Examples of com.google.walkaround.slob.shared.SlobId

    List<Pair<Long, String>> items = Lists.newArrayList();
    String snapshot = "";

    if (!id.isEmpty()) {
      try {
        SlobId objectId = new SlobId(id);
        CheckedTransaction tx = datastore.beginTransaction();
        try {
          MutationLog mutationLog = storeSelector.get(storeType).getMutationLogFactory()
              .create(tx, objectId);
          objectVersion = mutationLog.getVersion();
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.