Codota Logo
MemoryInformationData.getCount
Code IndexAdd Codota to your IDE (free)

How to use
getCount
method
in
rocks.inspectit.shared.all.communication.data.MemoryInformationData

Best Java code snippets using rocks.inspectit.shared.all.communication.data.MemoryInformationData.getCount (Showing top 10 results out of 315)

  • Common ways to obtain MemoryInformationData
private void myMethod () {
MemoryInformationData m =
  • Codota Iconnew MemoryInformationData()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * Updates the upper plot with the given input data.
 *
 * @param memoryData
 *            the input data.
 */
private void addUpperPlotData(List<MemoryInformationData> memoryData) {
  for (MemoryInformationData data : memoryData) {
    long usedHeapMemoryAvg = (data.getTotalUsedHeapMemorySize() / data.getCount()) / 1024;
    heapMemory.add(data.getTimeStamp().getTime(), usedHeapMemoryAvg, data.getMinUsedHeapMemorySize() / 1024.0d, data.getMaxUsedHeapMemorySize() / 1024.0d, false);
  }
  heapMemory.fireSeriesChanged();
}
origin: inspectIT/inspectIT

/**
 * Updates the lower plot with the given input data.
 *
 * @param memoryData
 *            the input data.
 */
private void addLowerPlotData(List<MemoryInformationData> memoryData) {
  for (MemoryInformationData data : memoryData) {
    // TODO adjust the fractional part
    long usedNonHeapMemoryAvg = (data.getTotalUsedNonHeapMemorySize() / data.getCount()) / 1024;
    nonHeapMemory.add(data.getTimeStamp().getTime(), usedNonHeapMemoryAvg, data.getMinUsedNonHeapMemorySize() / 1024.0d, data.getMaxUsedNonHeapMemorySize() / 1024.0d, false);
  }
  nonHeapMemory.fireSeriesChanged();
}
origin: inspectIT/inspectIT

  @Test
  void countIsIncremented() {
    this.mockCollectorWithDefaults();
    this.cut.gather();
    this.cut.gather();
    MemoryInformationData collector = (MemoryInformationData) this.cut.get();
    assertThat(collector.getCount(), is(2));
  }
}
origin: inspectIT/inspectIT

@Test
public void noPlatform() throws Exception {
  when(cachedDataService.getPlatformIdentForId(PLATFORM_ID)).thenReturn(null);
  long time = RandomUtils.nextLong();
  when(data.getPlatformIdent()).thenReturn(PLATFORM_ID);
  when(data.getTimeStamp()).thenReturn(new Timestamp(time));
  when(data.getCount()).thenReturn(1);
  Collection<Builder> pointBuilderCol = builder.createBuilders(data);
  assertThat(pointBuilderCol.size(), is(1));
  Builder pointBuilder = pointBuilderCol.iterator().next();
  assertThat(getMeasurement(pointBuilder), is(Series.MemoryInformation.NAME));
  assertThat(getTime(pointBuilder), is(time));
  assertThat(getPrecision(pointBuilder), is(TimeUnit.MILLISECONDS));
  assertThat(getTags(pointBuilder), hasEntry(Series.TAG_AGENT_ID, String.valueOf(PLATFORM_ID)));
  assertThat(getTags(pointBuilder), not(hasKey(Series.TAG_AGENT_NAME)));
}
origin: inspectIT/inspectIT

when(data.getPlatformIdent()).thenReturn(PLATFORM_ID);
when(data.getTimeStamp()).thenReturn(new Timestamp(time));
when(data.getCount()).thenReturn(5);
when(data.getTotalFreePhysMemory()).thenReturn(0L);
when(data.getTotalFreeSwapSpace()).thenReturn(0L);
assertThat(getTags(pointBuilder), hasEntry(Series.TAG_AGENT_ID, String.valueOf(PLATFORM_ID)));
assertThat(getTags(pointBuilder), hasEntry(Series.TAG_AGENT_NAME, String.valueOf(AGENT_NAME)));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_COMMITTED_HEAP_MEMORY, (Object) (data.getTotalComittedHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_COMMITTED_NON_HEAP_MEMORY, (Object) (data.getTotalComittedNonHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_FREE_PHYS_MEMORY, (Object) (data.getTotalFreePhysMemory() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_FREE_SWAP_SPACE, (Object) (data.getTotalFreeSwapSpace() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_USED_HEAP_MEMORY, (Object) (data.getTotalUsedHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_USED_NON_HEAP_MEMORY, (Object) (data.getTotalUsedNonHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_HEAP_MEMORY, (Object) data.getMaxUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_HEAP_MEMORY, (Object) data.getMinUsedHeapMemorySize()));
origin: inspectIT/inspectIT

when(data.getPlatformIdent()).thenReturn(PLATFORM_ID);
when(data.getTimeStamp()).thenReturn(new Timestamp(time));
when(data.getCount()).thenReturn(5);
when(data.getTotalFreePhysMemory()).thenReturn(RandomUtils.nextLong());
when(data.getTotalFreeSwapSpace()).thenReturn(RandomUtils.nextLong());
assertThat(getTags(pointBuilder), hasEntry(Series.TAG_AGENT_ID, String.valueOf(PLATFORM_ID)));
assertThat(getTags(pointBuilder), hasEntry(Series.TAG_AGENT_NAME, String.valueOf(AGENT_NAME)));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_COMMITTED_HEAP_MEMORY, (Object) (data.getTotalComittedHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_COMMITTED_NON_HEAP_MEMORY, (Object) (data.getTotalComittedNonHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_FREE_PHYS_MEMORY, (Object) (data.getTotalFreePhysMemory() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_FREE_SWAP_SPACE, (Object) (data.getTotalFreeSwapSpace() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_USED_HEAP_MEMORY, (Object) (data.getTotalUsedHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_AVG_USED_NON_HEAP_MEMORY, (Object) (data.getTotalUsedNonHeapMemorySize() / data.getCount())));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_HEAP_MEMORY, (Object) data.getMaxUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_HEAP_MEMORY, (Object) data.getMinUsedHeapMemorySize()));
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getCount(), is(0));
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getCount(), is(3));
origin: inspectIT/inspectIT

int count = data.getCount();
long freePhysMemory = 0;
if (data.getTotalFreePhysMemory() > 0) {
origin: inspectIT/inspectIT

newMemoryInformationData.setCount(this.memoryInformationData.getCount());
rocks.inspectit.shared.all.communication.dataMemoryInformationDatagetCount

Javadoc

Gets #count.

Popular methods of MemoryInformationData

  • getMaxUsedHeapMemorySize
    Gets #maxUsedHeapMemorySize.
  • getMaxUsedNonHeapMemorySize
    Gets #maxUsedNonHeapMemorySize.
  • getMinUsedHeapMemorySize
    Gets #minUsedHeapMemorySize.
  • getMinUsedNonHeapMemorySize
    Gets #minUsedNonHeapMemorySize.
  • getTotalUsedHeapMemorySize
    Gets #totalUsedHeapMemorySize.
  • getTotalUsedNonHeapMemorySize
    Gets #totalUsedNonHeapMemorySize.
  • getPlatformIdent
  • getTimeStamp
  • getTotalComittedHeapMemorySize
    Gets #totalComittedHeapMemorySize.
  • getTotalComittedNonHeapMemorySize
    Gets #totalComittedNonHeapMemorySize.
  • getTotalFreePhysMemory
    Gets #totalFreePhysMemory.
  • getTotalFreeSwapSpace
    Gets #totalFreeSwapSpace.
  • getTotalFreePhysMemory,
  • getTotalFreeSwapSpace,
  • setPlatformIdent,
  • setSensorTypeIdent,
  • <init>,
  • getSensorTypeIdent,
  • getMaxComittedHeapMemorySize,
  • getMaxComittedNonHeapMemorySize,
  • getMaxComittedVirtualMemSize

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
  • runOnUiThread (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now