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 StringThe Constant DONE.static final StringThe Constant EXEC.static final StringThe Constant FAIL.static final StringThe Constant FETC.static final StringThe Constant HOLD.static final StringThe Constant IDLE.static final StringThe Constant INIT.static final StringThe Constant INTR.static final String[][]The Constant productMapping.static final StringThe Constant RETR.static final StringThe Constant RSTR.static final StringThe Constant SCHE.static final StringThe Constant STOP.static final StringThe Constant WAIT. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDataTransferStatusCode(String statusName) Gets the data transfer status code.static String[]Gets all data transfer status codes.static StringgetDataTransferStatusName(boolean restrictedUser, DataTransfer transfer, String statusCode) Gets the data transfer status name.static StringgetDataTransferStatusName(boolean restrictedUser, String statusCode) Gets the data transfer status name.static String[]Gets all data transfer status names.static StringgetDestinationStatusCode(String statusName) Gets the destination status code.static String[]Gets all destination status codes.static StringgetDestinationStatusName(Destination destination, String statusCode) Gets the destination status name.static StringgetDestinationStatusName(String statusCode) Gets the destination status name.static String[]Gets all destination status names.static StringgetProductStatusCode(String statusName) Gets the product status code.static StringgetProductStatusName(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
-