Package de.scoopgmbh.copper.monitoring.core.model

Examples of de.scoopgmbh.copper.monitoring.core.model.LogEvent


    {
      Output output = new Output(1024);
      final AdapterWfLaunchInfo object = new AdapterWfLaunchInfo();
      object.setAdapterName("abc");
      kryo.writeClassAndObject(output, object);
      kryo.writeClassAndObject(output, new LogEvent());
      assertTrue(output.getBuffer().length>0);
     
      Input input = new Input(output.getBuffer());
      assertEquals(AdapterWfLaunchInfo.class, kryo.readClassAndObject(input).getClass());
      assertEquals(LogEvent.class, kryo.readClassAndObject(input).getClass());
View Full Code Here


    final MonitoringDataAccesor monitoringDataAccesor = new MonitoringDataAccesor(monitoringDataStorage);
    final MonitoringDataAdder monitoringDataAdder = new MonitoringDataAdder(monitoringDataStorage);
    final AdapterWfLaunchInfo adapterWfLaunch = new AdapterWfLaunchInfo();
    adapterWfLaunch.setTimestamp(new Date());
    monitoringDataAdder.addMonitoringData(adapterWfLaunch);
    final LogEvent logEvent = new LogEvent();
    logEvent.setTime(new Date());
    monitoringDataAdder.addMonitoringData(logEvent);
   
    assertEquals(1, monitoringDataAccesor.getList(new TypeFilter<AdapterWfLaunchInfo>(AdapterWfLaunchInfo.class), null, null, 1000).size());
    assertEquals(1, monitoringDataAccesor.getList(new TypeFilter<LogEvent>(LogEvent.class), null, null, 1000).size());
  }
View Full Code Here

  public void submitLogEvent(final Date date, final String level, final String locationInformation,final String message) {
    monitoringQueue.offer(new MonitoringDataAwareRunnable() {
      @Override
      public void run() {
        dropSilently=true;
        monitoringDataAdder.addMonitoringData(new LogEvent(date,message,locationInformation,level));
      }
    });
  }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.core.model.LogEvent

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.