blob: 84d7d8337928f1afe18bd24081536bd0a718e36a [file] [log] [blame]
Jian Lie2a04ce2020-07-01 19:07:02 +09001/*
2 * Copyright 2020-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 host stats.
20 */
21public interface K8sHostHandler {
22
23 /**
24 * Processes the given host for init state.
25 * It creates required bridges on OVS by referring to host type.zw
26 *
27 * @param k8sHost kubernetes host
28 */
29 void processInitState(K8sHost k8sHost);
30
31 /**
Jian Li077b07e2020-09-01 16:55:25 +090032 * Processes the given node for device created state.
33 * It creates required ports on the bridges based on the node type.
34 *
35 * @param k8sHost kubernetes host
36 */
37 void processDeviceCreatedState(K8sHost k8sHost);
38
39 /**
Jian Lie2a04ce2020-07-01 19:07:02 +090040 * Processes the given host for complete state.
41 * It performs post-init jobs for the complete host.
42 *
43 * @param k8sHost kubernetes host
44 */
45 void processCompleteState(K8sHost k8sHost);
46
47 /**
48 * Processes the given host for incomplete state.
49 *
50 * @param k8sHost kubernetes host
51 */
52 void processIncompleteState(K8sHost k8sHost);
53}