com.cloudera.api.model
Enum ApiEventCategory

java.lang.Object
  extended by java.lang.Enum<ApiEventCategory>
      extended by com.cloudera.api.model.ApiEventCategory
All Implemented Interfaces:
Serializable, Comparable<ApiEventCategory>

public enum ApiEventCategory
extends Enum<ApiEventCategory>


Enum Constant Summary
ACTIVITY_EVENT
          This event was triggered by an activity event e.g.
AUDIT_EVENT
          This event was caused by an audit event e.g.
HBASE
          This is an HBase domain specific-event.
HEALTH_EVENT
          This event was generate during a health check
LOG_EVENT
          This event was sent because a specific log message was detected
SYSTEM
          This event was generated by the CM server for a system event
UNKNOWN
          The category of this event is unknown
 
Method Summary
static ApiEventCategory fromString(String category)
           
static ApiEventCategory valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiEventCategory[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final ApiEventCategory UNKNOWN
The category of this event is unknown


HEALTH_EVENT

public static final ApiEventCategory HEALTH_EVENT
This event was generate during a health check


LOG_EVENT

public static final ApiEventCategory LOG_EVENT
This event was sent because a specific log message was detected


AUDIT_EVENT

public static final ApiEventCategory AUDIT_EVENT
This event was caused by an audit event e.g. service restart, role reconfiguration, etc


ACTIVITY_EVENT

public static final ApiEventCategory ACTIVITY_EVENT
This event was triggered by an activity event e.g. activity entered shuffle phase, stopped, preempted, etc


HBASE

public static final ApiEventCategory HBASE
This is an HBase domain specific-event.


SYSTEM

public static final ApiEventCategory SYSTEM
This event was generated by the CM server for a system event

Method Detail

values

public static ApiEventCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ApiEventCategory c : ApiEventCategory.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ApiEventCategory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromString

public static ApiEventCategory fromString(String category)
Parameters:
category - String value of a category.
Returns:
The category enum. Note that UNKNOWN is not valid.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.