use of com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory in project coprhd-controller by CoprHD.
the class ScaleIORestClientTest method setUp.
@BeforeClass
public static void setUp() {
ScaleIORestClientFactory factory = new ScaleIORestClientFactory();
factory.setMaxConnections(100);
factory.setMaxConnectionsPerHost(100);
factory.setNeedCertificateManager(false);
factory.setSocketConnectionTimeoutMs(3600000);
factory.setConnectionTimeoutMs(3600000);
factory.init();
String endpoint = ScaleIOConstants.getAPIBaseURI(HOST, PORT);
restClient = (ScaleIORestClient) factory.getRESTClient(URI.create(endpoint), USER, PASSWORD, true);
}
use of com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory in project coprhd-controller by CoprHD.
the class StorageSystemDataCollectionServiceTest method setUp.
@BeforeClass
public static void setUp() {
service = new StorageSystemDataCollectionService();
factory = new ScaleIORestClientFactory();
factory.setMaxConnections(100);
factory.setMaxConnectionsPerHost(100);
factory.setNeedCertificateManager(false);
factory.setSocketConnectionTimeoutMs(3600000);
factory.setConnectionTimeoutMs(3600000);
factory.init();
}
Aggregations