Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
DobbyLoggerBase.h
1 /*
2 * If not stated otherwise in this file or this component's LICENSE file the
3 * following copyright and licenses apply:
4 *
5 * Copyright 2020 Sky UK
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19 #ifndef DOBBYLOGGERBASE_H
20 #define DOBBYLOGGERBASE_H
21 
22 #include <IDobbyRdkLoggingPlugin.h>
23 
24 // -----------------------------------------------------------------------------
34 {
35 public:
36  virtual ~DobbyLoggerBase() {}
37 
38 public:
50  virtual bool postInstallation()
51  {
52  return true;
53  };
54 
65  virtual bool preCreation()
66  {
67  return true;
68  };
69 
85  virtual bool createRuntime()
86  {
87  return true;
88  };
89 
104  virtual bool createContainer()
105  {
106  return true;
107  };
108 
109 #ifdef USE_STARTCONTAINER_HOOK
124  virtual bool startContainer()
125  {
126  return true;
127  };
128 #endif
129 
143  virtual bool postStart()
144  {
145  return true;
146  };
147 
160  virtual bool postHalt()
161  {
162  return true;
163  };
164 
179  virtual bool postStop()
180  {
181  return true;
182  };
183 
184 public:
193  std::vector<std::string> getDependencies() const override
194  {
195  std::vector<std::string> noDependencies;
196  return noDependencies;
197  }
198 };
199 
200 #endif // !defined(DOBBYLOGGERBASE_H)
Definition: DobbyLoggerBase.h:34
virtual bool postHalt()
Definition: DobbyLoggerBase.h:160
virtual bool postStop()
Definition: DobbyLoggerBase.h:179
std::vector< std::string > getDependencies() const override
Should return the names of the plugins this plugin depends on.
Definition: DobbyLoggerBase.h:193
virtual bool preCreation()
Definition: DobbyLoggerBase.h:65
virtual bool postInstallation()
Definition: DobbyLoggerBase.h:50
virtual bool postStart()
Definition: DobbyLoggerBase.h:143
virtual bool createContainer()
Definition: DobbyLoggerBase.h:104
virtual bool createRuntime()
Definition: DobbyLoggerBase.h:85
Interface that plugin libraries have to implement.
Definition: IDobbyRdkLoggingPlugin.h:48