Class RestScheduledJob


  • public class RestScheduledJob
    extends AbstractRestModel
    Model of a Scheduled Job used for REST resources to allow serialization/deserialization to/from JSON and XML.
    • Constructor Detail

      • RestScheduledJob

        public RestScheduledJob()
        Default constructor.
      • RestScheduledJob

        public RestScheduledJob​(@NotNull
                                @NotNull String name,
                                @NotNull
                                @NotNull String groupName,
                                @Nullable
                                @Nullable Date nextScheduledTime)
        Parameterized constructor.
        Parameters:
        name - the name of the job
        groupName - the name of the group the job belongs to
        nextScheduledTime - the next time the job is scheduled to run
      • RestScheduledJob

        public RestScheduledJob​(@NotNull
                                @NotNull ScheduledJob scheduledJob)
        Copy constructor.
        Parameters:
        scheduledJob - the scheduled job to be made a copy of
    • Method Detail

      • toScheduledJob

        @NotNull
        public @NotNull ScheduledJob toScheduledJob()
        Returns a ScheduledJob representation of the object.
        Returns:
        a scheduled job representation
      • getName

        @NotNull
        public @NotNull String getName()
        Gets the name of the job.

        This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.

        Returns:
        the name
      • getGroupName

        @NotNull
        public @NotNull String getGroupName()
        Gets the name of the group the job belongs to.

        This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.

        Returns:
        the name of the group
      • getNextScheduledTime

        @Nullable
        public @Nullable Date getNextScheduledTime()
        Gets the next scheduled time the job will run.

        This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.

        Returns:
        the next scheduled time