1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 Contains (proxy) classes that represent the pulp agent.
19 The proxy classes must match the names of classes that are exposed
20 on the agent.
21 """
22
23 from pulp.messaging.broker import Broker
24 from pulp.messaging.stub import Stub
25 from pulp.messaging.decorators import stub
26 from pulp.messaging.base import Container
27 from pulp.messaging.producer import Producer
28 from pulp.server import config
34
35 @stub('repo')
36 -class Repo(Stub):
38
39 @stub('packages')
40 -class Packages(Stub):
42
46
47 @stub('shell')
48 -class Shell(Stub):
50
51
52 -class Agent(Container):
53 """
54 A collection of stubs that represent the agent.
55 """
56
69
71 """
72 Delete all messaging resources.
73 """
74 queue = self._Container__destination()
75 if isinstance(queue, (list, tuple)):
76 raise Exception, 'group delete, not permitted'
77 session = self.__producer.session()
78 queue.delete(session)
79