org.jboss.system.server.profileservice.repository.clustered.sync
Enum ContentModification.Type

java.lang.Object
  extended by java.lang.Enum<ContentModification.Type>
      extended by org.jboss.system.server.profileservice.repository.clustered.sync.ContentModification.Type
All Implemented Interfaces:
Serializable, Comparable<ContentModification.Type>
Enclosing class:
ContentModification

public static enum ContentModification.Type
extends Enum<ContentModification.Type>


Enum Constant Summary
DIR_TIMESTAMP_MISMATCH
          This node's directory with the same path as the related RepositoryItemMetadata has a different timestamp.
MKDIR_FROM_CLUSTER
          This node needs to make a new directory
MKDIR_TO_CLUSTER
          This node needs to tell the cluster to make a new directory
PREPARE_RMDIR_FROM_CLUSTER
          This node needs to prepare to remove a directory.
PREPARE_RMDIR_TO_CLUSTER
          This node needs to tell the cluster to prepare to remove a directory.
PULL_FROM_CLUSTER
          This node needs to pull the item from the cluster and store it locally.
PUSH_INPUT_STREAM_TO_CLUSTER
          This node needs to push the item to the cluster.
PUSH_TO_CLUSTER
          This node needs to push the item to the cluster.
REMOVAL_METADATA_FROM_CLUSTER
          This node needs to add some metadata for an item that has been removed.
REMOVE_FROM_CLUSTER
          This node it needs to remove this item locally.
REMOVE_TO_CLUSTER
          This node needs to tell the cluster to remove the item.
 
Method Summary
static ContentModification.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContentModification.Type[] 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

PULL_FROM_CLUSTER

public static final ContentModification.Type PULL_FROM_CLUSTER
This node needs to pull the item from the cluster and store it locally.


REMOVE_FROM_CLUSTER

public static final ContentModification.Type REMOVE_FROM_CLUSTER
This node it needs to remove this item locally.


PUSH_TO_CLUSTER

public static final ContentModification.Type PUSH_TO_CLUSTER
This node needs to push the item to the cluster.


PUSH_INPUT_STREAM_TO_CLUSTER

public static final ContentModification.Type PUSH_INPUT_STREAM_TO_CLUSTER
This node needs to push the item to the cluster.


REMOVE_TO_CLUSTER

public static final ContentModification.Type REMOVE_TO_CLUSTER
This node needs to tell the cluster to remove the item.


MKDIR_FROM_CLUSTER

public static final ContentModification.Type MKDIR_FROM_CLUSTER
This node needs to make a new directory


MKDIR_TO_CLUSTER

public static final ContentModification.Type MKDIR_TO_CLUSTER
This node needs to tell the cluster to make a new directory


PREPARE_RMDIR_TO_CLUSTER

public static final ContentModification.Type PREPARE_RMDIR_TO_CLUSTER
This node needs to tell the cluster to prepare to remove a directory. The actual removal will come later, via a REMOVE_TO_CLUSTER, after all directory children are removed as well. The "prepare" modification allows the remote nodes to set up a RepositorySynchronizationAction to rollback the directory removal.


PREPARE_RMDIR_FROM_CLUSTER

public static final ContentModification.Type PREPARE_RMDIR_FROM_CLUSTER
This node needs to prepare to remove a directory. The actual removal will come later, via a REMOVE_FROM_CLUSTER, after all directory children are removed as well. The "prepare" modification allows the node to set up a RepositorySynchronizationAction to rollback the directory removal.


DIR_TIMESTAMP_MISMATCH

public static final ContentModification.Type DIR_TIMESTAMP_MISMATCH
This node's directory with the same path as the related RepositoryItemMetadata has a different timestamp. What if anything the node should do about this is unspecified. The RepositoryItemMetadata included in this RepositoryContentModification will be the cluster version, as this node should know its own version.


REMOVAL_METADATA_FROM_CLUSTER

public static final ContentModification.Type REMOVAL_METADATA_FROM_CLUSTER
This node needs to add some metadata for an item that has been removed. Used when this node doesn't have the item either, but is lacking information on when it was removed. The RepositoryItemMetadata included in this RepositoryContentModification will return true to RepositoryItemMetadata.isRemoved().

Method Detail

values

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

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

valueOf

public static ContentModification.Type 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.