public interface

ContextSerializer

org.apache.helix.controller.rebalancer.context.ContextSerializer
Known Indirect Subclasses

Summary

Public Methods
abstract <T> T deserialize(Class<T> clazz, String string)
Convert raw bytes to a generic object instance
abstract <T> String serialize(T data)
Convert a RebalancerContext object instance to a String

Public Methods

public abstract T deserialize (Class<T> clazz, String string)

Convert raw bytes to a generic object instance

Parameters
clazz The class represented by the deserialized string
string String representing the object
Returns
  • instance of the generic type or null if the conversion failed

public abstract String serialize (T data)

Convert a RebalancerContext object instance to a String

Parameters
data instance of the rebalancer context type
Returns
  • String representing the object