ApplicationState
- class tomcatmanager.models.ApplicationState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
An enumeration of the various tomcat application states.
New in version 2.0.0.
- RUNNING = 'running'
- STOPPED = 'stopped'
- classmethod parse(state: str)
Return one of the enums from a string sent by the Tomcat Manager web application.
- Parameters:
state (str) – the string value of the application state from the tomcat server
- Returns:
ApplicationState
instance- Return type:
- Raises:
ValueError – if the string does not represent a known application state