public class BackendHostNicsResource extends AbstractBackendCollectionResource<HostNIC,VdsNetworkInterface> implements HostNicsResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendHostNicsResource.HostNicResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
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 |
---|
BackendHostNicsResource(String hostId) |
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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
public BackendHostNicsResource(String hostId)
public String getHostId()
public HostNics list()
list
in interface HostNicsResource
public javax.ws.rs.core.Response add(HostNIC nic)
add
in interface HostNicsResource
public javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendCollectionResource<HostNIC,VdsNetworkInterface>
public HostNicResource getHostNicSubResource(String id)
HostNicsResource
getHostNicSubResource
in interface HostNicsResource
id
- the nic IDpublic VdsNetworkInterface lookupInterface(String id)
protected VdsNetworkInterface lookupInterfaceByName(String name)
protected List<VdsNetworkInterface> getCollection()
protected List<VdsNetworkInterface> getCollection(List<VdsNetworkInterface> collection)
public HostNIC addParents(HostNIC nic)
AbstractBackendResource
addParents
in class AbstractBackendResource<HostNIC,VdsNetworkInterface>
protected HostNIC map(VdsNetworkInterface iface, List<VdsNetworkInterface> ifaces)
protected HostNIC map(VdsNetworkInterface iface, HostNIC template, List<VdsNetworkInterface> ifaces)
protected HostNIC map(VdsNetworkInterface entity, HostNIC template)
map
in class AbstractBackendResource<HostNIC,VdsNetworkInterface>
protected VdsNetworkInterface map(HostNIC entity, VdsNetworkInterface template)
map
in class AbstractBackendResource<HostNIC,VdsNetworkInterface>
protected HostNIC addSlaveLinks(HostNIC nic, List<VdsNetworkInterface> ifaces)
protected boolean isSlave(VdsNetworkInterface iface, String masterName)
protected HostNIC addMasterLink(HostNIC nic, String bondName, List<VdsNetworkInterface> ifaces)
protected HostNIC populate(HostNIC model, VdsNetworkInterface entity)
populate
in class AbstractBackendResource<HostNIC,VdsNetworkInterface>
Copyright © 2012. All Rights Reserved.