@Service public class InstanceManager extends org.onosproject.net.provider.AbstractProvider implements org.onosproject.net.host.HostProvider, InstanceService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigRegistry |
configRegistry |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.dhcp.DhcpService |
dhcpService |
protected org.onosproject.net.host.HostProviderRegistry |
hostProviderRegistry |
protected org.onosproject.net.host.HostService |
hostService |
protected org.slf4j.Logger |
log |
protected org.onosproject.xosclient.api.XosClientService |
xosClient |
| Constructor and Description |
|---|
InstanceManager()
Creates an cordvtn host location provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
addInstance(org.onosproject.net.ConnectPoint connectPoint)
Adds a service instance on a given connect point.
|
void |
addNestedInstance(org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription description)
Adds a nested instance with given host ID and host description.
|
protected void |
deactivate() |
void |
removeInstance(org.onosproject.net.ConnectPoint connectPoint)
Removes a service instance from a given connect point.
|
void |
removeNestedInstance(org.onosproject.net.HostId hostId)
Removes nested instance with a given host ID.
|
void |
triggerProbe(org.onosproject.net.Host host) |
protected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry configRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostProviderRegistry hostProviderRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostService hostService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.dhcp.DhcpService dhcpService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.xosclient.api.XosClientService xosClient
public InstanceManager()
@Activate protected void activate()
@Deactivate protected void deactivate()
public void triggerProbe(org.onosproject.net.Host host)
triggerProbe in interface org.onosproject.net.host.HostProviderpublic void addInstance(org.onosproject.net.ConnectPoint connectPoint)
InstanceServiceaddInstance in interface InstanceServiceconnectPoint - connect point of the instancepublic void addNestedInstance(org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription description)
InstanceServiceaddNestedInstance in interface InstanceServicehostId - host iddescription - host descriptionpublic void removeInstance(org.onosproject.net.ConnectPoint connectPoint)
InstanceServiceremoveInstance in interface InstanceServiceconnectPoint - connect pointpublic void removeNestedInstance(org.onosproject.net.HostId hostId)
InstanceServiceremoveNestedInstance in interface InstanceServicehostId - host idCopyright © 2016. All rights reserved.