enum Earl::Agent::Status

Overview

The different statuses an agent can be in.

Defined in:

agent/state.cr

Enum Members

Starting = 0

Initial state. May return to this state after Recycling.

Running = 1

The agent was started and is still running. Previous state must be Starting to be able to transition.

Stopping = 2

The agent has been asked to stop. Previous state must be Running to be able to transition.

Stopped = 3

The agent has stopped. Previous state must be Stopping to be able to transition.

Crashed = 4

The agent has crashed (i.e. raised an exception). Previous state must be Running, Stopping or Crashed to be able to transition.

Recycling = 5

The agent has been told to recycle. Previous state must be Stopped or Crashed to be able to transition.

Instance Method Summary

Instance Method Detail

def crashed? #

[View source]
def recycling? #

[View source]
def running? #

[View source]
def starting? #

[View source]
def stopped? #

[View source]
def stopping? #

[View source]