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

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

Best Java code snippets using rocks.inspectit.shared.all.communication.data.MemoryInformationData.getTimeStamp (Showing top 9 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

Date dataNewestDate = new Date(0);
if (!oldData.isEmpty()) {
  dataNewestDate = oldData.get(oldData.size() - 1).getTimeStamp();
    if (newestDate.before(data.get(data.size() - 1).getTimeStamp())) {
      newestDate = new Date(data.get(data.size() - 1).getTimeStamp().getTime());
    oldData.addAll(rightData);
    oldToDate = (Date) to.clone();
    if (newestDate.before(rightData.get(rightData.size() - 1).getTimeStamp())) {
      newestDate = new Date(rightData.get(rightData.size() - 1).getTimeStamp().getTime());
    oldData.addAll(timerData);
    oldToDate = (Date) to.clone();
    if (newestDate.before(timerData.get(timerData.size() - 1).getTimeStamp())) {
      newestDate = new Date(timerData.get(timerData.size() - 1).getTimeStamp().getTime());
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
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.getTimeStamp()).thenReturn(new Timestamp(time));
when(data.getCount()).thenReturn(5);
when(data.getTotalFreePhysMemory()).thenReturn(0L);
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getMaxComittedNonHeapMemorySize(), is(0L));
assertThat(memoryInformationData.getTimeStamp().getTime(), is(not(25L)));
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getTotalComittedNonHeapMemorySize(), is(24L));
assertThat(memoryInformationData.getTimeStamp().getTime(), is(25L));
origin: inspectIT/inspectIT

when(data.getTimeStamp()).thenReturn(new Timestamp(time));
when(data.getCount()).thenReturn(5);
when(data.getTotalFreePhysMemory()).thenReturn(RandomUtils.nextLong());
origin: inspectIT/inspectIT

newMemoryInformationData.setTotalComittedNonHeapMemorySize(this.memoryInformationData.getTotalComittedNonHeapMemorySize());
newMemoryInformationData.setTimeStamp(this.memoryInformationData.getTimeStamp());
rocks.inspectit.shared.all.communication.dataMemoryInformationDatagetTimeStamp

Popular methods of MemoryInformationData

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

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
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