Package org.onosproject.net.pi.service
Class PiPipeconfEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<PiPipeconfEvent.Type,PiPipeconfId>
-
- org.onosproject.net.pi.service.PiPipeconfEvent
-
- All Implemented Interfaces:
Event<PiPipeconfEvent.Type,PiPipeconfId>
public class PiPipeconfEvent extends AbstractEvent<PiPipeconfEvent.Type,PiPipeconfId>
Event related to the PiPipeconfService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PiPipeconfEvent.Type
Type of pipeconf event.
-
Constructor Summary
Constructors Constructor Description PiPipeconfEvent(PiPipeconfEvent.Type type, PiPipeconf pipeconf)
Creates anew pipeconf event for the given type and pipeconf.PiPipeconfEvent(PiPipeconfEvent.Type type, PiPipeconfId pipeconfId)
Creates anew pipeconf event for the given type and pipeconf ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiPipeconf
pipeconf()
Returns the pipeconf instance associated to this event, or null if one was not provided.-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
PiPipeconfEvent
public PiPipeconfEvent(PiPipeconfEvent.Type type, PiPipeconf pipeconf)
Creates anew pipeconf event for the given type and pipeconf.- Parameters:
type
- type of eventpipeconf
- pipeconf
-
PiPipeconfEvent
public PiPipeconfEvent(PiPipeconfEvent.Type type, PiPipeconfId pipeconfId)
Creates anew pipeconf event for the given type and pipeconf ID.- Parameters:
type
- type of eventpipeconfId
- pipeconf ID
-
-
Method Detail
-
pipeconf
public PiPipeconf pipeconf()
Returns the pipeconf instance associated to this event, or null if one was not provided. For example,PiPipeconfEvent.Type.UNREGISTERED
events are not expected to carry the pipeconf instance that was unregistered, but just the ID (viaAbstractEvent.subject()
).- Returns:
- pipeconf instance or null
-
-