Packages

c

org.codefeedr.plugins.pypi.operators

PyPiReleasesSource

class PyPiReleasesSource extends RichSourceFunction[PyPiRelease] with CheckpointedFunction

Linear Supertypes
CheckpointedFunction, RichSourceFunction[PyPiRelease], SourceFunction[PyPiRelease], AbstractRichFunction, RichFunction, Function, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PyPiReleasesSource
  2. CheckpointedFunction
  3. RichSourceFunction
  4. SourceFunction
  5. AbstractRichFunction
  6. RichFunction
  7. Function
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PyPiReleasesSource(config: PyPiSourceConfig = PyPiSourceConfig())

Value Members

  1. def cancel(): Unit

    Close the source.

    Close the source.

    Definition Classes
    PyPiReleasesSource → SourceFunction
  2. def close(): Unit
    Definition Classes
    AbstractRichFunction → RichFunction
    Annotations
    @throws( classOf[java.lang.Exception] )
  3. val dateFormat: String

    Format and URL of RSS Feed.

  4. def decreaseRunsLeft(): Unit

    If there is a limit to the amount of runs decrease by 1

  5. def getIsRunning: Boolean
  6. def getIterationRuntimeContext(): IterationRuntimeContext
    Definition Classes
    AbstractRichFunction → RichFunction
  7. def getRSSAsString: String

    Requests the RSS feed and returns its body as a string.

    Requests the RSS feed and returns its body as a string. Will keep trying with increasing intervals if it doesn't succeed

    returns

    Body of requested RSS feed

    Annotations
    @throws( ... )
  8. def getRuntimeContext(): RuntimeContext
    Definition Classes
    AbstractRichFunction → RichFunction
  9. def initializeState(context: FunctionInitializationContext): Unit

    Initializes state by reading from a checkpoint or creating an empty one.

    Initializes state by reading from a checkpoint or creating an empty one.

    Definition Classes
    PyPiReleasesSource → CheckpointedFunction
  10. def open(parameters: Configuration): Unit

    Opens this source.

    Opens this source.

    Definition Classes
    PyPiReleasesSource → AbstractRichFunction → RichFunction
  11. def parseRSSString(rssString: String): Seq[PyPiRelease]

    Parses a string that contains xml with RSS items

    Parses a string that contains xml with RSS items

    rssString

    XML string with RSS items

    returns

    Sequence of RSS items

  12. val releasesProcessed: LongCounter

    Accumulator for the amount of processed releases.

  13. def run(ctx: SourceContext[PyPiRelease]): Unit

    Runs the source.

    Runs the source.

    ctx

    the source the context.

    Definition Classes
    PyPiReleasesSource → SourceFunction
  14. def setRuntimeContext(arg0: RuntimeContext): Unit
    Definition Classes
    AbstractRichFunction → RichFunction
  15. def snapshotState(context: FunctionSnapshotContext): Unit

    Make a snapshot of the current state.

    Make a snapshot of the current state.

    Definition Classes
    PyPiReleasesSource → CheckpointedFunction
  16. def sortAndDropDuplicates(items: Seq[PyPiRelease]): Seq[PyPiRelease]

    Drops items that already have been collected and sorts them based on times

    Drops items that already have been collected and sorts them based on times

    items

    Potential items to be collected

    returns

    Valid sorted items

  17. val url: String
  18. def waitPollingInterval(times: Int = 1): Unit

    Wait a certain amount of times the polling interval

    Wait a certain amount of times the polling interval

    times

    Times the polling interval should be waited

  19. def xmlToPyPiRelease(node: Node): PyPiRelease

    Parses a xml node to a RSS item

    Parses a xml node to a RSS item

    node

    XML node

    returns

    RSS item