Skip to content

Commit 4da0306

Browse files
committed
[executor] Refactor for lockless concurrency and ControllableTask
1 parent bc4af35 commit 4da0306

7 files changed

Lines changed: 855 additions & 576 deletions

File tree

executor/executable/basictask.go

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* === This file is part of ALICE O² ===
3+
*
4+
* Copyright 2019 CERN and copyright holders of ALICE O².
5+
* Author: Teo Mrnjavac <teo.mrnjavac@cern.ch>
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*
20+
* In applying this license CERN does not waive the privileges and
21+
* immunities granted to it by virtue of its status as an
22+
* Intergovernmental Organization or submit itself to any jurisdiction.
23+
*/
24+
25+
package executable
26+
27+
import (
28+
"github.com/AliceO2Group/Control/core/controlcommands"
29+
"github.com/AliceO2Group/Control/executor/executorcmd"
30+
)
31+
32+
type BasicTask struct {
33+
taskBase
34+
}
35+
36+
func (b *BasicTask) Launch() error {
37+
panic("implement me")
38+
}
39+
40+
func (b *BasicTask) Kill() error {
41+
panic("implement me")
42+
}
43+
44+
func (b *BasicTask) Transition(transition *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition {
45+
panic("implement me")
46+
}
47+
48+
func (b *BasicTask) UnmarshalTransition([]byte) (*executorcmd.ExecutorCommand_Transition, error) {
49+
panic("implement me")
50+
}
51+
52+
type HookTask struct {
53+
taskBase
54+
}
55+

0 commit comments

Comments
 (0)