blob: 335c89c8fbdc5b9d6f330ebabc58a7cc583cb6ee [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 /**
32 * Processes the given host for complete state.
33 * It performs post-init jobs for the complete host.
34 *
35 * @param k8sHost kubernetes host
36 */
37 void processCompleteState(K8sHost k8sHost);
38
39 /**
40 * Processes the given host for incomplete state.
41 *
42 * @param k8sHost kubernetes host
43 */
44 void processIncompleteState(K8sHost k8sHost);
45}