Examples of Level


Examples of com.dianping.cat.home.alert.policy.entity.Level

    }
  }

  public List<AlertChannel> queryChannels(String typeName, String groupName, String levelName) {
    try {
      Level level = queryLevel(typeName, groupName, levelName);
      if (level == null) {
        return new ArrayList<AlertChannel>();
      } else {
        String send = level.getSend();
        String[] sends = send.split(",");
        List<AlertChannel> channels = new ArrayList<AlertChannel>();

        for (String str : sends) {
          AlertChannel channel = AlertChannel.findByName(str);
View Full Code Here

Examples of com.github.jmkgreen.morphia.mapping.validation.ConstraintViolation.Level

            }
        }

        if (!ve.isEmpty()) {
            ConstraintViolation worst = ve.iterator().next();
            Level maxLevel = worst.getLevel();
            if (maxLevel.ordinal() >= Level.FATAL.ordinal()) {
                throw new ConstraintViolationException(ve);
            }

            // sort by class to make it more readable
            ArrayList<LogLine> l = new ArrayList<LogLine>();
View Full Code Here

Examples of com.google.apphosting.api.ApiProxy.LogRecord.Level

    calendar.clear();
    calendar.set(2000, 11, 31, 13, 15);

    final long myTime = calendar.getTimeInMillis();
    final String myMsg = "Message";
    final Level myLevel = Level.info;

    // The timestamp of GAE LogRecord unit is microsecond.
    LogRecord logRecord = new LogRecord(myLevel, myTime * 1000, myMsg);

    final StringBuilder called = new StringBuilder();
    WjrGAEProdLogRecorder recorder = new WjrGAEProdLogRecorder() {
      @Override
      protected String formatLog(long millis, String level, String msg) {
        assertThat(millis, is(myTime));
        assertThat(level, is(myLevel.name()));
        assertThat(msg, is(myMsg));
        called.append("1");
        return super.formatLog(millis, level, msg);
      }
    };
View Full Code Here

Examples of com.google.gwt.gen2.logging.shared.Level

    control.setWidget(0, 1, loggingMessage);
    Iterator<Level> levels = Log.levelIterator();
    final DropDownListBox<Level> levelList = new DropDownListBox<Level>();

    while (levels.hasNext()) {
      final Level level = levels.next();
      if (level != Level.ALL || level != Level.OFF) {
        levelList.addItem(level.getName(), level, "logging level "
            + level.getName().toLowerCase(), "use <b> "
            + level.getName().toLowerCase() + "</b> level");
      }
    }
    control.setWidget(0, 2, levelList);
    levelList.setValue(Level.INFO);
View Full Code Here

Examples of com.google.gwt.libideas.logging.shared.Level

      }
    }
  }

  public Level parse(String levelName) {
    Level value = null;
    if (levels != null) {
      value = (Level) levels.get(levelName);
    }
    if (value == null) {
      throw new IllegalArgumentException(levelName + " is not a known Level");
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.level.Level

    }
   
    //init here
    manager=new TutorialManager(MEngine.getAssetManager().getJson("configs/tutorial_configs.json"),
        getGameWidth(),getGameHeight(),2,TASK_HANDLERS);
    this.level=new Level(MEngine.getAssetManager().getJson("levels/tutorial_level.json"),
     new Point(getGameWidth()/2.0,getGameHeight()/2.0));
    this.creator=new Creator(level);
   
    creator.build(new GameOverCallback(){
View Full Code Here

Examples of com.googlecode.jsendnsca.core.Level

    private String hostName = "localhost";

    public void notify(EventObject eventObject) throws Exception {
        // create message payload to send
        String message = eventObject.toString();
        Level level = determineLevel(eventObject);
        MessagePayload payload = new MessagePayload(getHostName(), level.ordinal(), getServiceName(), message);

        if (log.isInfoEnabled()) {
            log.info("Sending notification to Nagios: " + payload.getMessage());
        }
        sender.send(payload);
View Full Code Here

Examples of com.googlecode.jumpnevolve.game.Level

  public static void main(String[] args) {

    SlickEngine engine = SlickEngine.getInstance();
    engine.setTargetFrameRate(100);

    Level level = Levelloader
        .asyncLoadLevel("resources/levels/up-to-the-sky.txt");
    engine.switchState(level);

    engine.start();
  }
View Full Code Here

Examples of com.happyprog.tdgotchi.level.Level

  public void onChangeLevel_updatesObserverWithNewMoodImage() throws Exception {
    when(level.getNormalMood()).thenReturn(DEFAULT_MOOD);

    tamagotchi.start();

    Level newLevel = mock(Level.class);
    when(newLevel.getNormalMood()).thenReturn(new Image[] { HAPPY1 });

    tamagotchi.onImageSetCallback();
    tamagotchi.setLevel(newLevel);
    tamagotchi.onImageSetCallback();
View Full Code Here

Examples of com.madgnome.jira.plugins.jirachievements.data.ao.Level

  }

  @Override
  public Level getOrCreate(Category category, int number, StatisticRefEnum statisticRefEnum, int min, int max)
  {
    Level level = get(category, number);

    return level == null ? create(category, number, statisticRefEnum, min, max) : level;
  }
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.