Examples of Check


Examples of com.betfair.tornjak.monitor.active.Check

     *
     * @param monitor the Monitor
     * @return the monitored URL for this service if UrlCheck is used, or null if not
     */
    public static String getUrlFromMonitor(ActiveMethodMonitor monitor) {
        Check check = monitor.getActiveMonitor();
        if (check instanceof UrlCheck) {
            try {
                return ((UrlCheck)check).getUrlProvider().get();
            } catch (Exception e) {
                return e.getMessage();
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

    final Object module = mModuleFactory.createModule(name);
    if (!(module instanceof Check)) {
      throw new CheckstyleException(
          "TreeWalker is not allowed as a parent of " + name);
    }
    final Check c = (Check) module;
    c.contextualize(mChildContext);
    c.configure(aChildConf);
    c.init();

    registerCheck(c);
  }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

        final Object module = mModuleFactory.createModule(name);
        if (!(module instanceof Check)) {
            throw new CheckstyleException(
                "TreeWalker is not allowed as a parent of " + name);
        }
        final Check c = (Check) module;
        c.contextualize(mChildContext);
        c.configure(aChildConf);
        c.init();

        registerCheck(c);
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

        final Object module = mModuleFactory.createModule(name);
        if (!(module instanceof Check)) {
            throw new CheckstyleException(
                "TreeWalker is not allowed as a parent of " + name);
        }
        final Check c = (Check) module;
        c.contextualize(mChildContext);
        c.configure(aChildConf);
        c.init();

        registerCheck(c);
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

     */
    private void notifyBegin(DetailAST aRootAST, FileContents aContents)
    {
        final Iterator it = mAllChecks.iterator();
        while (it.hasNext()) {
            final Check check = (Check) it.next();
            check.setFileContents(aContents);
            check.beginTree(aRootAST);
        }
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

     */
    private void notifyEnd(DetailAST aRootAST)
    {
        final Iterator it = mAllChecks.iterator();
        while (it.hasNext()) {
            final Check check = (Check) it.next();
            check.finishTree(aRootAST);
        }
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

        final ArrayList visitors =
            (ArrayList) mTokenToChecks.get(
                TokenTypes.getTokenName(aAST.getType()));
        if (visitors != null) {
            for (int i = 0; i < visitors.size(); i++) {
                final Check check = (Check) visitors.get(i);
                check.visitToken(aAST);
            }
        }
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

        final ArrayList visitors =
            (ArrayList) mTokenToChecks.get(
                TokenTypes.getTokenName(aAST.getType()));
        if (visitors != null) {
            for (int i = 0; i < visitors.size(); i++) {
                final Check check = (Check) visitors.get(i);
                check.leaveToken(aAST);
            }
        }
    }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Check

     * @see com.puppycrawl.tools.checkstyle.api.FileSetCheck
     */
    public void destroy()
    {
        for (final Iterator it = mAllChecks.iterator(); it.hasNext();) {
            final Check c = (Check) it.next();
            c.destroy();
        }
        mCache.destroy();
        super.destroy();
    }
View Full Code Here

Examples of com.seyren.core.domain.Check

    }
   
    @Override
    public Response getChart(String checkId, int width, int height, String from, String to, boolean hideThresholds, boolean hideLegend, boolean hideAxes) {
       
        Check check = checksStore.getCheck(checkId);
        if (check == null) {
            return Response.status(Status.NOT_FOUND).build();
        }
       
        String target = check.getTarget();
       
        if (hideThresholds) {
            return getChart(target, width, height, from, to, null, null, hideLegend, hideAxes);
        } else {
            return getChart(target, width, height, from, to, check.getWarn(), check.getError(), hideLegend, hideAxes);
        }
       
    }
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.