org.rhq.enterprise.server.sync
Enum SynchronizedEntity

java.lang.Object
  extended by java.lang.Enum<SynchronizedEntity>
      extended by org.rhq.enterprise.server.sync.SynchronizedEntity
All Implemented Interfaces:
Serializable, Comparable<SynchronizedEntity>

public enum SynchronizedEntity
extends Enum<SynchronizedEntity>

The enum of all possible synchronized entities. This is used in the SynchronizerFactory.getAllSynchronizers() to provide the synchronizers to the rest of the config sync machinery.

Author:
Lukas Krejci

Enum Constant Summary
METRIC_TEMPLATE
           
SYSTEM_SETTINGS
           
 
Method Summary
abstract  Synchronizer<?,?> getSynchronizer()
          Returns the synchronizer for given subsystem.
static SynchronizedEntity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SynchronizedEntity[] 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

METRIC_TEMPLATE

public static final SynchronizedEntity METRIC_TEMPLATE

SYSTEM_SETTINGS

public static final SynchronizedEntity SYSTEM_SETTINGS
Method Detail

values

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

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

valueOf

public static SynchronizedEntity 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

getSynchronizer

public abstract Synchronizer<?,?> getSynchronizer()
Returns the synchronizer for given subsystem.

Returns:


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