Examples of MethodConstraints


Examples of net.jini.core.constraint.MethodConstraints

     *         does not implement <code>RemoteMethodControl</code>.
     */
    private static Landlord constrainServer(Landlord server,
  MethodConstraints constraints, Method[] mapping)
    {
  final MethodConstraints serverRefConstraints
      = ConstrainableProxyUtil.translateConstraints(constraints,
                mapping);
  final RemoteMethodControl constrainedServer =
      ((RemoteMethodControl)server).
      setConstraints(serverRefConstraints);
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

  // Same landlord, check to see if we have comparable constraints.
  if (!(lease instanceof ConstrainableLandlordLease))
      return false;

  final MethodConstraints lmc =
      ((ConstrainableLandlordLease)lease).methodConstraints;
 
  return
      ConstrainableProxyUtil.equivalentConstraints(
    methodConstraints, lmc, comparableMethodsMapArray);
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

        }

        /* Get the client constraints currently set on the server reference
   * of contained in the input proxy
   */
        final MethodConstraints mConstraints =
      inputProxyServer.getConstraints();

        /* Create a copy of the canonical server reference with its method
   * constraints replaced with the method constraints on
   * server reference of the input proxy.
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

     *         does not implement <code>RemoteMethodControl</code>.
     */
    private static OutriggerServer constrainServer(OutriggerServer server,
        MethodConstraints constraints)
    {
  final MethodConstraints serverRefConstraints
      = ConstrainableProxyUtil.translateConstraints(constraints,
                methodMapArray);
  final RemoteMethodControl constrainedServer =
      ((RemoteMethodControl)server).
      setConstraints(serverRefConstraints);
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

      throw new NullPointerException();
  } else if (!(obj instanceof RemoteMethodControl)) {
      return false;
  }
  RemoteMethodControl unverifiedProxy = (RemoteMethodControl) obj;
  MethodConstraints constraints = unverifiedProxy.getConstraints();
  TrustEquivalence trustedProxy =
      (TrustEquivalence) proxy.setConstraints(constraints);
  return trustedProxy.checkTrustEquivalence(unverifiedProxy);
    }
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

    {
  if (!(proxy instanceof RemoteMethodControl))
      throw new InvalidObjectException(
          "Proxy does not implement RemoteMethodControl");

  final MethodConstraints proxyMethodConstraints =
      ((RemoteMethodControl) proxy).getConstraints();

  if (!equivalentConstraints(methodConstraints, proxyMethodConstraints,
           mappings))
        {
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

     * unique identifier and a copy of the activator with the new specified
     * client constraints
     * @see #getConstraints
     */
    public RemoteMethodControl setConstraints(MethodConstraints constraints) {
  MethodConstraints actConstraints =
      ConstrainableProxyUtil.translateConstraints(constraints,
              methodMapping);
  RemoteMethodControl act =
      ((RemoteMethodControl) activator).setConstraints(actConstraints);
  return new ConstrainableAID((Activator) act, uid, constraints);
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

      } else if (!(obj instanceof ConstrainableAID)) {
    return false;
      }
      RemoteMethodControl act =
    (RemoteMethodControl) ((ConstrainableAID) obj).activator;
      MethodConstraints mc = act.getConstraints();
      TrustEquivalence trusted =
    (TrustEquivalence) activator.setConstraints(mc);
      return trusted.checkTrustEquivalence(act);
  }
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

   * If underlying proxy's constraints are non-null,
   * set underlying proxy to a copy of the underlying
   * proxy with null constraints.
   */
  if (uproxy instanceof RemoteMethodControl) {
      MethodConstraints uproxyConstraints =
    ((RemoteMethodControl) uproxy).getConstraints();
      if (uproxyConstraints != null) {
    uproxy = (Remote) ((RemoteMethodControl) uproxy).
        setConstraints(null);
      }
View Full Code Here

Examples of net.jini.core.constraint.MethodConstraints

     * constraints of this invocation handler, or if the underlying proxy
     * does not implement RemoteMethodControl.
     */
    private boolean hasConsistentConstraints() {
  if (uproxy instanceof RemoteMethodControl) {
      MethodConstraints uproxyConstraints =
    ((RemoteMethodControl) uproxy).getConstraints();
      return (clientConstraints == null ?
        uproxyConstraints == null :
        clientConstraints.equals(uproxyConstraints));
  } else {
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.