Examples of check()


Examples of org.apache.flink.compiler.contextcheck.ContextChecker.check()

    if (parallelism > 0 && p.getDefaultParallelism() <= 0) {
      p.setDefaultParallelism(parallelism);
    }
   
    ContextChecker checker = new ContextChecker();
    checker.check(p);
    return this.compiler.compile(p);
  }
 
 
  /**
 
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig.check()

                case MTEstablishContext.value:
                    if (log.isDebugEnabled()) log.debug("   EstablishContext");

                    contextId = contextBody.establish_msg().client_context_id;

                    identity = tssPolicy.check(SSLSessionManager.getSSLSession(ri.request_id()), contextBody.establish_msg());

                    if (identity != null) {
                        ContextManager.registerSubject(identity);
                    } else {
                        identity = defaultSubject;
View Full Code Here

Examples of org.apache.ivy.Ivy.check()

    public void doExecute() throws BuildException {
        try {
            Ivy ivy = getIvyInstance();
            if (file != null) {
                if (ivy.check(file.toURL(), resolvername)) {
                    Message.verbose("checked " + file + ": OK");
                }
            }
            for (int i = 0; i < filesets.size(); i++) {
                FileSet fs = (FileSet) filesets.get(i);
View Full Code Here

Examples of org.apache.jackrabbit.core.persistence.bundle.ConsistencyCheckerImpl.check()

        MockPersistenceManager pm = new MockPersistenceManager(Arrays.asList(bundle1, bundle2, bundle3));
        ConsistencyCheckerImpl checker = new ConsistencyCheckerImpl(pm, null);

        // run checker with fix = true
        checker.check(null, false, true, null);

        bundle1 = pm.loadBundle(bundle1.getId());
        bundle2 = pm.loadBundle(bundle2.getId());
        bundle3 = pm.loadBundle(bundle3.getId());
View Full Code Here

Examples of org.apache.jsieve.util.check.ScriptChecker.check()

            + "if address :is :all \"to\" \"elmer@hunters.example.org\" {\r\f"
            + "  fileinto \"elmer\";\r\f}\r\f";

    public void testSingleTo() throws Exception {
        ScriptChecker checker = new ScriptChecker();
        ScriptChecker.Results results = checker.check(toStream(SOLO_TO_EMAIL),
                toStream(FILTER_SCRIPT));
        if (results.getException() != null) {
            fail(results.getException().toString());
        }
        final List actionsExecuted = results.getActionsExecuted();
View Full Code Here

Examples of org.apache.lenya.ac.Policy.check()

            boolean complied = false;
           
            for (Iterator i = this.roleIds.iterator(); i.hasNext(); ) {
                String roleId = (String) i.next();
                Role role = roleManager.getRole(roleId);
                if (policy.check(identity, role) == Policy.RESULT_GRANTED) {
                    complied = true;
                }
            }

            return complied;
View Full Code Here

Examples of org.apache.oozie.action.ActionExecutor.check()

                return runningJob.isComplete();
            }
        });
        assertTrue(runningJob.isSuccessful());
        ActionExecutor ae = new JavaActionExecutor();
        ae.check(context, context.getAction());
        assertEquals("SUCCEEDED", context.getAction().getExternalStatus());
        assertNull(context.getAction().getData());

        ae.end(context, context.getAction());
        assertEquals(WorkflowAction.Status.OK, context.getAction().getStatus());
View Full Code Here

Examples of org.apache.openejb.core.BaseContext.check()

    /**
     * Insure that timer methods can be invoked for the current operation on this Context.
     */
    private void checkState() throws IllegalStateException {
        final BaseContext context = (BaseContext) deployment.get(EJBContext.class);
        context.check(BaseContext.Call.timerMethod);
    }

    /**
     * This method calls the ejbTimeout method and starts a transaction if the timeout is transacted.
     *
 
View Full Code Here

Examples of org.apache.pig.newplan.optimizer.Transformer.check()

        Rule rule = new PartitionFilterOptimizer("test");
        List<OperatorPlan> matches = rule.match(plan);
        if (matches != null) {
            Transformer transformer = rule.getNewTransformer();
            for (OperatorPlan m : matches) {
                if (transformer.check(m)) {
                    transformer.transform(m);
                }
            }
            OperatorSubPlan newPlan = (OperatorSubPlan)transformer.reportChanges();
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.RuleSet.check()

            public Object run() throws Exception
            {


                RuleSet mockRuleSet = mock(RuleSet.class);
                when(mockRuleSet.check(
                        subject,
                        Operation.ACCESS,
                        ObjectType.VIRTUALHOST,
                        ObjectProperties.EMPTY,
                        inetAddress)).thenThrow(new RuntimeException());
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.