/**
* The map of tenant cache objects by tenant id
*/
- private Map<String /* tenant id */, TenantCache> tenants = new HashMap<String, TenantCache>();
+ private Map<String /* tenant id */, TenantCache> tenants = new HashMap<>();
/**
* @return the value of providerType
public class RequestFactory {
private final EELFLogger logger = EELFManager.getInstance().getLogger(RequestFactory.class);
- final static Map<String, Supplier<HttpRequestBase>> map = new HashMap<>();
+ static final Map<String, Supplier<HttpRequestBase>> map = new HashMap<>();
static {
map.put("GET", HttpGet::new);
import java.util.ArrayList;
import java.util.List;
-import org.onap.appc.adapter.ssh.SshConnection;
-
public class SshConnectionMock implements SshConnection {
private static final int DEF_SUCCESS_STATUS = 0;
private final ITimerService timerService;
private final TaskQueueManager queueManager;
private String DEFAULT_TIMEOUT = "300000";
- private final static String RESPONSE_TIMEOUT = "client.response.timeout";
- private final static String GRACEFUL_SHUTDOWN_TIMEOUT = "client.graceful.shutdown.timeout";
+ private static final String RESPONSE_TIMEOUT = "client.response.timeout";
+ private static final String GRACEFUL_SHUTDOWN_TIMEOUT = "client.graceful.shutdown.timeout";
private boolean isForceShutdown = false;
private AtomicBoolean isGracefulShutdown = new AtomicBoolean(false);
private long shutdownTimeout;
package org.onap.appc.flow.controller.node;
-import static org.onap.appc.flow.controller.utils.FlowControllerConstants.APPC_SOUTHBOUND;
import static org.onap.appc.flow.controller.utils.FlowControllerConstants.INPUT_PARAM_RESPONSE_PREFIX;
import static org.onap.appc.flow.controller.utils.FlowControllerConstants.OUTPUT_PARAM_ERROR_MESSAGE;
import static org.onap.appc.flow.controller.utils.FlowControllerConstants.OUTPUT_PARAM_STATUS;
import java.io.Closeable;
import java.util.ArrayDeque;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Deque;
import java.util.List;
import java.util.ListIterator;
public class Constants {
- public final static String VNF_ID_PARAM_NAME = "aai.vnfID";
+ public static final String VNF_ID_PARAM_NAME = "aai.vnfID";
public static final String AAI_PREFIX_PARAM_NAME = "aai.prefix";
public static final String AAI_INPUT_DATA = "aai.input.data";
public static final String AAI_ERROR_MESSAGE = "org.onap.appc.dg.error";