public abstract class BackendNicsResource extends AbstractBackendDevicesResource<NIC,Nics,VmNetworkInterface> implements DevicesResource<NIC,Nics>
AbstractBackendDevicesResource.DeviceIdResolver
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
addAction, removeAction, updateType
collectionType, parentId, queryParams, queryType
CASE_SENSITIVE_CONSTRAINT_PARAMETER, FROM_CONSTRAINT_PARAMETER, LOG
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
BackendNicsResource(Guid parentId,
VdcQueryType queryType,
VdcQueryParametersBase queryParams,
VdcActionType addAction,
VdcActionType removeAction,
VdcActionType updateAction) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(NIC device) |
protected abstract Guid |
getClusterId() |
protected String[] |
getRequiredAddFields() |
protected String[] |
getRequiredUpdateFields() |
Nics |
list() |
protected network |
lookupClusterNetwork(Guid clusterId,
Guid id,
String name) |
protected network |
lookupClusterNetwork(Guid clusterId,
Guid id,
String name,
List<network> networks) |
protected boolean |
matchEntity(VmNetworkInterface entity,
Guid id) |
protected boolean |
matchEntity(VmNetworkInterface entity,
String name) |
protected abstract VmNetworkInterface |
setNetwork(NIC device,
VmNetworkInterface ni) |
protected void |
setNetworkId(NIC nic) |
getAddParameters, getDeviceSubResource, getEntityIdResolver, getRemoveParameters, getUpdateParametersProvider, performRemove
addParents, getList, lookupEntity, mapCollection, validate
asString, expectBlocking, getBackendCollection, getBackendCollection, getBackendCollection, getEntity, handleAsynchrony, performCreation, remove, resolveCreated
addLinks, addLinks, addLinks, addLinks, addOrUpdateLink, asCollection, asGuidOr404, asString, awaitCompletion, delay, entityNotFound, getAsynchronousStatus, getMapper, getMappingLocator, getQueryParams, incomplete, inject, injectSearchLinks, linkSubCollections, linkSubResource, map, map, map, map, newModel, notFound, notFound, populate, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeviceSubResource, remove
public BackendNicsResource(Guid parentId, VdcQueryType queryType, VdcQueryParametersBase queryParams, VdcActionType addAction, VdcActionType removeAction, VdcActionType updateAction)
public Nics list()
list
in interface ReadOnlyDevicesResource<NIC,Nics>
list
in class AbstractBackendReadOnlyDevicesResource<NIC,Nics,VmNetworkInterface>
protected abstract Guid getClusterId()
protected boolean matchEntity(VmNetworkInterface entity, Guid id)
matchEntity
in class AbstractBackendReadOnlyDevicesResource<NIC,Nics,VmNetworkInterface>
protected boolean matchEntity(VmNetworkInterface entity, String name)
matchEntity
in class AbstractBackendDevicesResource<NIC,Nics,VmNetworkInterface>
protected String[] getRequiredUpdateFields()
getRequiredUpdateFields
in class AbstractBackendDevicesResource<NIC,Nics,VmNetworkInterface>
protected String[] getRequiredAddFields()
getRequiredAddFields
in class AbstractBackendDevicesResource<NIC,Nics,VmNetworkInterface>
protected network lookupClusterNetwork(Guid clusterId, Guid id, String name, List<network> networks)
public javax.ws.rs.core.Response add(NIC device)
add
in interface DevicesResource<NIC,Nics>
add
in class AbstractBackendDevicesResource<NIC,Nics,VmNetworkInterface>
protected void setNetworkId(NIC nic)
protected abstract VmNetworkInterface setNetwork(NIC device, VmNetworkInterface ni)
Copyright © 2012. All Rights Reserved.