AlgoState

com.netflix.atlas.core.algorithm.AlgoState
See theAlgoState companion object
case class AlgoState(algorithm: String, settings: Map[String, Any])

Represents the current state for an online algorithm. Can be used with OnlineAlgorithm.apply to create a new instance with the same state. This state object is reliably serializable with helpers such as the atlas-json library so state can be persisted.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getBoolean(key: String): Boolean

Retrieve a boolean value for a given key.

Retrieve a boolean value for a given key.

Attributes

def getDouble(key: String): Double

Retrieve a double value for a given key.

Retrieve a double value for a given key.

Attributes

def getDoubleArray(key: String): Array[Double]

Retrieve an array of double values for a given key.

Retrieve an array of double values for a given key.

Attributes

def getInt(key: String): Int

Retrieve an integer value for a given key.

Retrieve an integer value for a given key.

Attributes

def getLong(key: String): Long

Retrieve a long value for a given key.

Retrieve a long value for a given key.

Attributes

def getNumber(key: String): Number

Retrieve a number value for a given key.

Retrieve a number value for a given key.

Attributes

def getState(key: String): AlgoState

Retrieve a sub-state object for a given key.

Retrieve a sub-state object for a given key.

Attributes

def getStateList(key: String): List[AlgoState]

Retrieve a list of sub-state objects for a given key.

Retrieve a list of sub-state objects for a given key.

Attributes

def getString(key: String): String

Retrieve a string value for a given key.

Retrieve a string value for a given key.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product