本文整理汇总了Python中py4j.java_gateway.JavaGateway.seviceClear方法的典型用法代码示例。如果您正苦于以下问题:Python JavaGateway.seviceClear方法的具体用法?Python JavaGateway.seviceClear怎么用?Python JavaGateway.seviceClear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类py4j.java_gateway.JavaGateway
的用法示例。
在下文中一共展示了JavaGateway.seviceClear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Py4jWorkflowCallback
# 需要导入模块: from py4j.java_gateway import JavaGateway [as 别名]
# 或者: from py4j.java_gateway.JavaGateway import seviceClear [as 别名]
import time
from py4j.java_gateway import JavaGateway
class Py4jWorkflowCallback(object):
def setActorSelected(self, actorName):
print actorName
class Java:
implements = ['org.dawb.workbench.jmx.py4j.Py4jWorkflowCallback']
if __name__ == '__main__':
gateway = JavaGateway()
gateway.restart_callback_server()
gateway.entry_point.setPy4jWorkflowCallback(Py4jWorkflowCallback())
gateway.entry_point.setWorkspacePath("/users/svensson/dawb")
gateway.entry_point.setModelPath("/users/svensson/dawb_workspace/workflows/examples/loop_example.moml")
gateway.entry_point.setInstallationPath("/opt/dawb/dawb")
gateway.entry_point.setServiceTerminate(False)
gateway.entry_point.setTangoSpecMode(True)
gateway.entry_point.runWorkflow()
print "Workflow started!"
gateway.entry_point.synchronizeWorkflow()
gateway.seviceClear()
gateway._shutdown_callback_server()