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 class
ProtectionEndpointIntent.Builder
Builder 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 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionEndpointIntent.Builder
builder()
Returns a newProtectionEndpointIntent
builder.ProtectedTransportEndpointDescription
description()
Returns the description of this protection endpoint.DeviceId
deviceId()
Returns the identifier of the device to be configured.boolean
isInstallable()
Indicates whether or not the intent is installable.java.lang.String
toString()
-
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:Intent
Indicates whether or not the intent is installable.- Overrides:
isInstallable
in classIntent
- Returns:
- true if installable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static ProtectionEndpointIntent.Builder builder()
Returns a newProtectionEndpointIntent
builder.- Returns:
- the builder
-
-