def interface(self):
<EOL>controls = {<EOL>'<STR_LIT:start>': self.do_start,<EOL>'<STR_LIT>': self.do_stop,<EOL>'<STR_LIT:status>': self.do_status,<EOL>'<STR_LIT>': self.do_restart,<EOL>'<STR_LIT>': self.do_restart    <EOL>}<EOL>try:<EOL><INDENT>controls[self.command]()<EOL><DEDENT>except KeyError:<EOL><INDENT>self.write_stdout('<STR_LIT>'.format(self.name), <NUM_LIT:3>)<EOL><DEDENT>exit(<NUM_LIT:0>)<EOL>
Public method for handling service command argument.