Tabnine Logo
StatDetails.setMerged
Code IndexAdd Tabnine to your IDE (free)

How to use
setMerged
method
in
com.github.endoscope.storage.StatDetails

Best Java code snippets using com.github.endoscope.storage.StatDetails.setMerged (Showing top 5 results out of 315)

origin: com.github.endoscope/endoscope-storage-jdbc

protected StatDetails createDetails(String detailsId, List<GroupEntity> groups, List<StatEntity> stats) {
  StatDetails result = new StatDetails(detailsId, null);
  result.setInfo(storageInfo(null));
  groups.forEach( group -> {
    List<StatEntity> groupStats = stats.stream()
        .filter( s -> group.getId().equals(s.getGroupId()) )
        .collect(toList());
    restoreGroupStats(group, groupStats);
    Stat details = group.getMap().get(detailsId);
    result.add(details);
  });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
origin: com.github.endoscope/storage-gzip

@Override
public StatDetails stat(String id, Date from, Date to, String appGroup, String appType) {
  log.debug("Searching for stat {} from {} to {}", id, getDateFormat().format(from), getDateFormat().format(to));
  StatDetails result = new StatDetails(id, null);
  listParts().stream()
      .peek( fileInfo -> log.debug("Checking {}", fileInfo.getName()))
      .filter(fileInfo -> fileInfo.inRange(from, to))
      .peek( fileInfo -> log.debug("Matches: {}", fileInfo.getName()))
      .forEach( fileInfo -> {
        Stats stats = load(fileInfo.getName());
        Stat details = stats.getMap().get(id);
        result.add(details, stats.getStartDate(), stats.getEndDate());
      });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
origin: com.github.endoscope/endoscope-core

@Transient
public void add(Stat details){
  if( details == null ){
    return;
  }
  if( getMerged() == null ){
    setMerged(details.deepCopy(true));
  } else {
    getMerged().merge(details, true);
  }
}
origin: com.github.endoscope/core

  @Transient
  public void add(Stat details, Date startDate, Date endDate){
    if( details == null ){
      return;
    }
    if( getMerged() == null ){
      setMerged(details.deepCopy(true));
    } else {
      getMerged().merge(details, true);
    }
    getHistogram().add( new StatHistory(details, startDate, endDate) );
  }
}
origin: com.github.endoscope/storage-jdbc

@Override
public StatDetails stat(String rootName, Date from, Date to, String appGroup, String appType) {
  StatDetails result = new StatDetails(rootName, null);
  List<GroupEntity> groups = findGroupsInRange(from, to, appGroup, appType);
  loadTree(groups, rootName, from, to, appGroup, appType);
  groups.forEach(g -> {
    Stat details = g.getMap().get(rootName);
    result.add(details, g.getStartDate(),g.getEndDate());
  });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
com.github.endoscope.storageStatDetailssetMerged

Popular methods of StatDetails

  • getMerged
  • <init>
  • add
  • setInfo
    Implementation specific information.
  • getHistogram
  • getId
  • getInfo
    Implementation specific information.

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now