/** * {@inheritDoc} */ @Override public ThreadInformationData getClone(ThreadInformationData threadInformationData) { ThreadInformationData clone = new ThreadInformationData(); clone.setPlatformIdent(threadInformationData.getPlatformIdent()); clone.setSensorTypeIdent(threadInformationData.getSensorTypeIdent()); return clone; }
/** * {@inheritDoc} */ @Override public void setInputDefinition(InputDefinition inputDefinition) { super.setInputDefinition(inputDefinition); threadObj = new ThreadInformationData(); threadObj.setPlatformIdent(inputDefinition.getIdDefinition().getPlatformId()); dataAccessService = inputDefinition.getRepositoryDefinition().getGlobalDataAccessService(); }
/** * {@inheritDoc} */ @Override public void setInputDefinition(InputDefinition inputDefinition) { super.setInputDefinition(inputDefinition); template = new ThreadInformationData(); template.setPlatformIdent(inputDefinition.getIdDefinition().getPlatformId()); template.setSensorTypeIdent(inputDefinition.getIdDefinition().getSensorTypeId()); template.setId(-1L); dataAccessService = inputDefinition.getRepositoryDefinition().getGlobalDataAccessService(); }
ThreadInformationData collector = (ThreadInformationData) this.cut.getSystemSensorData(); collector.setPlatformIdent(1L); collector.setSensorTypeIdent(2L); collector.setCount(3);
ThreadInformationData collector = (ThreadInformationData) this.cut.getSystemSensorData(); collector.setPlatformIdent(1L); collector.setSensorTypeIdent(2L); collector.setCount(3);
/** * {@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(); }
/** * {@inheritDoc} */ @Override public SystemSensorData get() { ThreadInformationData newThreadInformationData = new ThreadInformationData(); newThreadInformationData.setPlatformIdent(this.threadInformationData.getPlatformIdent()); newThreadInformationData.setSensorTypeIdent(this.threadInformationData.getSensorTypeIdent()); newThreadInformationData.setCount(this.threadInformationData.getCount()); newThreadInformationData.setTotalDaemonThreadCount(this.threadInformationData.getTotalDaemonThreadCount()); newThreadInformationData.setMinDaemonThreadCount(this.threadInformationData.getMinDaemonThreadCount()); newThreadInformationData.setMaxDaemonThreadCount(this.threadInformationData.getMaxDaemonThreadCount()); newThreadInformationData.setTotalPeakThreadCount(this.threadInformationData.getTotalPeakThreadCount()); newThreadInformationData.setMinPeakThreadCount(this.threadInformationData.getMinPeakThreadCount()); newThreadInformationData.setMaxPeakThreadCount(this.threadInformationData.getMaxPeakThreadCount()); newThreadInformationData.setTotalThreadCount(this.threadInformationData.getTotalThreadCount()); newThreadInformationData.setMinThreadCount(this.threadInformationData.getMinThreadCount()); newThreadInformationData.setMaxThreadCount(this.threadInformationData.getMaxThreadCount()); newThreadInformationData.setTotalTotalStartedThreadCount(this.threadInformationData.getTotalTotalStartedThreadCount()); newThreadInformationData.setMinTotalStartedThreadCount(this.threadInformationData.getMinTotalStartedThreadCount()); newThreadInformationData.setMaxTotalStartedThreadCount(this.threadInformationData.getMaxTotalStartedThreadCount()); newThreadInformationData.setTimeStamp(this.threadInformationData.getTimeStamp()); return newThreadInformationData; }