public class

BasicControllerContext

extends Object
implements ControllerContext
java.lang.Object
   ↳ org.apache.helix.controller.context.BasicControllerContext

Class Overview

A simple context that can be serialized by a DefaultStringSerializer

Summary

Public Constructors
BasicControllerContext(ContextId id)
Instantiate with an id
Public Methods
ContextId getId()
Get the identifier of this context
Class<? extends StringSerializer> getSerializerClass()
Get the class that can be used to convert this object to and from a String
void setSerializerClass(Class<? extends StringSerializer> serializer)
Set the class that can serialize this object into a String, and back
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.controller.context.ControllerContext

Public Constructors

public BasicControllerContext (ContextId id)

Instantiate with an id

Parameters
id ContextId, unique among all contexts in this cluster

Public Methods

public ContextId getId ()

Get the identifier of this context

Returns

public Class<? extends StringSerializer> getSerializerClass ()

Get the class that can be used to convert this object to and from a String

Returns

public void setSerializerClass (Class<? extends StringSerializer> serializer)

Set the class that can serialize this object into a String, and back

Parameters
serializer StringSerializer implementation class