Interface Operation

    • Method Detail

      • prepare

        void prepare​(Map<String,​Object> conf,
                     TridentOperationContext context)
        Called when the `Operation` is first initialized.
        Parameters:
        conf - the Storm configuration map
        context - the operation context which provides information such as the number of partitions in the stream, and the current partition index. It also provides methods for registering operation-specific metrics.
        See Also:
        TridentOperationContext
      • cleanup

        void cleanup()
        When running in local mode, called when the local cluster is being shut down.