enum

Earl::Agent::Status

Inherits Enum < Comparable < Value < Object

The different statuses an agent can be in.

Constants

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 methods

crashed?

Returns true if this enum value equals Crashed

recycling?

Returns true if this enum value equals Recycling

running?

Returns true if this enum value equals Running

starting?

Returns true if this enum value equals Starting

stopped?

Returns true if this enum value equals Stopped

stopping?

Returns true if this enum value equals Stopping