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

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


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


    protected int getClassIdInternal(Transaction txn, byte[] classInfo) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.getClassId(txnInfo.tid, classInfo);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

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

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

    threadTxnInfo.set(null);
    decrementTxnCount();
      }
      return result;
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

      }
      server.commit(txnInfo.tid);
      threadTxnInfo.set(null);
      decrementTxnCount();
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

      }
      server.prepareAndCommit(txnInfo.tid);
      threadTxnInfo.set(null);
      decrementTxnCount();
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

    }
      }
      threadTxnInfo.set(null);
      decrementTxnCount();
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

           String operation)
    {
  if (e instanceof NetworkException) {
      /* Include the operation in the message */
      Throwable cause = e.getCause();
      e = new NetworkException(
    operation + " failed due to a communication problem: " +
    cause.getMessage(), cause);
  } else if (e instanceof TransactionNotActiveException && txn != null) {
      /*
       * If the transaction is not active on the server, then it may have
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.