Examples of checkConstraints()


Examples of com.sun.jini.discovery.MulticastAnnouncement.checkConstraints()

        pending = new LookupLocator(ann.getHost(), ann.getPort());
    }
      }
      if (pending != null) {
    try {
        ann.checkConstraints();
    } catch (Exception e) {
        if (!(e instanceof InterruptedIOException)) {
      logger.log(Levels.HANDLED,
             "exception decoding multicast announcement", e);
        }
View Full Code Here

Examples of com.sun.jini.discovery.MulticastAnnouncement.checkConstraints()

    Plaintext.decodeMulticastAnnouncement(data);

            ma = new X500MulticastAnnouncement(ma, constraints, p,
                 buf.duplicate(), signed);
            if (!delayConstraintCheck) {
                ma.checkConstraints();
            }
            return ma;
        } catch (IOException e) {
            throw e;
        } catch (SecurityException e) {
View Full Code Here

Examples of com.sun.jini.discovery.MulticastRequest.checkConstraints()

      String[] groups = req.getGroups();
      if ((groups.length == 0 || overlap(memberGroups, groups)) &&
    indexOf(req.getServiceIDs(), myServiceID) < 0)
      {
    try {
        req.checkConstraints();
    } catch (Exception e) {
        if (!(e instanceof InterruptedIOException) &&
      logger.isLoggable(Levels.HANDLED))
        {
      logThrow(
View Full Code Here

Examples of com.sun.jini.discovery.MulticastRequest.checkConstraints()

      String[] groups = req.getGroups();
      if ((groups.length == 0 || overlap(memberGroups, groups)) &&
    indexOf(req.getServiceIDs(), myServiceID) < 0)
      {
    try {
        req.checkConstraints();
    } catch (Exception e) {
        if (!(e instanceof InterruptedIOException) &&
      logger.isLoggable(Levels.HANDLED))
        {
      logThrow(
View Full Code Here

Examples of com.sun.jini.discovery.MulticastRequest.checkConstraints()

      String[] groups = req.getGroups();
      if ((groups.length == 0 || overlap(memberGroups, groups)) &&
    indexOf(req.getServiceIDs(), myServiceID) < 0)
      {
    try {
        req.checkConstraints();
    } catch (Exception e) {
        if (!(e instanceof InterruptedIOException) &&
      logger.isLoggable(Levels.HANDLED))
        {
      logThrow(
View Full Code Here

Examples of com.sun.jini.discovery.MulticastRequest.checkConstraints()

      MulticastRequest mr = Plaintext.decodeMulticastRequest(data);
           
            mr = new X500MulticastRequest(mr, constraints, p, buf.duplicate(),
            signed, checker);
            if (!delayConstraintCheck) {
                mr.checkConstraints();
            }
            return mr;
  } catch (IOException e) {
      throw e;
  } catch (SecurityException e) {
View Full Code Here

Examples of net.jini.jeri.ServerCapabilities.checkConstraints()

        boolean integritySupported = ((Boolean)getConfigObject(
            Boolean.class, "integritySupported")).booleanValue();
        //Verify conflicting constraints
        boolean exceptionThrown = false;
        try {
            serverEndpoint.checkConstraints(conflictingConstraints);
        } catch (UnsupportedConstraintException e){
            exceptionThrown = true;
        }
        if (!exceptionThrown) {
            throw new TestException("Conflicting constraints"
View Full Code Here

Examples of net.jini.jeri.ServerCapabilities.checkConstraints()

                + " for " + ep);
        }
        //Verify unsupported constraints
        exceptionThrown = false;
        try {
            serverEndpoint.checkConstraints(unsupportedConstraints);
        } catch (UnsupportedConstraintException e){
            exceptionThrown = true;
        }
        if (!exceptionThrown) {
            throw new TestException("Unsupported constraints"
View Full Code Here

Examples of net.jini.jeri.ServerCapabilities.checkConstraints()

                + " for " + ep);
        }
        if (integritySupported) {
            //Verify integrity
            boolean integrityReturned = false;
            InvocationConstraints returned = serverEndpoint
                .checkConstraints(
                    new InvocationConstraints(Integrity.YES,null));
            Iterator it = returned.requirements().iterator();
            while (it.hasNext()) {
                InvocationConstraint ic = (InvocationConstraint) it.next();
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.checkConstraints()

    {
  if (constraints == null) {
      constraints = InvocationConstraints.EMPTY;
  }
  ServerEndpoint ep = getServerEndpoint(null);
  checkIntegrity(ep.checkConstraints(constraints));
    }

    // documentation inherited from UnicastDiscoveryServer
    public void handleUnicastDiscovery(UnicastResponse response,
               Socket socket,
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.