-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
ScheduleInterface.php
135 lines (106 loc) · 2.62 KB
/
ScheduleInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
namespace EthanYehuda\CronjobManager\Api\Data;
use Magento\Cron\Model\Schedule;
interface ScheduleInterface
{
const STATUS_PENDING = Schedule::STATUS_PENDING;
const STATUS_RUNNING = Schedule::STATUS_RUNNING;
const STATUS_SUCCESS = Schedule::STATUS_SUCCESS;
const STATUS_MISSED = Schedule::STATUS_MISSED;
const STATUS_ERROR = Schedule::STATUS_ERROR;
const STATUS_KILLED = 'killed';
/**
* @return int
*/
public function getScheduleId(): int;
/**
* @return string
*/
public function getJobCode(): string;
/**
* @return string
*/
public function getStatus(): string;
/**
* @return string|null
*/
public function getHostname();
/**
* @return int|null
*/
public function getPid();
/**
* @return string|null
*/
public function getMessages();
/**
* @return string|null
*/
public function getCreatedAt();
/**
* @return string|null
*/
public function getScheduledAt();
/**
* @return string|null
*/
public function getExecutedAt();
/**
* @return string|null
*/
public function getFinishedAt();
/**
* @return string|null
*/
public function getKillRequest();
/**
* @param int $scheduleId
* @return ScheduleInterface
*/
public function setScheduleId(int $scheduleId): self;
/**
* @param string $jobCode
* @return ScheduleInterface
*/
public function setJobCode(string $jobCode): self;
/**
* @param string $status
* @return ScheduleInterface
*/
public function setStatus(string $status): self;
/**
* @param int $pid
* @return ScheduleInterface
*/
public function setPid(int $pid): self;
/**
* @param string $messages
* @return ScheduleInterface
*/
public function setMessages(string $messages): self;
/**
* @param string $createdAt
* @return ScheduleInterface
*/
public function setCreatedAt(string $createdAt): self;
/**
* @param string $scheduledAt
* @return ScheduleInterface
*/
public function setScheduledAt(string $scheduledAt): self;
/**
* @param string $executedAt
* @return ScheduleInterface
*/
public function setExecutedAt(string $executedAt): self;
/**
* @param string $finishedAt
* @return ScheduleInterface
*/
public function setFinishedAt(string $finishedAt): self;
/**
* @param string $killRequest
* @return ScheduleInterface
*/
public function setKillRequest(string $killRequest): self;
}