Class StatusFactory
java.lang.Object
ecmwf.ecpds.master.transfer.StatusFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[][]
The Constant dataTransferMapping.static final String[][]
The Constant destinationMapping.static final String
The Constant DONE.static final String
The Constant EXEC.static final String
The Constant FAIL.static final String
The Constant FETC.static final String
The Constant HOLD.static final String
The Constant IDLE.static final String
The Constant INIT.static final String
The Constant INTR.static final String[][]
The Constant productMapping.static final String
The Constant RETR.static final String
The Constant RSTR.static final String
The Constant SCHE.static final String
The Constant STOP.static final String
The Constant WAIT. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDataTransferStatusCode
(String statusName) Gets the data transfer status code.static String[]
Gets all data transfer status codes.static String
getDataTransferStatusName
(boolean restrictedUser, DataTransfer transfer, String statusCode) Gets the data transfer status name.static String
getDataTransferStatusName
(boolean restrictedUser, String statusCode) Gets the data transfer status name.static String[]
Gets all data transfer status names.static String
getDestinationStatusCode
(String statusName) Gets the destination status code.static String[]
Gets all destination status codes.static String
getDestinationStatusName
(Destination destination, String statusCode) Gets the destination status name.static String
getDestinationStatusName
(String statusCode) Gets the destination status name.static String[]
Gets all destination status names.static String
getProductStatusCode
(String statusName) Gets the product status code.static String
getProductStatusName
(String statusCode) Gets the product status name.
-
Field Details
-
INIT
-
INTR
-
HOLD
-
DONE
-
WAIT
-
STOP
-
EXEC
-
RETR
-
FAIL
-
IDLE
-
SCHE
-
FETC
-
RSTR
-
dataTransferMapping
The Constant dataTransferMapping. -
destinationMapping
The Constant destinationMapping. -
productMapping
The Constant productMapping.
-
-
Constructor Details
-
StatusFactory
public StatusFactory()
-
-
Method Details
-
getDataTransferStatusName
public static String getDataTransferStatusName(boolean restrictedUser, DataTransfer transfer, String statusCode) Gets the data transfer status name.- Parameters:
restrictedUser
- the restricted usertransfer
- the transferstatusCode
- the status code- Returns:
- the data transfer status name
-
getDataTransferStatusName
-
getDataTransferStatusCode
-
getDestinationStatusName
Gets the destination status name.- Parameters:
destination
- the destinationstatusCode
- the status code- Returns:
- the destination status name
-
getDestinationStatusName
-
getDestinationStatusCode
-
getProductStatusName
-
getProductStatusCode
-
getDestinationStatusNames
Gets all destination status names.- Returns:
- the list of destination status names
-
getDataTransferStatusNames
Gets all data transfer status names.- Returns:
- the list of data transfer status names
-
getDestinationStatusCodes
Gets all destination status codes.- Returns:
- the list of destination status codes
-
getDataTransferStatusCodes
Gets all data transfer status codes.- Returns:
- the list of data transfer status codes
-