diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-05-04 14:13:59 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2020-05-04 20:31:18 +0000 |
commit | ca2b2584778bf8e18eda82469f06ef89edbbd9f6 (patch) | |
tree | 851087281b07a7c4d2a5c5bb2c703a75465cd161 /appc-adapters/appc-iaas-adapter | |
parent | 35ffaa6ff69b79151a0c6bd02686cf1db979344d (diff) |
Rename the fields to match the regular expression
Issue-ID: APPC-1859
Change-Id: Ia8ab60d61f2f077e87b9c9eb165637acf8746403
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter')
-rw-r--r-- | appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ProviderAdapterImpl.java | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ProviderAdapterImpl.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ProviderAdapterImpl.java index 1d0076913..a466d4bbf 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ProviderAdapterImpl.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ProviderAdapterImpl.java @@ -72,9 +72,9 @@ public class ProviderAdapterImpl implements ProviderAdapter { /** * The username, password, and domain to use for dynamically created connections */ - private static String DEFAULT_USER; - private static String DEFAULT_PASS; - private static String DEFAULT_DOMAIN; + private static String defaultUser; + private static String defaultPass; + private static String defaultDomain; /** * This default constructor is used as a work around because the activator wasnt getting called @@ -108,54 +108,54 @@ public class ProviderAdapterImpl implements ProviderAdapter { public Server restartServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.RESTART_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server stopServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.STOP_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server startServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.START_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server rebuildServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.REBUILD_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server terminateServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.TERMINATE_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server evacuateServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.EVACUATE_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); // pass this object's reference to EvacuateServer to allow rebuild after evacuate ((EvacuateServer) op).setProvideAdapterRef(this); return (Server) op.doOperation(params, context); @@ -164,63 +164,63 @@ public class ProviderAdapterImpl implements ProviderAdapter { public Server migrateServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.MIGRATE_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Server vmStatuschecker(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.VMSTATUSCHECK_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Stack terminateStack(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.TERMINATE_STACK); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Stack) op.doOperation(params, context); } @Override public Stack snapshotStack(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.SNAPSHOT_STACK); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Stack) op.doOperation(params, context); } @Override public Stack restoreStack(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.RESTORE_STACK); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Stack) op.doOperation(params, context); } @Override public Server lookupServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.LOOKUP_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } @Override public Image createSnapshot(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.SNAPSHOT_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Image) op.doOperation(params, context); } /** @@ -279,17 +279,17 @@ public class ProviderAdapterImpl implements ProviderAdapter { break; case Property.PROVIDER_TENANT_USERID: userId = node2.getValue(); - ProviderAdapterImpl.DEFAULT_USER = node2.getValue(); + ProviderAdapterImpl.defaultUser = node2.getValue(); break; case Property.PROVIDER_TENANT_PASSWORD: //The passwords are automatically decrpyted by the appc Configuration //class and require no additional method calls to decrypt. password = node2.getValue(); - ProviderAdapterImpl.DEFAULT_PASS = node2.getValue(); + ProviderAdapterImpl.defaultPass = node2.getValue(); break; case Property.PROVIDER_TENANT_DOMAIN: domain = node2.getValue(); - ProviderAdapterImpl.DEFAULT_DOMAIN = node2.getValue(); + ProviderAdapterImpl.defaultDomain = node2.getValue(); break; default: break; @@ -315,25 +315,25 @@ public class ProviderAdapterImpl implements ProviderAdapter { public Server attachVolume(Map<String, String> params, SvcLogicContext ctx) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.ATTACHVOLUME_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); return (Server) op.doOperation(params, ctx); } @Override public Server dettachVolume(Map<String, String> params, SvcLogicContext ctx) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.DETACHVOLUME_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); return (Server) op.doOperation(params, ctx); } @Override public Server rebootServer(Map<String, String> params, SvcLogicContext context) throws APPCException { IProviderOperation op = factory.getOperationObject(Operation.REBOOT_SERVICE); op.setProviderCache(this.providerCache); - op.setDefaultPassword(DEFAULT_PASS); - op.setDefaultUser(DEFAULT_USER); - op.setDefaultDomain(DEFAULT_DOMAIN); + op.setDefaultPassword(defaultPass); + op.setDefaultUser(defaultUser); + op.setDefaultDomain(defaultDomain); return (Server) op.doOperation(params, context); } |