Package gov.usgs.earthquake.distribution
Class ProductResender
java.lang.Object
gov.usgs.earthquake.distribution.ProductResender
A utility class to (re)send an existing product to pdl hubs.
Mainly used when one server has not received a product, in order to
redistribute the product.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Command Line Interface to ProductResender.protected static void
sendProduct
(ProductBuilder builder, Product product, boolean batchMode) Sends product to builder
-
Field Details
-
SERVERS_ARGUMENT
Servers arguments- See Also:
-
BATCH_ARGUMENT
Batch arguments- See Also:
-
PRIVATE_KEY_ARGUMENT
Private Key Argument- See Also:
-
-
Constructor Details
-
ProductResender
public ProductResender()
-
-
Method Details
-
main
Command Line Interface to ProductResender.- Parameters:
args
- CLI arguments- Throws:
Exception
- if error occurs
-
sendProduct
protected static void sendProduct(ProductBuilder builder, Product product, boolean batchMode) throws Exception Sends product to builder- Parameters:
builder
- ProductBuilderproduct
- ProductbatchMode
- bool- Throws:
Exception
- if error occurs
-