Exemplo n.º 1
0
 def topic(self):
     config = Config(HBASE_STORAGE_TABLE=self.parent.parent.table,
                     HBASE_STORAGE_SERVER_PORT=9090)
     storage = Storage(
         Context(config=config, server=get_server('ACME-SEC')))
     storage.put(IMAGE_URL % '7', IMAGE_BYTES)
     storage.put_detector_data(IMAGE_URL % '7', 'some-data')
     return storage.get_detector_data(IMAGE_URL % '7')
Exemplo n.º 2
0
 def topic(self):
     config = Config(HBASE_STORAGE_TABLE=self.parent.parent.table,HBASE_STORAGE_SERVER_PORT=9090)
     storage = Storage(Context(config=config, server=get_server('ACME-SEC')))
     return storage.get_detector_data(IMAGE_URL % '10000')
Exemplo n.º 3
0
 def topic(self):
     config = Config(HBASE_STORAGE_TABLE=self.parent.parent.table, HBASE_STORAGE_SERVER_PORT=9090)
     storage = Storage(Context(config=config, server=get_server("ACME-SEC")))
     storage.put(IMAGE_URL % "7", IMAGE_BYTES)
     storage.put_detector_data(IMAGE_URL % "7", "some-data")
     return storage.get_detector_data(IMAGE_URL % "7")