Remove data source status from management API response
@@ -46,7 +46,6 @@ public class DataSourceResource implements MiApiResource {
private static final String DESCRIPTION = "description";
private static final String JNDIConfig = "jndiConfig";
private static final String TYPE = "type";
- private static final String STATUS = "status";
private static final String DRIVER = "driverClass";
private static final String URL = "url";
private static final String USER_NAME = "userName";
@@ -153,7 +152,6 @@ public class DataSourceResource implements MiApiResource {
DataSourceMetaInfo dataSourceMetaInfo = dataSource.getDSMInfo();
datasourceInformation.put(Constants.NAME, dataSourceMetaInfo.getName());
datasourceInformation.put(DESCRIPTION, dataSourceMetaInfo.getDescription());
- datasourceInformation.put(STATUS, dataSource.getDSStatus().getMode());
datasourceInformation.put(TYPE, dataSourceMetaInfo.getDefinition().getType());
datasourceInformation.put(Constants.SYNAPSE_CONFIGURATION, DataSourceUtils.
elementToString((Element) dataSource.getDSMInfo().getDefinition().getDsXMLConfiguration()));
