Enum AggregationState
- java.lang.Object
-
- java.lang.Enum<AggregationState>
-
- org.gcube.accounting.aggregator.status.AggregationState
-
- All Implemented Interfaces:
Serializable,Comparable<AggregationState>
public enum AggregationState extends Enum<AggregationState>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDEDAggregated Records has been saved on DB and the backup file has been deletedAGGREGATEDOriginal Records were aggregated.COMPLETEDThe backup file of Original Records has been saved on Workspace and the local file has been deletedDELETEDOriginal Records has been deleted from DB.RESTARTEDThe Aggregation has been startedSTARTEDThe Aggregation has been started
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanContinue(AggregationState effective, AggregationState desired)static AggregationStatevalueOf(String name)Returns the enum constant of this type with the specified name.static AggregationState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESTARTED
public static final AggregationState RESTARTED
The Aggregation has been started
-
STARTED
public static final AggregationState STARTED
The Aggregation has been started
-
AGGREGATED
public static final AggregationState AGGREGATED
Original Records were aggregated. Original Records and Aggregated ones has been saved on a local files
-
DELETED
public static final AggregationState DELETED
Original Records has been deleted from DB.
-
ADDED
public static final AggregationState ADDED
Aggregated Records has been saved on DB and the backup file has been deleted
-
COMPLETED
public static final AggregationState COMPLETED
The backup file of Original Records has been saved on Workspace and the local file has been deleted
-
-
Method Detail
-
values
public static AggregationState[] 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 (AggregationState c : AggregationState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AggregationState 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 nameNullPointerException- if the argument is null
-
canContinue
public static boolean canContinue(AggregationState effective, AggregationState desired) throws Exception
- Throws:
Exception
-
-