Example #1
0
def admin(service, root=0):
    assert MPI.COMM_WORLD.Get_size() == 1
    brain()
    host = MPI.Get_processor_name()
    tl.log(0, "host began serving service", host, service)
    port, info = tl.serve(service)
    ad.control(service, port, info)
    tl.unserve(service, port, info)
    tl.log(0, "host ceased serving service", host, service)
Example #2
0
 def fini(self,state):
     cfini = cn.controller.fini(self,state)
     tl.unserve(state['pinfo'],*state['service'])
     del state['service']
     del state['state']
     return cfini