Package com.sun.sgs.impl.service.data.store

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


      }
      NextObjectResults results;
      try {
    results = server.nextObjectId(nodeId, last);
      } catch (IOException e) {
    throw new NetworkException(e.getMessage(), e);
      }
      if (results != null && results.callbackEvict) {
    scheduleTask(new EvictObjectTask(results.oid));
      }
      if (results == null || (nextNew != -1 && results.oid > nextNew)) {
View Full Code Here


    protected long createObjectInternal(Transaction txn) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.createObject(txnInfo.tid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    protected void markForUpdateInternal(Transaction txn, long oid) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.markForUpdate(txnInfo.tid, oid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.getObject(txnInfo.tid, oid, forUpdate);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    protected void setObjectInternal(Transaction txn, long oid, byte[] data) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.setObject(txnInfo.tid, oid, data);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.setObjects(txnInfo.tid, oids, dataArray);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    protected void removeObjectInternal(Transaction txn, long oid) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.removeObject(txnInfo.tid, oid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    protected BindingValue getBindingInternal(Transaction txn, String name) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.getBinding(txnInfo.tid, name);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.setBinding(txnInfo.tid, name, oid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.removeBinding(txnInfo.tid, name);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.data.store.NetworkException

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.