Examples of ThrowThis


Examples of com.sun.jini.proxy.ThrowThis

                if(deliveryLogger.isLoggable(Level.FINEST)) {
                    deliveryLogger.log(Level.FINEST,
            "prepared listener: {0}", preparedTarget);
    }
      } catch (RemoteException e) {
                throw new ThrowThis(e);
            }
  }
  concurrentObj.writeLock();
  try {
      enableDeliveryDo(uuid, preparedTarget);
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

      operationsLogger.entering(mailboxSourceClass,
          "getServiceRegistration", regID);
  }
        ServiceRegistration reg = (ServiceRegistration)regByID.get(regID);
  if(reg == null) { // either expired or never existed
      throw new ThrowThis(
    new NoSuchObjectException("Not managing requested " +
              "registration object"));
  } else if(!ensureCurrent(reg)) { // check validity
      throw new ThrowThis(
    new NoSuchObjectException("Requested registration object" +
        "has expired"));
  }
  // Must be a valid registration at this point
        if (operationsLogger.isLoggable(Level.FINER)) {
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

                if(deliveryLogger.isLoggable(Level.FINEST)) {
                    deliveryLogger.log(Level.FINEST,
            "prepared listener: {0}", preparedTarget);
    }
      } catch (RemoteException e) {
                throw new ThrowThis(e);
            }
  }
  concurrentObj.writeLock();
  try {
      enableDeliveryDo(uuid, preparedTarget);
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

      operationsLogger.entering(mailboxSourceClass,
          "getServiceRegistration", regID);
  }
        ServiceRegistration reg = (ServiceRegistration)regByID.get(regID);
  if(reg == null) { // either expired or never existed
      throw new ThrowThis(
    new NoSuchObjectException("Not managing requested " +
              "registration object"));
  } else if(!ensureCurrent(reg)) { // check validity
      throw new ThrowThis(
    new NoSuchObjectException("Requested registration object" +
        "has expired"));
  }
  // Must be a valid registration at this point
        if (operationsLogger.isLoggable(Level.FINER)) {
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

                if(deliveryLogger.isLoggable(Level.FINEST)) {
                    deliveryLogger.log(Level.FINEST,
            "prepared listener: {0}", preparedTarget);
    }
      } catch (RemoteException e) {
                throw new ThrowThis(e);
            }
  }
  concurrentObj.writeLock();
  try {
      enableDeliveryDo(uuid, preparedTarget);
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

      operationsLogger.entering(mailboxSourceClass,
          "getServiceRegistration", regID);
  }
        ServiceRegistration reg = (ServiceRegistration)regByID.get(regID);
  if(reg == null) { // either expired or never existed
      throw new ThrowThis(
    new NoSuchObjectException("Not managing requested " +
              "registration object"));
  } else if(!ensureCurrent(reg)) { // check validity
      throw new ThrowThis(
    new NoSuchObjectException("Requested registration object" +
        "has expired"));
  }
  // Must be a valid registration at this point
        if (operationsLogger.isLoggable(Level.FINER)) {
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

     * Throw a NoSuchObjectException, wrapped in a ThrowThis, if the
     * passed set has expired. Assumes set is locked.
     */
    private static void ensureCurrent(LeaseSet set) throws ThrowThis {
  if (!isCurrent(set)) {
      throw new ThrowThis(new NoSuchObjectException("Set has expired"));
  }
    }
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

     * NoSuchObjectException, wrapped in a ThrowThis if the set can't be found
     */
    private LeaseSet getSet(Uuid id) throws ThrowThis {
  final LeaseSet rslt = (LeaseSet) setTable.get(id);
  if (rslt == null)
      throw new ThrowThis(new NoSuchObjectException("Can't find set"));
  return rslt;
    }
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

        concurrentObj.readLock();
        try {
            RegistrationInfo regInfo
                   = (RegistrationInfo)(registrationByID.get(registrationID));
            if(regInfo == null) {
                throw new ThrowThis
                        (new NoSuchObjectException("Invalid registration "
                                                   +"ID on call to "
                                                   +"getRegistrars() method"));
            }//endif
            Collection mVals = (regInfo.discoveredRegsMap).values();
View Full Code Here

Examples of com.sun.jini.proxy.ThrowThis

        concurrentObj.readLock();
        try {
            RegistrationInfo regInfo
                   = (RegistrationInfo)(registrationByID.get(registrationID));
            if(regInfo == null) {
                throw new ThrowThis
                            (new NoSuchObjectException("Invalid registration "
                                                       +"ID on call to "
                                                       +"getGroups() method"));
            }//endif
            String[] groups = null;
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.