Package org.onosproject.net
Class DataPlaneEntity
- java.lang.Object
-
- org.onosproject.net.DataPlaneEntity
-
public class DataPlaneEntity extends Object
Generic abstraction to hold dataplane entities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataPlaneEntity.Type
Types of entity.
-
Constructor Summary
Constructors Constructor Description DataPlaneEntity(FlowEntry flow)
Creates a dataplane entity from a flow entry.DataPlaneEntity(Group group)
Creates a dataplane entity from a group entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
FlowEntry
getFlowEntry()
Returns the flow entry.Group
getGroupEntry()
Returns the group entry.DataPlaneEntity.Type
getType()
Returns the type of the entry.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DataPlaneEntity
public DataPlaneEntity(FlowEntry flow)
Creates a dataplane entity from a flow entry.- Parameters:
flow
- the inner flow entry
-
DataPlaneEntity
public DataPlaneEntity(Group group)
Creates a dataplane entity from a group entry.- Parameters:
group
- the inner group entry
-
-
Method Detail
-
getFlowEntry
public FlowEntry getFlowEntry()
Returns the flow entry.- Returns:
- the flow entry
-
getGroupEntry
public Group getGroupEntry()
Returns the group entry.- Returns:
- the group entry
-
getType
public DataPlaneEntity.Type getType()
Returns the type of the entry.- Returns:
- the type
-
-