com.sun.n1.sps.model.host
Class UpgradeNodeState

java.lang.Object
  extended by com.sun.n1.util.enum.EnumImpl
      extended by com.sun.n1.util.enumx.EnumXImpl
          extended by com.sun.n1.sps.model.host.UpgradeNodeState
All Implemented Interfaces:
Enum, EnumX

public class UpgradeNodeState
extends EnumXImpl

Instances of this class indicate the exact state of a node within an upgrade task. The state transitions happen as follows..

 UNPROCESSED (initial state for all nodes)
     |
     |    processing (mark upgradable nodes)
     |
     |-- UPGRADED (nodes already upgraded)
     |-- FAILED (nodes not reachable, impacts all descendents of the node)
     |
     |    processing (trim upgraded nodes) removes all subtrees having only upgraded nodes.
     |
  NOT_STARTED (nodes needing upgrades)
     |
     |    processing (find upgrade jars)
     |
     |-- FAILED (no upgrade jars available to upgrade these nodes)
     |
  IN_PROGRESS (nodes ready to be upgraded)
     |
     |    processing (push jars to the node)
     |
     |-- FAILED (failed to push jars, impacts all descendents of the node)
     |
  UPGRADING (node needing upgrades and receiving jars)
     |
     |    processing (deploy jars)
     |
     |-- FAILED (failed to deploy jars)
     |
  DEPLOYED (nodes with upgrades deployed)
     |
     |    processing (restart upgraded nodes)
     |
     |-- ACTION_REQUIRED (node needs manual restart or failed when restarting)
     |
     |-- PARTIALLY_COMPLETED (node needs to be upgraded again)
     |
  SUCCESSFUL (successfully upgraded node)
 


Nested Class Summary
static class UpgradeNodeState.FACTORY
          Factory for upgrade node state enums.
 
Field Summary
static UpgradeNodeState ACTION_REQUIRED
          Indicates that processing of the node completed successfully but user action is required to make the node operational again.
static UpgradeNodeState DEPLOYED
          Indicates that files were successfully deployed to the node..
static UpgradeNodeState.FACTORY Factory
          The factory which may be used to lookup UpgradeNodeState by string or int value.
static UpgradeNodeState FAILED
          Indicates that processing of the node failed with errors.
static UpgradeNodeState IN_PROGRESS
          Indicates that processing of the node has started but has not completed yet.
static UpgradeNodeState NOT_STARTED
          Indicates that processing of the node has not started yet.
static UpgradeNodeState PARTIALLY_COMPLETED
          Indicates that the node has been partially upgraded.
static UpgradeNodeState SUCCESSFUL
          Indicates that processing of the node completed successfully.
static UpgradeNodeState UNPROCESSED
          Indicates that the node hasn't been processed.
static UpgradeNodeState UPGRADED
          Indicates that the node is already upgraded.
static UpgradeNodeState UPGRADING
          Indicates that the node is being currently upgraded.
 
Method Summary
 
Methods inherited from class com.sun.n1.util.enum.EnumImpl
equals, hashCode, toInt, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.n1.util.enum.Enum
toInt
 

Field Detail

Factory

public static final UpgradeNodeState.FACTORY Factory
The factory which may be used to lookup UpgradeNodeState by string or int value.


UNPROCESSED

public static final UpgradeNodeState UNPROCESSED
Indicates that the node hasn't been processed.


UPGRADED

public static final UpgradeNodeState UPGRADED
Indicates that the node is already upgraded.


NOT_STARTED

public static final UpgradeNodeState NOT_STARTED
Indicates that processing of the node has not started yet.


IN_PROGRESS

public static final UpgradeNodeState IN_PROGRESS
Indicates that processing of the node has started but has not completed yet.


UPGRADING

public static final UpgradeNodeState UPGRADING
Indicates that the node is being currently upgraded.


FAILED

public static final UpgradeNodeState FAILED
Indicates that processing of the node failed with errors.


DEPLOYED

public static final UpgradeNodeState DEPLOYED
Indicates that files were successfully deployed to the node..


SUCCESSFUL

public static final UpgradeNodeState SUCCESSFUL
Indicates that processing of the node completed successfully.


ACTION_REQUIRED

public static final UpgradeNodeState ACTION_REQUIRED
Indicates that processing of the node completed successfully but user action is required to make the node operational again. The details should be consulted to figure out what action is required.


PARTIALLY_COMPLETED

public static final UpgradeNodeState PARTIALLY_COMPLETED
Indicates that the node has been partially upgraded. The user needs to run upgrade again to completely upgrade this node.