Search in sources :

Example 1 with Event

use of org.onosproject.event.Event in project onos by opennetworkinglab.

the class K8sNetworkManagerTest method validateEvents.

private void validateEvents(Enum... types) {
    int i = 0;
    assertEquals("Number of events did not match", types.length, testListener.events.size());
    for (Event event : testListener.events) {
        assertEquals("Incorrect event received", types[i], event.type());
        i++;
    }
    testListener.events.clear();
}
Also used : K8sNetworkEvent(org.onosproject.k8snetworking.api.K8sNetworkEvent) Event(org.onosproject.event.Event)

Example 2 with Event

use of org.onosproject.event.Event in project onos by opennetworkinglab.

the class K8sIngressManagerTest method validateEvents.

private void validateEvents(Enum... types) {
    int i = 0;
    assertEquals("Number of events did not match", types.length, testListener.events.size());
    for (Event event : testListener.events) {
        assertEquals("Incorrect event received", types[i], event.type());
        i++;
    }
    testListener.events.clear();
}
Also used : K8sIngressEvent(org.onosproject.k8snetworking.api.K8sIngressEvent) Event(org.onosproject.event.Event)

Example 3 with Event

use of org.onosproject.event.Event in project onos by opennetworkinglab.

the class K8sNamespaceManagerTest method validateEvents.

private void validateEvents(Enum... types) {
    int i = 0;
    assertEquals("Number of events did not match", types.length, testListener.events.size());
    for (Event event : testListener.events) {
        assertEquals("Incorrect event received", types[i], event.type());
        i++;
    }
    testListener.events.clear();
}
Also used : K8sNamespaceEvent(org.onosproject.k8snetworking.api.K8sNamespaceEvent) Event(org.onosproject.event.Event)

Example 4 with Event

use of org.onosproject.event.Event in project onos by opennetworkinglab.

the class K8sServiceManagerTest method validateEvents.

private void validateEvents(Enum... types) {
    int i = 0;
    assertEquals("Number of events did not match", types.length, testListener.events.size());
    for (Event event : testListener.events) {
        assertEquals("Incorrect event received", types[i], event.type());
        i++;
    }
    testListener.events.clear();
}
Also used : K8sServiceEvent(org.onosproject.k8snetworking.api.K8sServiceEvent) Event(org.onosproject.event.Event)

Example 5 with Event

use of org.onosproject.event.Event in project onos by opennetworkinglab.

the class K8sNodeManagerTest method validateEvents.

private void validateEvents(Enum... types) {
    int i = 0;
    assertEquals("Number of events did not match", types.length, testListener.events.size());
    for (Event event : testListener.events) {
        assertEquals("Incorrect event received", types[i], event.type());
        i++;
    }
    testListener.events.clear();
}
Also used : K8sNodeEvent(org.onosproject.k8snode.api.K8sNodeEvent) Event(org.onosproject.event.Event)

Aggregations

Event (org.onosproject.event.Event)46 TopologyEvent (org.onosproject.net.topology.TopologyEvent)8 DeviceEvent (org.onosproject.net.device.DeviceEvent)6 LinkEvent (org.onosproject.net.link.LinkEvent)5 ConnectPoint (org.onosproject.net.ConnectPoint)4 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)3 HostEvent (org.onosproject.net.host.HostEvent)3 Topology (org.onosproject.net.topology.Topology)3 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 ClusterEvent (org.onosproject.cluster.ClusterEvent)2 MastershipEvent (org.onosproject.mastership.MastershipEvent)2 Link (org.onosproject.net.Link)2 IntentEvent (org.onosproject.net.intent.IntentEvent)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 JsonNodeFactory (com.fasterxml.jackson.databind.node.JsonNodeFactory)1 MoreObjects (com.google.common.base.MoreObjects)1