예제 #1
0
    def __init__(self, address, port):
        '''
        Constructor
        '''
        objectless_connector = ObjectlessSpacetimeConnection(
            "CheckFrontier_Stao3".format(CrawlerFrame.app_id),
            address="http://" + address + ":" + str(port) + "/")
        frame_c = ClientFrame(objectless_connector,
                              dataframe_client(),
                              time_step=1000)

        frame_c.attach_app(CheckFrontierFrame(frame_c))
        frame_c.run_main()
예제 #2
0
    def __init__(self, address, port):
        '''
        Constructor
        '''
        objectless_connector = ObjectlessSpacetimeConnection(
            "ResetFrontier_TingyuChuanchunPengjhih".format(
                CrawlerFrame.app_id),
            address="http://" + address + ":" + str(port) + "/")
        frame_c = ClientFrame(objectless_connector,
                              dataframe_client(),
                              time_step=1000)

        frame_c.attach_app(DeleteFrontierFrame(frame_c))
        frame_c.run_main()