Exemplo n.º 1
0
    def handle(self, *args, **kwargs):
        
        params = _get_params(kwargs.get('payload'), ['cluster_id'], 'data.')
        
        with closing(self.server.odb.session()) as session:
            item_list = Element('item_list')
            db_items = channel_jms_wmq_list(session, params['cluster_id'])
    
            for db_item in db_items:
    
                item = Element('item')
                item.id = db_item.id
                item.name = db_item.name
                item.is_active = db_item.is_active
                item.queue = db_item.queue
                item.service_name = db_item.service_name
                item.def_name = db_item.def_name
                item.def_id = db_item.def_id
    
                item_list.append(item)

            return ZATO_OK, etree.tostring(item_list)
Exemplo n.º 2
0
 def get_channel_jms_wmq_list(self, cluster_id, needs_columns=False):
     """ Returns a list of JMS WebSphere MQ channels.
     """
     with closing(self.session()) as session:
         return query.channel_jms_wmq_list(session, cluster_id,
                                           needs_columns)
Exemplo n.º 3
0
Arquivo: odb.py Projeto: bboerner/zato
 def get_channel_jms_wmq_list(self, cluster_id, needs_columns=False):
     """ Returns a list of JMS WebSphere MQ channels.
     """
     with closing(self.session()) as session:
         return query.channel_jms_wmq_list(session, cluster_id, needs_columns)
Exemplo n.º 4
0
 def get_data(self, session):
     return channel_jms_wmq_list(session, self.request.input.cluster_id, False)
Exemplo n.º 5
0
Arquivo: odb.py Projeto: dsuch/zato
 def get_channel_jms_wmq_list(self, cluster_id, needs_columns=False):
     """ Returns a list of JMS WebSphere MQ channels.
     """
     return channel_jms_wmq_list(self._session, cluster_id, needs_columns)
Exemplo n.º 6
0
 def get_channel_jms_wmq_list(self, cluster_id, needs_columns=False):
     """ Returns a list of JMS WebSphere MQ channels.
     """
     return channel_jms_wmq_list(self._session, cluster_id, needs_columns)
Exemplo n.º 7
0
Arquivo: jms_wmq.py Projeto: xbx/zato
 def get_data(self, session):
     return channel_jms_wmq_list(session, self.request.input.cluster_id,
                                 False)
Exemplo n.º 8
0
Arquivo: odb.py Projeto: brtsz/zato
 def get_channel_jms_wmq_list(self, cluster_id):
     """ Returns a list of JMS WebSphere MQ channels.
     """
     return channel_jms_wmq_list(self._session, cluster_id)