public class

ControllerContextHolder

extends HelixProperty
java.lang.Object
   ↳ org.apache.helix.HelixProperty
     ↳ org.apache.helix.controller.context.ControllerContextHolder

Class Overview

Wrap a ControllerContext so that it can be persisted in the backing store

Summary

[Expand]
Inherited Fields
From class org.apache.helix.HelixProperty
Public Constructors
ControllerContextHolder(ControllerContext context)
Instantiate from a populated ControllerContext
ControllerContextHolder(ZNRecord record)
Instantiate from a record
Public Methods
<T extends ControllerContext> T getContext(Class<T> contextClass)
Get a ControllerContext as a specific subtyple
ControllerContext getContext()
Get a ControllerContext
[Expand]
Inherited Methods
From class org.apache.helix.HelixProperty
From class java.lang.Object

Public Constructors

public ControllerContextHolder (ControllerContext context)

Instantiate from a populated ControllerContext

Parameters
context instantiated context

public ControllerContextHolder (ZNRecord record)

Instantiate from a record

Parameters
record populated ZNRecord

Public Methods

public T getContext (Class<T> contextClass)

Get a ControllerContext as a specific subtyple

Returns

public ControllerContext getContext ()

Get a ControllerContext

Returns