Jian Li | e2a04ce | 2020-07-01 19:07:02 +0900 | [diff] [blame^] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.k8snode.api; |
| 17 | |
| 18 | /** |
| 19 | * Service handling kubernetes host stats. |
| 20 | */ |
| 21 | public 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 | } |