Package net.jini.core.constraint

Examples of net.jini.core.constraint.MethodConstraints


            } else if (!(obj instanceof ConstrainableCybernodeProxy)) {
                return false;
            }
            RemoteMethodControl otherServerProxy =
                (RemoteMethodControl) ((ConstrainableCybernodeProxy)obj).cybernodeProxy;
            MethodConstraints mc = otherServerProxy.getConstraints();
            TrustEquivalence trusted = (TrustEquivalence) serverProxy.setConstraints(mc);
            return(trusted.checkTrustEquivalence(otherServerProxy));
        }
View Full Code Here


        private static CybernodeAdmin constrainServer(final CybernodeAdmin serviceAdmin, final MethodConstraints constraints) {
            java.lang.reflect.Method[] methods = CybernodeAdmin.class.getMethods();
            java.lang.reflect.Method[] methodMapping = new java.lang.reflect.Method[methods.length * 2];
            for(int i = 0; i < methodMapping.length; i++)
                methodMapping[i] = methods[i / 2];
            MethodConstraints methodConstraints = ConstrainableProxyUtil.translateConstraints(constraints, methodMapping);
            return (CybernodeAdmin)((RemoteMethodControl)serviceAdmin).setConstraints(methodConstraints);
        }
View Full Code Here

            } else if (!(obj instanceof ConstrainableCybernodeAdminProxy)) {
                return false;
            }
            RemoteMethodControl otherServerProxy =
                (RemoteMethodControl)((ConstrainableCybernodeAdminProxy)obj).cybernodeAdminProxy;
            MethodConstraints mc = otherServerProxy.getConstraints();
            TrustEquivalence trusted = (TrustEquivalence) serverProxy.setConstraints(mc);
            return(trusted.checkTrustEquivalence(otherServerProxy));
        }
View Full Code Here

        private static ProvisionMonitor constrainServer( ProvisionMonitor monitor, MethodConstraints constraints) {
            Method[] methods = ProvisionMonitor.class.getMethods();
            Method[] methodMapping = new java.lang.reflect.Method[methods.length * 2];
            for(int i = 0; i < methodMapping.length; i++)
                methodMapping[i] = methods[i / 2];
            MethodConstraints mConstraints = ConstrainableProxyUtil.translateConstraints(constraints, methodMapping);
            return ((ProvisionMonitor)((RemoteMethodControl)monitor).setConstraints(mConstraints));
        }
View Full Code Here

            } else if (!(obj instanceof ConstrainableProvisionMonitorProxy)) {
                return false;
            }
            RemoteMethodControl otherServerProxy =
                (RemoteMethodControl) ((ConstrainableProvisionMonitorProxy)obj).monitorProxy;
            MethodConstraints mc = otherServerProxy.getConstraints();
            TrustEquivalence trusted = (TrustEquivalence) serverProxy.setConstraints(mc);
            return(trusted.checkTrustEquivalence(otherServerProxy));
        }
View Full Code Here

                                                             final MethodConstraints constraints) {
            Method[] methods = ProvisionMonitorAdmin.class.getMethods();
            Method[] methodMapping = new java.lang.reflect.Method[methods.length*2];
            for(int i=0; i<methodMapping.length; i++)
                methodMapping[i] = methods[i/2];
            MethodConstraints methodConstraints = ConstrainableProxyUtil.translateConstraints(constraints, methodMapping);
            return (ProvisionMonitorAdmin)((RemoteMethodControl)serviceAdmin).setConstraints(methodConstraints);
        }
View Full Code Here

            } else if (!(obj instanceof ConstrainableProvisionMonitorAdminProxy)) {
                return false;
            }
            RemoteMethodControl otherServerProxy =
                (RemoteMethodControl)((ConstrainableProvisionMonitorAdminProxy)obj).monitorAdminProxy;
            MethodConstraints mc = otherServerProxy.getConstraints();
            TrustEquivalence trusted = (TrustEquivalence) serverProxy.setConstraints(mc);
            return(trusted.checkTrustEquivalence(otherServerProxy));
        }
View Full Code Here

TOP

Related Classes of net.jini.core.constraint.MethodConstraints

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.