Package org.onosproject.net.intent
Class ProtectionEndpointIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.ProtectionEndpointIntent
-
@Immutable @Beta public class ProtectionEndpointIntent extends Intent
Installable Intent for the ProtectionEndpoint (head/tail).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtectionEndpointIntent.BuilderBuilder forProtectionEndpointIntent.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtectionEndpointIntent(ApplicationId appId, Key key, java.util.Collection<NetworkResource> resources, int priority, DeviceId deviceId, ProtectedTransportEndpointDescription description, ResourceGroup resourceGroup)Creates a ProtectionEndpointIntent by specific resource and description.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionEndpointIntent.Builderbuilder()Returns a newProtectionEndpointIntentbuilder.ProtectedTransportEndpointDescriptiondescription()Returns the description of this protection endpoint.DeviceIddeviceId()Returns the identifier of the device to be configured.booleanisInstallable()Indicates whether or not the intent is installable.java.lang.StringtoString()-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Constructor Detail
-
ProtectionEndpointIntent
protected ProtectionEndpointIntent(ApplicationId appId, Key key, java.util.Collection<NetworkResource> resources, int priority, DeviceId deviceId, ProtectedTransportEndpointDescription description, ResourceGroup resourceGroup)
Creates a ProtectionEndpointIntent by specific resource and description.- Parameters:
appId- application identificationkey- intent keyresources- network resource to be setpriority- priority to use for flows from this intentdeviceId- target device iddescription- protected transport endpoint description of the intentresourceGroup- resource group for this intent
-
-
Method Detail
-
deviceId
public DeviceId deviceId()
Returns the identifier of the device to be configured.- Returns:
- the deviceId
-
description
public ProtectedTransportEndpointDescription description()
Returns the description of this protection endpoint.- Returns:
- the description
-
isInstallable
public boolean isInstallable()
Description copied from class:IntentIndicates whether or not the intent is installable.- Overrides:
isInstallablein classIntent- Returns:
- true if installable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ProtectionEndpointIntent.Builder builder()
Returns a newProtectionEndpointIntentbuilder.- Returns:
- the builder
-
-