Search in sources :

Example 21 with EndpointAllocationTaskState

use of com.vmware.photon.controller.model.tasks.EndpointAllocationTaskService.EndpointAllocationTaskState in project photon-model by vmware.

the class EndpointRemovalTaskServiceTest method createEndpointAllocationRequest.

private static EndpointAllocationTaskState createEndpointAllocationRequest(EndpointState endpoint) {
    EndpointAllocationTaskState endpointAllocationTaskState = new EndpointAllocationTaskState();
    endpointAllocationTaskState.endpointState = endpoint;
    endpointAllocationTaskState.tenantLinks = endpoint.tenantLinks;
    return endpointAllocationTaskState;
}
Also used : EndpointAllocationTaskState(com.vmware.photon.controller.model.tasks.EndpointAllocationTaskService.EndpointAllocationTaskState)

Aggregations

EndpointAllocationTaskState (com.vmware.photon.controller.model.tasks.EndpointAllocationTaskService.EndpointAllocationTaskState)21 EndpointState (com.vmware.photon.controller.model.resources.EndpointService.EndpointState)14 ServiceDocument (com.vmware.xenon.common.ServiceDocument)6 ComputeState (com.vmware.photon.controller.model.resources.ComputeService.ComputeState)4 TaskState (com.vmware.xenon.common.TaskState)4 ResourcePoolState (com.vmware.photon.controller.model.resources.ResourcePoolService.ResourcePoolState)3 Before (org.junit.Before)3 EndpointType (com.vmware.photon.controller.model.constants.PhotonModelConstants.EndpointType)2 BaseModelTest (com.vmware.photon.controller.model.helpers.BaseModelTest)2 EndpointService (com.vmware.photon.controller.model.resources.EndpointService)2 Operation (com.vmware.xenon.common.Operation)2 QueryTask (com.vmware.xenon.services.common.QueryTask)2 HashMap (java.util.HashMap)2 ComputeStatsRequest (com.vmware.photon.controller.model.adapterapi.ComputeStatsRequest)1 ComputeStats (com.vmware.photon.controller.model.adapterapi.ComputeStatsResponse.ComputeStats)1 EndpointConfigRequest (com.vmware.photon.controller.model.adapterapi.EndpointConfigRequest)1 INSTANCE_1_SELF_LINK (com.vmware.photon.controller.model.adapters.awsadapter.MockCostStatsAdapterService.INSTANCE_1_SELF_LINK)1 INSTANCE_2_SELF_LINK (com.vmware.photon.controller.model.adapters.awsadapter.MockCostStatsAdapterService.INSTANCE_2_SELF_LINK)1 AwsServices (com.vmware.photon.controller.model.adapters.awsadapter.util.AWSCsvBillParser.AwsServices)1 AWSStatsNormalizer (com.vmware.photon.controller.model.adapters.awsadapter.util.AWSStatsNormalizer)1