| 81 | return ["update", self.destination, self.type, self.id] |
| 82 | |
| 83 | class RemoveEvent(): |
| 84 | def __init__(self, itype, iid, destination): |
| 85 | assert itype == "pack" or itype == "file" |
| 86 | assert destination == "queue" or destination == "collector" |
| 87 | self.type = itype |
| 88 | self.id = iid |
| 89 | self.destination = destination |
| 90 | |
| 91 | def toList(self): |
| 92 | return ["remove", self.destination, self.type, self.id] |
| 93 | |
| 94 | class InsertEvent(): |
| 95 | def __init__(self, itype, iid, after, destination): |
no outgoing calls
no test coverage detected