CloudJobSchedule Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. CloudJobSchedule
- com.
public class CloudJobSchedule
A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job.
Constructor Summary
Constructor | Description | |
---|---|---|
CloudJobSchedule() |
Method Summary
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
creationTime()
Get the creation |
String |
displayName()
Get the display |
String |
eTag()
Get this is an opaque string. |
Job |
executionInfo()
Get the execution |
String |
id()
Get the id value. |
Job |
jobSpecification()
Get the job |
org.joda.time.DateTime |
lastModified()
Get this is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. |
List<Metadata |
metadata()
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Job |
previousState()
Get this property is not present if the Job Schedule is in its initial active state. |
org.joda.time.DateTime |
previousStateTransitionTime()
Get this property is not present if the Job Schedule is in its initial active state. |
Schedule |
schedule()
Get all times are fixed respective to UTC and are not impacted by daylight saving time. |
Job |
state()
Get possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
org.joda.time.DateTime |
stateTransitionTime()
Get the state |
Job |
stats()
Get the stats value. |
String |
url()
Get the url value. |
Cloud |
withCreationTime(DateTime creationTime)
Set the creation |
Cloud |
withDisplayName(String displayName)
Set the display |
Cloud |
withETag(String eTag)
Set this is an opaque string. |
Cloud |
withExecutionInfo(JobScheduleExecutionInformation executionInfo)
Set the execution |
Cloud |
withId(String id)
Set the id value. |
Cloud |
withJobSpecification(JobSpecification jobSpecification)
Set the job |
Cloud |
withLastModified(DateTime lastModified)
Set this is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. |
Cloud |
withMetadata(List<MetadataItem> metadata)
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Cloud |
withPreviousState(JobScheduleState previousState)
Set this property is not present if the Job Schedule is in its initial active state. |
Cloud |
withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not present if the Job Schedule is in its initial active state. |
Cloud |
withSchedule(Schedule schedule)
Set all times are fixed respective to UTC and are not impacted by daylight saving time. |
Cloud |
withState(JobScheduleState state)
Set possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
Cloud |
withStateTransitionTime(DateTime stateTransitionTime)
Set the state |
Cloud |
withStats(JobScheduleStatistics stats)
Set the stats value. |
Cloud |
withUrl(String url)
Set the url value. |
Methods inherited from java.lang.Object
Constructor Details
CloudJobSchedule
public CloudJobSchedule()
Method Details
creationTime
public DateTime creationTime()
Get the creationTime value.
Returns:
displayName
public String displayName()
Get the displayName value.
Returns:
eTag
public String eTag()
Get this is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.
Returns:
executionInfo
public JobScheduleExecutionInformation executionInfo()
Get the executionInfo value.
Returns:
id
public String id()
Get the id value.
Returns:
jobSpecification
public JobSpecification jobSpecification()
Get the jobSpecification value.
Returns:
lastModified
public DateTime lastModified()
Get this is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.
Returns:
metadata
public List
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Returns:
previousState
public JobScheduleState previousState()
Get this property is not present if the Job Schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Returns:
previousStateTransitionTime
public DateTime previousStateTransitionTime()
Get this property is not present if the Job Schedule is in its initial active state.
Returns:
schedule
public Schedule schedule()
Get all times are fixed respective to UTC and are not impacted by daylight saving time.
Returns:
state
public JobScheduleState state()
Get possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Returns:
stateTransitionTime
public DateTime stateTransitionTime()
Get the stateTransitionTime value.
Returns:
stats
public JobScheduleStatistics stats()
Get the stats value.
Returns:
url
public String url()
Get the url value.
Returns:
withCreationTime
public CloudJobSchedule withCreationTime(DateTime creationTime)
Set the creationTime value.
Parameters:
Returns:
withDisplayName
public CloudJobSchedule withDisplayName(String displayName)
Set the displayName value.
Parameters:
Returns:
withETag
public CloudJobSchedule withETag(String eTag)
Set this is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.
Parameters:
Returns:
withExecutionInfo
public CloudJobSchedule withExecutionInfo(JobScheduleExecutionInformation executionInfo)
Set the executionInfo value.
Parameters:
Returns:
withId
public CloudJobSchedule withId(String id)
Set the id value.
Parameters:
Returns:
withJobSpecification
public CloudJobSchedule withJobSpecification(JobSpecification jobSpecification)
Set the jobSpecification value.
Parameters:
Returns:
withLastModified
public CloudJobSchedule withLastModified(DateTime lastModified)
Set this is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.
Parameters:
Returns:
withMetadata
public CloudJobSchedule withMetadata(List
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Parameters:
Returns:
withPreviousState
public CloudJobSchedule withPreviousState(JobScheduleState previousState)
Set this property is not present if the Job Schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Parameters:
Returns:
withPreviousStateTransitionTime
public CloudJobSchedule withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not present if the Job Schedule is in its initial active state.
Parameters:
Returns:
withSchedule
public CloudJobSchedule withSchedule(Schedule schedule)
Set all times are fixed respective to UTC and are not impacted by daylight saving time.
Parameters:
Returns:
withState
public CloudJobSchedule withState(JobScheduleState state)
Set possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Parameters:
Returns:
withStateTransitionTime
public CloudJobSchedule withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value.
Parameters:
Returns:
withStats
public CloudJobSchedule withStats(JobScheduleStatistics stats)
Set the stats value.
Parameters:
Returns:
withUrl
public CloudJobSchedule withUrl(String url)
Set the url value.
Parameters:
Returns: