public final class DefaultServiceNetwork extends Object implements ServiceNetwork
ServiceNetwork.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultServiceNetwork.Builder |
ServiceNetwork.DependencyType, ServiceNetwork.NetworkType| Modifier and Type | Method and Description |
|---|---|
static DefaultServiceNetwork.Builder |
builder()
Returns new service network builder instance.
|
static DefaultServiceNetwork.Builder |
builder(ServiceNetwork snet)
Returns new service network builder instance with copy of the given service network.
|
static DefaultServiceNetwork.Builder |
builder(ServiceNetwork existing,
ServiceNetwork updated)
Returns service network builder instance with updated values.
|
boolean |
equals(Object obj) |
int |
hashCode() |
NetworkId |
id()
Returns the service network identifier.
|
String |
name()
Returns the service network name.
|
Map<NetworkId,ServiceNetwork.DependencyType> |
providers()
Returns the providers of the service network.
|
SegmentId |
segmentId()
Returns the service network segmentation identifier.
|
org.onlab.packet.IpAddress |
serviceIp()
Returns the service IP address of the service network.
|
org.onlab.packet.IpPrefix |
subnet()
Returns the subnet of the service network.
|
String |
toString() |
ServiceNetwork.NetworkType |
type()
Returns the type of the service network.
|
public NetworkId id()
ServiceNetworkid in interface ServiceNetworkpublic String name()
ServiceNetworkname in interface ServiceNetworkpublic ServiceNetwork.NetworkType type()
ServiceNetworktype in interface ServiceNetworkpublic SegmentId segmentId()
ServiceNetworksegmentId in interface ServiceNetworkpublic org.onlab.packet.IpPrefix subnet()
ServiceNetworksubnet in interface ServiceNetworkpublic org.onlab.packet.IpAddress serviceIp()
ServiceNetworkserviceIp in interface ServiceNetworkpublic Map<NetworkId,ServiceNetwork.DependencyType> providers()
ServiceNetworkproviders in interface ServiceNetworkpublic static DefaultServiceNetwork.Builder builder()
public static DefaultServiceNetwork.Builder builder(ServiceNetwork snet)
snet - service networkpublic static DefaultServiceNetwork.Builder builder(ServiceNetwork existing, ServiceNetwork updated)
existing - existing service networkupdated - updated service networkCopyright © 2018. All rights reserved.