Class ProductResender


  • public class ProductResender
    extends java.lang.Object
    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.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProductResender()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Command Line Interface to ProductResender.
      protected static void sendProduct​(ProductBuilder builder, Product product, boolean batchMode)
      Sends product to builder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SERVERS_ARGUMENT

        public static final java.lang.String SERVERS_ARGUMENT
        Servers arguments
        See Also:
        Constant Field Values
      • BATCH_ARGUMENT

        public static final java.lang.String BATCH_ARGUMENT
        Batch arguments
        See Also:
        Constant Field Values
      • PRIVATE_KEY_ARGUMENT

        public static final java.lang.String PRIVATE_KEY_ARGUMENT
        Private Key Argument
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductResender

        public ProductResender()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Command Line Interface to ProductResender.
        Parameters:
        args - CLI arguments
        Throws:
        java.lang.Exception - if error occurs
      • sendProduct

        protected static void sendProduct​(ProductBuilder builder,
                                          Product product,
                                          boolean batchMode)
                                   throws java.lang.Exception
        Sends product to builder
        Parameters:
        builder - ProductBuilder
        product - Product
        batchMode - bool
        Throws:
        java.lang.Exception - if error occurs