public class

StatusUpdateUtil

extends Object
java.lang.Object
   ↳ org.apache.helix.util.StatusUpdateUtil

Class Overview

Util class to create statusUpdates ZK records and error ZK records. These message records are for diagnostics only, and they are stored on the "StatusUpdates" and "errors" ZNodes in the zookeeper instances.

Summary

Nested Classes
enum StatusUpdateUtil.Level  
class StatusUpdateUtil.StatusUpdateContents  
enum StatusUpdateUtil.TaskStatus  
class StatusUpdateUtil.Transition  
Public Constructors
StatusUpdateUtil()
Public Methods
ZNRecord createEmptyStatusUpdateRecord(String id)
Creates an empty ZNRecord as the statusUpdate/error record
ZNRecord createMessageStatusUpdateRecord(Message message, StatusUpdateUtil.Level level, Class<?> classInfo, String additionalInfo)
Create a statusupdate that is related to a cluster manager message.
void logError(Message message, Class<?> classInfo, Exception e, String additionalInfo, HelixDataAccessor accessor)
void logError(Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)
void logInfo(Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)
void logMessageStatusUpdateRecord(Message message, StatusUpdateUtil.Level level, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)
Create a statusupdate that is related to a cluster manager message, then record it to the zookeeper store.
void logWarning(Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StatusUpdateUtil ()

Public Methods

public ZNRecord createEmptyStatusUpdateRecord (String id)

Creates an empty ZNRecord as the statusUpdate/error record

public ZNRecord createMessageStatusUpdateRecord (Message message, StatusUpdateUtil.Level level, Class<?> classInfo, String additionalInfo)

Create a statusupdate that is related to a cluster manager message.

Parameters
message the related cluster manager message
level the error level
classInfo class info about the class that reports the status update

public void logError (Message message, Class<?> classInfo, Exception e, String additionalInfo, HelixDataAccessor accessor)

public void logError (Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)

public void logInfo (Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)

public void logMessageStatusUpdateRecord (Message message, StatusUpdateUtil.Level level, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)

Create a statusupdate that is related to a cluster manager message, then record it to the zookeeper store.

Parameters
message the related cluster manager message
level the error level
classInfo class info about the class that reports the status update
accessor the zookeeper data accessor that writes the status update to zookeeper

public void logWarning (Message message, Class<?> classInfo, String additionalInfo, HelixDataAccessor accessor)