Search in sources :

Example 11 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 12 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 13 with Event

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

the class KubevirtLoadBalancerManagerTest 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 : KubevirtLoadBalancerEvent(org.onosproject.kubevirtnetworking.api.KubevirtLoadBalancerEvent) Event(org.onosproject.event.Event)

Example 14 with Event

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

the class KubevirtNetworkManagerTest 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 : KubevirtNetworkEvent(org.onosproject.kubevirtnetworking.api.KubevirtNetworkEvent) Event(org.onosproject.event.Event)

Example 15 with Event

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

the class KubevirtPodManagerTest 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 : KubevirtPodEvent(org.onosproject.kubevirtnetworking.api.KubevirtPodEvent) Event(org.onosproject.event.Event)

Aggregations

Event (org.onosproject.event.Event)47 TopologyEvent (org.onosproject.net.topology.TopologyEvent)9 DeviceEvent (org.onosproject.net.device.DeviceEvent)7 LinkEvent (org.onosproject.net.link.LinkEvent)6 ConnectPoint (org.onosproject.net.ConnectPoint)5 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 HostEvent (org.onosproject.net.host.HostEvent)3 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)2 Map (java.util.Map)2 Set (java.util.Set)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 ExecutorService (java.util.concurrent.ExecutorService)2 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)2 Collectors (java.util.stream.Collectors)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