| 92 | return ["remove", self.destination, self.type, self.id] |
| 93 | |
| 94 | class InsertEvent(): |
| 95 | def __init__(self, itype, iid, after, destination): |
| 96 | assert itype == "pack" or itype == "file" |
| 97 | assert destination == "queue" or destination == "collector" |
| 98 | self.type = itype |
| 99 | self.id = iid |
| 100 | self.after = after |
| 101 | self.destination = destination |
| 102 | |
| 103 | def toList(self): |
| 104 | return ["insert", self.destination, self.type, self.id, self.after] |
| 105 | |
| 106 | class ReloadAllEvent(): |
| 107 | def __init__(self, destination): |
no outgoing calls
no test coverage detected