Class UiModel
- java.lang.Object
-
- org.opennms.features.vaadin.jmxconfiggenerator.data.UiModel
-
public class UiModel extends java.lang.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()
java.util.Map<UiModel.OutputDataKey,java.lang.String>
getOutputMap()
JmxDatacollectionConfig
getRawModel()
ServiceConfig
getServiceConfig()
java.lang.String
getServiceName()
void
setJmxDataCollectionAccordingToSelection(JmxDatacollectionConfig outputConfig)
void
setOutput(UiModel.OutputDataKey output, java.lang.String value)
UiModel
setRawModel(JmxDatacollectionConfig rawModel)
Set the real model and get the data we need out of itvoid
setServiceConfig(ServiceConfig serviceConfig)
void
setSnmpGraphProperties(java.lang.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 java.lang.String getServiceName()
-
setOutput
public void setOutput(UiModel.OutputDataKey output, java.lang.String value)
-
getOutputMap
public java.util.Map<UiModel.OutputDataKey,java.lang.String> getOutputMap()
-
getServiceConfig
public ServiceConfig getServiceConfig()
-
setJmxDataCollectionAccordingToSelection
public void setJmxDataCollectionAccordingToSelection(JmxDatacollectionConfig outputConfig)
-
getOutputConfig
public JmxDatacollectionConfig getOutputConfig()
-
updateOutput
public void updateOutput()
-
setSnmpGraphProperties
public void setSnmpGraphProperties(java.lang.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.
-
-