public void actionPerformed(ActionEvent e) {
Map<String, String> splunkValue = new HashMap<String, String>();
splunkValue.put(ThunderConstant.SPLUNK_HOST_ATTRIBUTE_NAME, hostComboBox.getSelectedItem().toString());
splunkValue.put(ThunderConstant.SPLUNK_PORT_ATTRIBUTE_NAME, portTextField.getText().trim());
splunkValue.put(ThunderConstant.SPLUNK_USER_NAME_ATTRIBUTE_NAME, userNameTextField.getText().trim());
splunkValue.put(ThunderConstant.SPLUNK_PASSWORD_ATTRIBUTE_NAME, passwordField.getPasswordText().trim());
PropertiesContext.addPropertiesMap(splunkValue);
try {
MonitorController.getSplunkLogServiceMonitorRetriever().dispose();
MonitorController.getSplunkLogServiceMonitorRetriever().initialize(PropertiesContext.getProperties());
} catch (Exception ex) {
}
if (MonitorController.getSplunkLogServiceMonitorRetriever().enabled()) {
JBasicOptionPane.showMessageDialog(HandleManager.getFrame(TraceTopology.this), ConsoleLocale.getString("start_success"), SwingLocale.getString("information"), JBasicOptionPane.INFORMATION_MESSAGE);
} else {
JBasicOptionPane.showMessageDialog(HandleManager.getFrame(TraceTopology.this), ConsoleLocale.getString("start_failure"), SwingLocale.getString("error"), JBasicOptionPane.ERROR_MESSAGE);
}
}
});