Examples of BindingValue


Examples of com.sun.sgs.impl.service.data.store.BindingValue

      if (logger.isLoggable(FINEST)) {
    logger.log(FINEST, "getBinding txn:{0}, name:{1}", txn, name);
      }
      try {
    checkNull("name", name);
    BindingValue result = super.getBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "getBinding txn:{0}, name:{1} returns " +
             "oid:{2,number,#}",
             txn, name, result.getObjectId());
    }
    return result;
      } catch (RuntimeException e) {
    throw handleException(
        txn, FINEST, e,
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

        FINEST, "setBinding txn:{0}, name:{1}, oid:{2,number,#}",
        txn, name, oid);
      }
      try {
    checkNull("name", name);
    BindingValue result = super.setBindingInternal(txn, name, oid);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "setBinding txn:{0}, name:{1}," +
             " oid:{2,number,#} returns",
             txn, name, oid);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    logger.log(
        FINEST, "removeBinding txn:{0}, name:{1}", txn, name);
      }
      try {
    checkNull("name", name);
    BindingValue result = super.removeBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "removeBinding txn:{0}, name:{1} returns {2}",
             txn, name, result);
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    private void handleGetBinding(DataStoreServer server) throws IOException {
  try {
      long tid = in.readLong();
      String name = readString();
      BindingValue result = server.getBinding(tid, name);
      out.writeBoolean(true);
      writeBindingValue(result);
      out.flush();
  } catch (Throwable t) {
      failure(t);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    private void handleSetBinding(DataStoreServer server) throws IOException {
  try {
      long tid = in.readLong();
      String name = readString();
      long oid = in.readLong();
      BindingValue result = server.setBinding(tid, name, oid);
      out.writeBoolean(true);
      writeBindingValue(result);
      out.flush();
  } catch (Throwable t) {
      failure(t);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  throws IOException
    {
  try {
      long tid = in.readLong();
      String name = readString();
      BindingValue result = server.removeBinding(tid, name);
      out.writeBoolean(true);
      writeBindingValue(result);
      out.flush();
  } catch (Throwable t) {
      failure(t);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  }
    }

    /** Read a BindingValue from input. */
    private BindingValue readBindingValue() throws IOException {
  return new BindingValue(in.readLong(), readString());
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    protected synchronized BindingValue getBindingInternal(
  Transaction txn, String name)
    {
  txn.join(this);
  if (names.containsKey(name)) {
      return new BindingValue(names.get(name), null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  Long oldValue = names.put(name, oid);
  List<Object> txnEntry = getTxnEntry(txn);
  txnEntry.add(name);
  txnEntry.add(oldValue);
  if (oldValue != null) {
      return new BindingValue(1, null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  Long oldValue = names.remove(name);
  if (oldValue != null) {
      List<Object> txnEntry = getTxnEntry(txn);
      txnEntry.add(name);
      txnEntry.add(oldValue);
      return new BindingValue(1, names.higherKey(name));
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
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.