ApplicationState

class tomcatmanager.models.ApplicationState(value)

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

tomcatmanager.models.ApplicationState

Raises

ValueError – if the string does not represent a known application state