Class UiModel
- java.lang.Object
-
- org.opennms.features.vaadin.jmxconfiggenerator.data.UiModel
-
public class UiModel extends Object
This class wraps theJmxDatacollectionConfig
and 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 class
UiModel.OutputDataKey
-
Constructor Summary
Constructors Constructor Description UiModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectdConfiguration
getCollectdConfiguration()
Creates a CollectdConfiguration snippet depending on the data saved here.JmxDatacollectionConfig
getOutputConfig()
Map<UiModel.OutputDataKey,String>
getOutputMap()
JmxDatacollectionConfig
getRawModel()
ServiceConfig
getServiceConfig()
String
getServiceName()
void
setJmxDataCollectionAccordingToSelection(JmxDatacollectionConfig outputConfig)
void
setOutput(UiModel.OutputDataKey output, String value)
UiModel
setRawModel(JmxDatacollectionConfig rawModel)
Set the real model and get the data we need out of itvoid
setServiceConfig(ServiceConfig serviceConfig)
void
setSnmpGraphProperties(String generatedSnmpGraphProperties)
void
updateOutput()
-
-
-
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.
-
-