Interface ScoreEventFactory


public interface ScoreEventFactory
User: Date: 30/07/2014 A factory to create ScoreEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    io.cloudslang.score.events.ScoreEvent
    createFailedBranchEvent(io.cloudslang.score.facade.entities.Execution execution)
    Creates a ScoreEvent for failed branch execution state
    io.cloudslang.score.events.ScoreEvent
    createFailureEvent(io.cloudslang.score.facade.entities.Execution execution)
    Creates a ScoreEvent for failure execution state
    io.cloudslang.score.events.ScoreEvent
    createFinishedBranchEvent(io.cloudslang.score.facade.entities.Execution execution)
    Creates a ScoreEvent for finished branch execution state
    io.cloudslang.score.events.ScoreEvent
    createFinishedEvent(io.cloudslang.score.facade.entities.Execution execution)
    Creates a ScoreEvent for finished execution state
    io.cloudslang.score.events.ScoreEvent
    createNoWorkerEvent(io.cloudslang.score.facade.entities.Execution execution, Long pauseId)
    Creates a ScoreEvent for no worker execution state
  • Method Details

    • createFinishedEvent

      io.cloudslang.score.events.ScoreEvent createFinishedEvent(io.cloudslang.score.facade.entities.Execution execution)
      Creates a ScoreEvent for finished execution state
      Parameters:
      execution - the execution to create the event from
      Returns:
      ScoreEvent of the finished state
    • createFailedBranchEvent

      io.cloudslang.score.events.ScoreEvent createFailedBranchEvent(io.cloudslang.score.facade.entities.Execution execution)
      Creates a ScoreEvent for failed branch execution state
      Parameters:
      execution - the execution to create the event from
      Returns:
      ScoreEvent of the failed branch state
    • createFailureEvent

      io.cloudslang.score.events.ScoreEvent createFailureEvent(io.cloudslang.score.facade.entities.Execution execution)
      Creates a ScoreEvent for failure execution state
      Parameters:
      execution - the execution to create the event from
      Returns:
      ScoreEvent of the failure state
    • createNoWorkerEvent

      io.cloudslang.score.events.ScoreEvent createNoWorkerEvent(io.cloudslang.score.facade.entities.Execution execution, Long pauseId)
      Creates a ScoreEvent for no worker execution state
      Parameters:
      execution - the execution to create the event from
      Returns:
      ScoreEvent of the no worker state
    • createFinishedBranchEvent

      io.cloudslang.score.events.ScoreEvent createFinishedBranchEvent(io.cloudslang.score.facade.entities.Execution execution)
      Creates a ScoreEvent for finished branch execution state
      Parameters:
      execution - the execution to create the event from
      Returns:
      ScoreEvent of the finished branch state