Skip to content
Snippets Groups Projects
Commit 0b4ae9b6 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

minor changes

parent 85b6dc05
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,6 @@ public class ArchivingUtil { ...@@ -102,7 +102,6 @@ public class ArchivingUtil {
} }
} }
if ((archiverDevice != null) && !archiverDevice.isEmpty()) { if ((archiverDevice != null) && !archiverDevice.isEmpty()) {
String dbDriverPropertyName = getProperty(hdb, "DB_DRIVER"); String dbDriverPropertyName = getProperty(hdb, "DB_DRIVER");
String driverProperty = SystemUtils.getSystemProperty(dbDriverPropertyName); String driverProperty = SystemUtils.getSystemProperty(dbDriverPropertyName);
...@@ -117,7 +116,6 @@ public class ArchivingUtil { ...@@ -117,7 +116,6 @@ public class ArchivingUtil {
} }
} }
String racPropertyName = getProperty(hdb, "DB_RAC"); String racPropertyName = getProperty(hdb, "DB_RAC");
String racProperty = SystemUtils.getSystemProperty(racPropertyName); String racProperty = SystemUtils.getSystemProperty(racPropertyName);
if ((racProperty == null) || racProperty.isEmpty()) { if ((racProperty == null) || racProperty.isEmpty()) {
...@@ -138,14 +136,12 @@ public class ArchivingUtil { ...@@ -138,14 +136,12 @@ public class ArchivingUtil {
} }
} }
String namePropertyName = getProperty(hdb, "DB_NAME"); String namePropertyName = getProperty(hdb, "DB_NAME");
String nameProperty = SystemUtils.getSystemProperty(namePropertyName); String nameProperty = SystemUtils.getSystemProperty(namePropertyName);
if ((nameProperty == null) || nameProperty.isEmpty()) { if ((nameProperty == null) || nameProperty.isEmpty()) {
if (isRac) { if (isRac) {
nameProperty = getClassProperty(archiverDevice, "DbONSConf"); nameProperty = getClassProperty(archiverDevice, "DbONSConf");
} } else {
else {
nameProperty = getClassProperty(archiverDevice, "DbName"); nameProperty = getClassProperty(archiverDevice, "DbName");
} }
if ((nameProperty != null) && !nameProperty.isEmpty()) { if ((nameProperty != null) && !nameProperty.isEmpty()) {
...@@ -153,14 +149,12 @@ public class ArchivingUtil { ...@@ -153,14 +149,12 @@ public class ArchivingUtil {
} }
} }
String hostPropertyName = getProperty(hdb, "DB_HOST"); String hostPropertyName = getProperty(hdb, "DB_HOST");
String hostProperty = SystemUtils.getSystemProperty(hostPropertyName); String hostProperty = SystemUtils.getSystemProperty(hostPropertyName);
if ((hostProperty == null) || hostProperty.isEmpty()) { if ((hostProperty == null) || hostProperty.isEmpty()) {
if (isRac) { if (isRac) {
hostProperty = getClassProperty(archiverDevice, "DbTnsNames"); hostProperty = getClassProperty(archiverDevice, "DbTnsNames");
} } else {
else {
hostProperty = getClassProperty(archiverDevice, "DbHost"); hostProperty = getClassProperty(archiverDevice, "DbHost");
} }
if ((hostProperty != null) && !hostProperty.isEmpty()) { if ((hostProperty != null) && !hostProperty.isEmpty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment