JobScheduleExecutionInformation Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.JobScheduleExecutionInformation

public class JobScheduleExecutionInformation

Contains information about jobs that have been and will be run under a job schedule.

Method Summary

Modifier and Type Method and Description
DateTime endTime()

Get this property is set only if the job schedule is in the completed state.

DateTime nextRunTime()

Get this property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no job will be created at nextRunTime unless the job is enabled before then.

RecentJob recentJob()

Get this property is present only if the at least one job has run under the schedule.

JobScheduleExecutionInformation withEndTime(DateTime endTime)

Set this property is set only if the job schedule is in the completed state.

JobScheduleExecutionInformation withNextRunTime(DateTime nextRunTime)

Set this property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no job will be created at nextRunTime unless the job is enabled before then.

JobScheduleExecutionInformation withRecentJob(RecentJob recentJob)

Set this property is present only if the at least one job has run under the schedule.

Method Details

endTime

public DateTime endTime()

Get this property is set only if the job schedule is in the completed state.

Returns:

the endTime value

nextRunTime

public DateTime nextRunTime()

Get this property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no job will be created at nextRunTime unless the job is enabled before then.

Returns:

the nextRunTime value

recentJob

public RecentJob recentJob()

Get this property is present only if the at least one job has run under the schedule.

Returns:

the recentJob value

withEndTime

public JobScheduleExecutionInformation withEndTime(DateTime endTime)

Set this property is set only if the job schedule is in the completed state.

Parameters:

endTime - the endTime value to set

Returns:

the JobScheduleExecutionInformation object itself.

withNextRunTime

public JobScheduleExecutionInformation withNextRunTime(DateTime nextRunTime)

Set this property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no job will be created at nextRunTime unless the job is enabled before then.

Parameters:

nextRunTime - the nextRunTime value to set

Returns:

the JobScheduleExecutionInformation object itself.

withRecentJob

public JobScheduleExecutionInformation withRecentJob(RecentJob recentJob)

Set this property is present only if the at least one job has run under the schedule.

Parameters:

recentJob - the recentJob value to set

Returns:

the JobScheduleExecutionInformation object itself.

Applies to