def get_status(self):
status = None<EOL>if self.physical_plan and self.physical_plan.topology:<EOL><INDENT>status = self.physical_plan.topology.state<EOL><DEDENT>if status == <NUM_LIT:1>:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>elif status == <NUM_LIT:2>:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>elif status == <NUM_LIT:3>:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>
Get the current state of this topology.
The state values are from the topology.proto
RUNNING = 1, PAUSED = 2, KILLED = 3
if the state is None "Unknown" is returned.