Package com.sun.sgs.app

Examples of com.sun.sgs.app.NameNotBoundException


    static Channel getInstance(String name) {
  ChannelImpl channelImpl = getChannelsMap().get(name);
  if (channelImpl != null) {
      return channelImpl.getWrappedChannel();
  } else {
      throw new NameNotBoundException("channel not found: " + name);
  }
    }
View Full Code Here


      ManagedObject result;
      try {
    result = context.getBinding(
        getInternalName(name, serviceBinding), forUpdate);
      } catch (NameNotBoundException e) {
    throw new NameNotBoundException(
        "Name '" + name + "' is not bound");
      }
      if (logger.isLoggable(Level.FINEST)) {
    logger.log(
        Level.FINEST,
View Full Code Here

      }
      context = getContext();
      try {
    context.removeBinding(getInternalName(name, serviceBinding));
      } catch (NameNotBoundException e) {
    throw new NameNotBoundException(
        "Name '" + name + "' is not bound");
      }
      if (logger.isLoggable(Level.FINEST)) {
    logger.log(
        Level.FINEST, "{0} tid:{1,number,#}, name:{2} returns",
View Full Code Here

     * Read lock the next name if the requested name is not bound
     * to prevent a concurrent transaction from observing a
     * different next name than this transaction would.
     */
    reportNextNameAccess(txn, name, result.getNextName(), READ);
    throw new NameNotBoundException("Name not bound: " + name);
      }
      if (logger.isLoggable(FINEST)) {
    logger.log(FINEST,
         "getBinding txn:{0}, name:{1} returns " +
         "oid:{2,number,#}",
View Full Code Here

     * from creating the name.  But the server side will only want
     * to lock existing items, so it depends on locking the next
     * name.
     */
    reportNextNameAccess(txn, name, result.getNextName(), READ);
    throw new NameNotBoundException("Name not bound: " + name);
      }
      /*
       * Write lock the next name if the binding is being removed to
       * prevent other transactions from observing its status as the next
       * binding until this transaction commits.
View Full Code Here

      ManagedObject result;
      try {
    result = context.getBinding(
        getInternalName(name, serviceBinding), forUpdate);
      } catch (NameNotBoundException e) {
    throw new NameNotBoundException(
        "Name '" + name + "' is not bound");
      }
      if (logger.isLoggable(Level.FINEST)) {
    logger.log(
        Level.FINEST,
View Full Code Here

      }
      context = getContext();
      try {
    context.removeBinding(getInternalName(name, serviceBinding));
      } catch (NameNotBoundException e) {
    throw new NameNotBoundException(
        "Name '" + name + "' is not bound");
      }
      if (logger.isLoggable(Level.FINEST)) {
    logger.log(
        Level.FINEST, "{0} tid:{1,number,#}, name:{2} returns",
View Full Code Here

     * Read lock the next name if the requested name is not bound
     * to prevent a concurrent transaction from observing a
     * different next name than this transaction would.
     */
    reportNextNameAccess(txn, name, result.getNextName(), READ);
    throw new NameNotBoundException("Name not bound: " + name);
      }
      if (logger.isLoggable(FINEST)) {
    logger.log(FINEST,
         "getBinding txn:{0}, name:{1} returns " +
         "oid:{2,number,#}",
View Full Code Here

     * from creating the name.  But the server side will only want
     * to lock existing items, so it depends on locking the next
     * name.
     */
    reportNextNameAccess(txn, name, result.getNextName(), READ);
    throw new NameNotBoundException("Name not bound: " + name);
      }
      /*
       * Write lock the next name if the binding is being removed to
       * prevent other transactions from observing its status as the next
       * binding until this transaction commits.
View Full Code Here

    static Channel getInstance(String name) {
  ChannelImpl channelImpl = getChannelsMap().get(name);
  if (channelImpl != null) {
      return channelImpl.getWrappedChannel();
  } else {
      throw new NameNotBoundException("channel not found: " + name);
  }
    }
View Full Code Here

TOP

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

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.