@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.cluster.ClusterService |
clusterService |
protected org.opencord.cordconfig.CordConfigService |
cordConfig |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.host.HostProviderRegistry |
hostProviderRegistry |
protected org.onosproject.net.host.HostService |
hostService |
protected org.onosproject.cluster.LeadershipService |
leadershipService |
protected org.slf4j.Logger |
log |
protected ServiceNetworkService |
snetService |
| 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 |
addInstance(org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription description)
Adds a host with a 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 |
removeInstance(org.onosproject.net.HostId hostId)
Removes host with 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.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.cluster.LeadershipService leadershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.opencord.cordconfig.CordConfigService cordConfig
@Reference(cardinality=MANDATORY_UNARY) protected ServiceNetworkService snetService
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 addInstance(org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription description)
InstanceServiceaddInstance in interface InstanceServicehostId - host iddescription - host descriptionpublic void removeInstance(org.onosproject.net.ConnectPoint connectPoint)
InstanceServiceremoveInstance in interface InstanceServiceconnectPoint - connect pointpublic void removeInstance(org.onosproject.net.HostId hostId)
InstanceServiceremoveInstance in interface InstanceServicehostId - host idCopyright © 2018. All rights reserved.