org.rhq.enterprise.agent
Enum AgentRestartCounter.AgentRestartReason

java.lang.Object
  extended by java.lang.Enum<AgentRestartCounter.AgentRestartReason>
      extended by org.rhq.enterprise.agent.AgentRestartCounter.AgentRestartReason
All Implemented Interfaces:
Serializable, Comparable<AgentRestartCounter.AgentRestartReason>
Enclosing class:
AgentRestartCounter

public static enum AgentRestartCounter.AgentRestartReason
extends Enum<AgentRestartCounter.AgentRestartReason>


Enum Constant Summary
OPERATION
          The agent was restarted by the agent plugin's restart operation.
PROCESS_START
          The agent was started at agent JVM process start time.
PROMPT_COMMAND
          The agent was restarted by an agent prompt command.
STALE_INVENTORY
          The agent contains one or more stale resource types that need to be purged.
VM_HEALTH_CHECK
          The agent was restarted by the VM Health Check in an attempt to correct a critical error occurring in the agent.
 
Method Summary
static AgentRestartCounter.AgentRestartReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AgentRestartCounter.AgentRestartReason[] 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

PROCESS_START

public static final AgentRestartCounter.AgentRestartReason PROCESS_START
The agent was started at agent JVM process start time.


PROMPT_COMMAND

public static final AgentRestartCounter.AgentRestartReason PROMPT_COMMAND
The agent was restarted by an agent prompt command.


OPERATION

public static final AgentRestartCounter.AgentRestartReason OPERATION
The agent was restarted by the agent plugin's restart operation.


VM_HEALTH_CHECK

public static final AgentRestartCounter.AgentRestartReason VM_HEALTH_CHECK
The agent was restarted by the VM Health Check in an attempt to correct a critical error occurring in the agent.


STALE_INVENTORY

public static final AgentRestartCounter.AgentRestartReason STALE_INVENTORY
The agent contains one or more stale resource types that need to be purged. This will occur when a plugin is deleted on the server and the agent is subsequently notified of the stale types when it sends up to the server an inventory report containing those types. The server will reject the report, throwing an exception letting the agent know it needs to restart to update its plugins.

Method Detail

values

public static AgentRestartCounter.AgentRestartReason[] 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 (AgentRestartCounter.AgentRestartReason c : AgentRestartCounter.AgentRestartReason.values())
    System.out.println(c);

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

valueOf

public static AgentRestartCounter.AgentRestartReason 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


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.