public class BackendVmResource extends AbstractBackendActionableResource<VM,VM> implements VmResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendVmResource.UpdateParametersProvider |
AbstractBackendSubResource.ParametersProvider<R,Q>
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
guid, id, STRICTLY_IMMUTABLE
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, LOG, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
BackendVmResource(String id,
BackendVmsResource parent) |
actionAsync, actionFailure, actionStatus, actionSuccess, awaitGrace, doAction, expectBlocking, getHostId, getHostId, handleError
getEntity, getStrictlyImmutable, performGet, performGet, performUpdate, performUpdate, validateUpdate
addLinks, addLinks, addLinks, addLinks, addOrUpdateLink, addParents, asCollection, asGuidOr404, asString, awaitCompletion, delay, entityNotFound, getAsynchronousStatus, getMapper, getMappingLocator, getQueryParams, incomplete, inject, injectSearchLinks, linkSubCollections, linkSubResource, map, map, map, map, newModel, notFound, notFound, removeIfExist, setMappingLocator, urlEncode
doAction, doGetEntity, doNonBlockingAction, expectNonBlocking, getBackendCollection, getConfigurationValue, getEntity, getEntity, getEntity, performAction, performAction, performNonBlockingAction
asCollection, asGuid, asGuid, combine, fault, getBackend, getCurrent, getEffectiveLocale, getHttpHeaders, getMessageBundle, getSessionHelper, getUriInfo, handleError, handleError, instantiate, localize, localize, localize, sessionize, sessionize, setBackend, setHttpHeaders, setMessageBundle, setSessionHelper, setUriInfo, validateEnum, validateParameters, validateParameters
public BackendVmResource(String id, BackendVmsResource parent)
public VM get()
get
in interface UpdatableResource<VM>
public VM update(VM incoming)
update
in interface UpdatableResource<VM>
public DevicesResource<CdRom,CdRoms> getCdRomsResource()
getCdRomsResource
in interface VmResource
public DevicesResource<Disk,Disks> getDisksResource()
getDisksResource
in interface VmResource
public DevicesResource<NIC,Nics> getNicsResource()
getNicsResource
in interface VmResource
public SnapshotsResource getSnapshotsResource()
getSnapshotsResource
in interface VmResource
public AssignedTagsResource getTagsResource()
getTagsResource
in interface VmResource
public AssignedPermissionsResource getPermissionsResource()
getPermissionsResource
in interface VmResource
public CreationResource getCreationSubresource(String ids)
getCreationSubresource
in interface AsynchronouslyCreatedResource
public ActionResource getActionSubresource(String action, String ids)
getActionSubresource
in interface VmResource
getActionSubresource
in class AbstractBackendActionableResource<VM,VM>
public StatisticsResource getStatisticsResource()
getStatisticsResource
in interface MeasurableResource
public javax.ws.rs.core.Response migrate(Action action)
migrate
in interface VmResource
public javax.ws.rs.core.Response shutdown(Action action)
shutdown
in interface VmResource
public javax.ws.rs.core.Response start(Action action)
start
in interface VmResource
public javax.ws.rs.core.Response stop(Action action)
stop
in interface VmResource
public javax.ws.rs.core.Response suspend(Action action)
suspend
in interface VmResource
public javax.ws.rs.core.Response detach(Action action)
detach
in interface VmResource
public javax.ws.rs.core.Response export(Action action)
export
in interface VmResource
public javax.ws.rs.core.Response move(Action action)
move
in interface VmResource
public javax.ws.rs.core.Response ticket(Action action)
ticket
in interface VmResource
protected int getTicketExpiry(Action action)
protected RunVmOnceParams map(VM vm, RunVmOnceParams params)
protected VM populate(VM model, VM entity)
populate
in class AbstractBackendResource<VM,VM>
public javax.ws.rs.core.Response cancelMigration(Action action)
cancelMigration
in interface VmResource
Copyright © 2012. All Rights Reserved.