예제 #1
0
파일: server.py 프로젝트: ctogle/msched
 def init(self,state):
     sport,sinfo = tl.serve(state['pinfo'])
     state['state'] = 'open'
     state['service'] = sport,sinfo
     cinit = cn.controller.init(self,state)
     state['radio'].above.schm = 'passive'
     return cinit
예제 #2
0
파일: cluster.py 프로젝트: ctogle/msched
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)