blob: e3f371a965264711429e10d9033b670daf3426b0 [file] [log] [blame]
Jian Li9e43ec12019-01-21 23:04:23 +09001/*
2 * Copyright 2019-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.k8snode.api;
17
18/**
19 * Service handling kubernetes node stats.
20 */
21public interface K8sNodeHandler {
22
23 /**
24 * Processes the given node for init state.
25 * It creates required bridges on OVS by referring to node type.
26 *
27 * @param k8sNode kubernetes node
28 */
29 void processInitState(K8sNode k8sNode);
30
31 /**
32 * Processes the given node for device created state.
33 * It creates required ports on the bridges based on the node type
34 *
35 * @param k8sNode kubernetes node
36 */
37 void processDeviceCreatedState(K8sNode k8sNode);
38
39 /**
40 * Processes the given node for complete state.
41 * It performs post-init jobs for the complete node.
42 *
43 * @param k8sNode kubernetes node
44 */
45 void processCompleteState(K8sNode k8sNode);
46
47 /**
48 * Processes the given node for incomplete state.
49 *
Jian Lif16e8852019-01-22 22:55:31 +090050 * @param k8sNode kubernetes node
Jian Li9e43ec12019-01-21 23:04:23 +090051 */
52 void processIncompleteState(K8sNode k8sNode);
53}