Class UiModel
- java.lang.Object
-
- org.opennms.features.vaadin.jmxconfiggenerator.data.UiModel
-
public class UiModel extends Object
This class wraps theJmxDatacollectionConfigand provides some methods to make life a little easier. So in the future we may support multiple data soruces (and therefore multiple JmxDatacollectionConfigs), and so on. Or we find out, that we do not need this class, then we will remove it.- Author:
- Markus von RĂ¼den
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUiModel.OutputDataKey
-
Constructor Summary
Constructors Constructor Description UiModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectdConfigurationgetCollectdConfiguration()Creates a CollectdConfiguration snippet depending on the data saved here.JmxDatacollectionConfiggetOutputConfig()Map<UiModel.OutputDataKey,String>getOutputMap()JmxDatacollectionConfiggetRawModel()ServiceConfiggetServiceConfig()StringgetServiceName()voidsetJmxDataCollectionAccordingToSelection(JmxDatacollectionConfig outputConfig)voidsetOutput(UiModel.OutputDataKey output, String value)UiModelsetRawModel(JmxDatacollectionConfig rawModel)Set the real model and get the data we need out of itvoidsetServiceConfig(ServiceConfig serviceConfig)voidsetSnmpGraphProperties(String generatedSnmpGraphProperties)voidupdateOutput()
-
-
-
Method Detail
-
setRawModel
public UiModel setRawModel(JmxDatacollectionConfig rawModel)
Set the real model and get the data we need out of it
-
getRawModel
public JmxDatacollectionConfig getRawModel()
-
getServiceName
public String getServiceName()
-
setOutput
public void setOutput(UiModel.OutputDataKey output, String value)
-
getOutputMap
public Map<UiModel.OutputDataKey,String> getOutputMap()
-
getServiceConfig
public ServiceConfig getServiceConfig()
-
setJmxDataCollectionAccordingToSelection
public void setJmxDataCollectionAccordingToSelection(JmxDatacollectionConfig outputConfig)
-
getOutputConfig
public JmxDatacollectionConfig getOutputConfig()
-
updateOutput
public void updateOutput()
-
setSnmpGraphProperties
public void setSnmpGraphProperties(String generatedSnmpGraphProperties)
-
setServiceConfig
public void setServiceConfig(ServiceConfig serviceConfig)
-
getCollectdConfiguration
public CollectdConfiguration getCollectdConfiguration()
Creates a CollectdConfiguration snippet depending on the data saved here.- Returns:
- The CollecdConfiguration snippet depending on the data saved in this model.
-
-