Package com.sun.sgs.app

Examples of com.sun.sgs.app.ObjectNotFoundException


    {
  TxnInfo txnInfo = checkTxn(txn);
  byte[] result = oidsDb.get(
      txnInfo.dbTxn, DataEncoding.encodeLong(oid), forUpdate);
  if (result == null || isPlaceholderValue(result)) {
      throw new ObjectNotFoundException("Object not found: " + oid);
  }
  return decodeValue(result);
    }
View Full Code Here


    protected void removeObjectInternal(Transaction txn, long oid) {
  TxnInfo txnInfo = checkTxn(txn);
  byte[] key = DataEncoding.encodeLong(oid);
  boolean found = oidsDb.delete(txnInfo.dbTxn, key);
  if (!found) {
      throw new ObjectNotFoundException("Object not found: " + oid);
  }
  txnInfo.modified = true;
    }
View Full Code Here

      } finally {
    reserve.done();
      }
  }
  if (value == null) {
      throw new ObjectNotFoundException("Object not found: " + oid);
  }
  return value;
    }
View Full Code Here

        }
        if (data == null &&
      (entry.isNewlyCreated() || entry.getValue() == null))
        {
      /* Attempting to remove an already removed object */
      throw new ObjectNotFoundException(
          "Object oid:" + oid + " was not found");
        }
        context.noteModifiedObject(entry, data);
        return;
    }
View Full Code Here

  txn.join(this);
  byte[] value = oids.get(oid);
  if (value != null) {
      return value;
  } else {
      throw new ObjectNotFoundException("");
  }
    }
View Full Code Here

  if (oldValue != null) {
      List<Object> txnEntry = getTxnEntry(txn);
      txnEntry.add(oid);
      txnEntry.add(oldValue);
  } else {
      throw new ObjectNotFoundException("");
  }
    }
View Full Code Here

    {
  TxnInfo txnInfo = checkTxn(txn);
  byte[] result = oidsDb.get(
      txnInfo.dbTxn, DataEncoding.encodeLong(oid), forUpdate);
  if (result == null || isPlaceholderValue(result)) {
      throw new ObjectNotFoundException("Object not found: " + oid);
  }
  return decodeValue(result);
    }
View Full Code Here

    protected void removeObjectInternal(Transaction txn, long oid) {
  TxnInfo txnInfo = checkTxn(txn);
  byte[] key = DataEncoding.encodeLong(oid);
  boolean found = oidsDb.delete(txnInfo.dbTxn, key);
  if (!found) {
      throw new ObjectNotFoundException("Object not found: " + oid);
  }
  txnInfo.modified = true;
    }
View Full Code Here

                        (PendingTask) (service.dataService.
                        getServiceBinding(objName));
                service.cancelPeriodicTask(ptask, TaskServiceImpl.
                                                  getIdFromName(objName));
            } catch (NameNotBoundException nnbe) {
                throw new ObjectNotFoundException("task was already cancelled");
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.ObjectNotFoundException

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.