Search in sources :

Example 1 with MockInstanceUtil

use of com.sequenceiq.it.cloudbreak.mock.MockInstanceUtil in project cloudbreak by hortonworks.

the class MockSparkServer method generateInstances.

private static Map<String, CloudVmMetaDataStatus> generateInstances() {
    Map<String, CloudVmMetaDataStatus> instanceMap = new HashMap<>();
    MockInstanceUtil mockInstanceUtil = new MockInstanceUtil(MOCK_SERVER_ADDRESS, SSH_PORT);
    mockInstanceUtil.addInstance(instanceMap, NUMBER_OF_INSTANCES);
    return instanceMap;
}
Also used : CloudVmMetaDataStatus(com.sequenceiq.cloudbreak.cloud.model.CloudVmMetaDataStatus) HashMap(java.util.HashMap) MockInstanceUtil(com.sequenceiq.it.cloudbreak.mock.MockInstanceUtil)

Aggregations

CloudVmMetaDataStatus (com.sequenceiq.cloudbreak.cloud.model.CloudVmMetaDataStatus)1 MockInstanceUtil (com.sequenceiq.it.cloudbreak.mock.MockInstanceUtil)1 HashMap (java.util.HashMap)1