Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Attributes:
 - used_disk
 - used_mem

src/i/n/indextank-service-HEAD/nebu/controller.py   indextank-service(Download)
 
import flaptor.indextank.rpc.Controller as TController
from flaptor.indextank.rpc.ttypes import WorkerMountStats, WorkerLoadStats, IndexStats
 
 
    def get_worker_index_stats(self, index_code, port):
        index_stats = systemutils.get_index_stats(index_code, port)
        return IndexStats(used_disk=index_stats['disk'], used_mem=index_stats.get('mem') or 0)
 
    def kill_engine(self,index_code, base_port):