/** * {@inheritDoc} */ @Override public CpuInformationData getClone(CpuInformationData cpuInformationData) { CpuInformationData clone = new CpuInformationData(); clone.setPlatformIdent(cpuInformationData.getPlatformIdent()); clone.setSensorTypeIdent(cpuInformationData.getSensorTypeIdent()); return clone; }
/** * {@inheritDoc} */ @Override public void setInputDefinition(InputDefinition inputDefinition) { super.setInputDefinition(inputDefinition); cpuObj = new CpuInformationData(); cpuObj.setPlatformIdent(inputDefinition.getIdDefinition().getPlatformId()); dataAccessService = inputDefinition.getRepositoryDefinition().getGlobalDataAccessService(); }
processor.process(new CpuInformationData(), entityManager); verifyZeroInteractions(buffer, entityManager);
processor.process(new CpuInformationData(), entityManager); verifyZeroInteractions(log, indexingTree, entityManager);
/** * {@inheritDoc} */ @Override public void setInputDefinition(InputDefinition inputDefinition) { super.setInputDefinition(inputDefinition); template = new CpuInformationData(); template.setPlatformIdent(inputDefinition.getIdDefinition().getPlatformId()); template.setSensorTypeIdent(inputDefinition.getIdDefinition().getSensorTypeId()); template.setId(-1L); dataAccessService = inputDefinition.getRepositoryDefinition().getGlobalDataAccessService(); }
/** * {@inheritDoc} */ @Override public SystemSensorData get() { CpuInformationData newCpuInformationData = new CpuInformationData(); newCpuInformationData.setPlatformIdent(this.cpuInformationData.getPlatformIdent()); newCpuInformationData.setSensorTypeIdent(this.cpuInformationData.getSensorTypeIdent()); newCpuInformationData.setCount(this.cpuInformationData.getCount()); newCpuInformationData.setProcessCpuTime(this.cpuInformationData.getProcessCpuTime()); newCpuInformationData.setTotalCpuUsage(this.cpuInformationData.getTotalCpuUsage()); newCpuInformationData.setMinCpuUsage(this.cpuInformationData.getMinCpuUsage()); newCpuInformationData.setMaxCpuUsage(this.cpuInformationData.getMaxCpuUsage()); newCpuInformationData.setTimeStamp(this.cpuInformationData.getTimeStamp()); return newCpuInformationData; }
/** * {@inheritDoc} */ @Override public void setInputDefinition(InputDefinition inputDefinition) { super.setInputDefinition(inputDefinition); long platformId = inputDefinition.getIdDefinition().getPlatformId(); systemObj = new SystemInformationData(); systemObj.setPlatformIdent(platformId); classLoadingObj = new ClassLoadingInformationData(); classLoadingObj.setPlatformIdent(platformId); cpuObj = new CpuInformationData(); cpuObj.setPlatformIdent(platformId); compilationObj = new CompilationInformationData(); compilationObj.setPlatformIdent(platformId); memoryObj = new MemoryInformationData(); memoryObj.setPlatformIdent(platformId); runtimeObj = new RuntimeInformationData(); runtimeObj.setPlatformIdent(platformId); threadObj = new ThreadInformationData(); threadObj.setPlatformIdent(platformId); dataAccessService = inputDefinition.getRepositoryDefinition().getGlobalDataAccessService(); }