Exemplo n.º 1
0
 def create_mock_execution_state(self):
     estate = protoEState.ExecutionState()
     estate.topology_name = MockProto.topology_name
     estate.topology_id = MockProto.topology_id
     estate.cluster = MockProto.cluster
     estate.environ = MockProto.environ
     return estate
Exemplo n.º 2
0
 def create_mock_execution_state(role):
     estate = protoEState.ExecutionState()
     estate.role = role
     return estate
Exemplo n.º 3
0
 def create_mock_execution_state(cluster, role, environ):
   estate = protoEState.ExecutionState()
   estate.cluster = cluster
   estate.role = role
   estate.environ = environ
   return estate