Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Nov 2, 2023
1 parent a8b9c01 commit 9ebc686
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ public FireboltEngineResponse getEngine(String host, String accountId, String en
String accessToken) throws FireboltException, IOException {
String uri = createAccountUri(accountId, host, URI_SUFFIX_ACCOUNT_ENGINE_INFO_BY_ENGINE_ID + engineId);
return getResource(uri, host, accessToken, FireboltEngineResponse.class, format("The address of the engine with name %s and id %s could not be found", engineName, engineId));
// try {
// String uri = createAccountUri(accountId, host, URI_SUFFIX_ACCOUNT_ENGINE_INFO_BY_ENGINE_ID + engineId);
// getResource(uri, host, accessToken, FireboltEngineResponse.class, format("The address of the engine with name %s and id %s could not be found", engineName, engineId));
// return getResource(uri, host, accessToken, FireboltEngineResponse.class);
// } catch (FireboltException exception) {
// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) {
// throw new FireboltException(
// format("The address of the engine with name %s and id %s could not be found", engineName,
// engineId),
// exception, ExceptionType.RESOURCE_NOT_FOUND);
// } else {
// throw exception;
// }
// }
}

/**
Expand All @@ -91,17 +77,6 @@ public FireboltDefaultDatabaseEngineResponse getDefaultEngineByDatabaseName(Stri
String accessToken) throws FireboltException, IOException {
String uri = createAccountUri(accountId, host, URI_SUFFIX_DATABASE_INFO_URL + dbName);
return getResource(uri, host, accessToken, FireboltDefaultDatabaseEngineResponse.class, format("The database with the name %s could not be found", dbName));
// try {
// return getResource(uri, host, accessToken, FireboltDefaultDatabaseEngineResponse.class);
//
// } catch (FireboltException exception) {
// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) {
// throw new FireboltException(format("The database with the name %s could not be found", dbName),
// exception, ExceptionType.RESOURCE_NOT_FOUND);
// } else {
// throw exception;
// }
// }
}

/**
Expand All @@ -117,17 +92,6 @@ public FireboltEngineIdResponse getEngineId(String host, String accountId, Strin
throws FireboltException, IOException {
String uri = createAccountUri(accountId, host, URI_SUFFIX_ENGINE_AND_ACCOUNT_ID_BY_ENGINE_NAME + engineName);
return getResource(uri, host, accessToken, FireboltEngineIdResponse.class, format("The engine %s could not be found", engineName));
// try {
// String uri = createAccountUri(accountId, host, URI_SUFFIX_ENGINE_AND_ACCOUNT_ID_BY_ENGINE_NAME + engineName);
// return getResource(uri, host, accessToken, FireboltEngineIdResponse.class);
// } catch (FireboltException exception) {
// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) {
// throw new FireboltException(format("The engine %s could not be found", engineName), exception,
// ExceptionType.RESOURCE_NOT_FOUND);
// } else {
// throw exception;
// }
// }
}


Expand Down

0 comments on commit 9ebc686

Please sign in to comment.