Class Job
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datacatalog.model.Job
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190325") public final class Job extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDetails of a job.Jobs are scheduled instances of a job definition. 
 Note: Objects should always be created or deserialized using theJob.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theJob.Builder, which maintain a set of all explicitly set fields calledJob.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJob.Builder
 - 
Constructor SummaryConstructors Constructor Description Job(String key, String displayName, String description, String catalogId, JobLifecycleState lifecycleState, Date timeCreated, Date timeUpdated, JobType jobType, String scheduleCronExpression, Date timeScheduleBegin, Date timeScheduleEnd, JobScheduleType scheduleType, String connectionKey, String jobDefinitionKey, String internalVersion, Integer executionCount, Date timeOfLatestExecution, String createdById, String updatedById, String jobDefinitionName, String dataAssetKey, String glossaryKey, String errorCode, String errorMessage, String uri)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Job.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCatalogId()The data catalog’s OCID.StringgetConnectionKey()The key of the connection used by the job.StringgetCreatedById()OCID of the user who created this job.StringgetDataAssetKey()Unique key of the data asset to which this job applies, if the job involves a data asset.StringgetDescription()Detailed description of the job.StringgetDisplayName()A user-friendly display name.StringgetErrorCode()Error code returned from the latest job execution for this job.StringgetErrorMessage()Error message returned from the latest job execution for this job.IntegergetExecutionCount()The total number of executions for this job schedule.StringgetGlossaryKey()Unique key of the glossary to which this job applies.StringgetInternalVersion()Internal version of the job resource.StringgetJobDefinitionKey()The unique key of the job definition resource that defined the scope of this job.StringgetJobDefinitionName()The display name of the job definition resource that defined the scope of this job.JobTypegetJobType()Type of the job.StringgetKey()Unique key of the job resource.JobLifecycleStategetLifecycleState()Lifecycle state for job.StringgetScheduleCronExpression()Interval on which the job will be run.JobScheduleTypegetScheduleType()Type of job schedule that is inferred from the scheduling properties.DategetTimeCreated()The date and time the job was created, in the format defined by RFC3339.DategetTimeOfLatestExecution()The date and time of the most recent execution for this Job, in the format defined by RFC3339.DategetTimeScheduleBegin()Date that the schedule should be operational.DategetTimeScheduleEnd()Date that the schedule should end from being operational.DategetTimeUpdated()Time that this job was last updated.StringgetUpdatedById()OCID of the user who updated this job.StringgetUri()URI to the job instance in the API.inthashCode()Job.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
Job@Deprecated @ConstructorProperties({"key","displayName","description","catalogId","lifecycleState","timeCreated","timeUpdated","jobType","scheduleCronExpression","timeScheduleBegin","timeScheduleEnd","scheduleType","connectionKey","jobDefinitionKey","internalVersion","executionCount","timeOfLatestExecution","createdById","updatedById","jobDefinitionName","dataAssetKey","glossaryKey","errorCode","errorMessage","uri"}) public Job(String key, String displayName, String description, String catalogId, JobLifecycleState lifecycleState, Date timeCreated, Date timeUpdated, JobType jobType, String scheduleCronExpression, Date timeScheduleBegin, Date timeScheduleEnd, JobScheduleType scheduleType, String connectionKey, String jobDefinitionKey, String internalVersion, Integer executionCount, Date timeOfLatestExecution, String createdById, String updatedById, String jobDefinitionName, String dataAssetKey, String glossaryKey, String errorCode, String errorMessage, String uri) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static Job.Builder builder() Create a new builder.
 - 
toBuilderpublic Job.Builder toBuilder() 
 - 
getKeypublic String getKey() Unique key of the job resource.- Returns:
- the value
 
 - 
getDisplayNamepublic String getDisplayName() A user-friendly display name.Does not have to be unique, and it’s changeable. Avoid entering confidential information. - Returns:
- the value
 
 - 
getDescriptionpublic String getDescription() Detailed description of the job.- Returns:
- the value
 
 - 
getCatalogIdpublic String getCatalogId() The data catalog’s OCID.- Returns:
- the value
 
 - 
getLifecycleStatepublic JobLifecycleState getLifecycleState() Lifecycle state for job.- Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the job was created, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z - Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() Time that this job was last updated.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getJobTypepublic JobType getJobType() Type of the job.- Returns:
- the value
 
 - 
getScheduleCronExpressionpublic String getScheduleCronExpression() Interval on which the job will be run.Value is specified as a cron-supported time specification “nickname”. The following subset of those is supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional option @default is supported, which will schedule jobs at a more granular frequency. - Returns:
- the value
 
 - 
getTimeScheduleBeginpublic Date getTimeScheduleBegin() Date that the schedule should be operational.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getTimeScheduleEndpublic Date getTimeScheduleEnd() Date that the schedule should end from being operational.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getScheduleTypepublic JobScheduleType getScheduleType() Type of job schedule that is inferred from the scheduling properties.- Returns:
- the value
 
 - 
getConnectionKeypublic String getConnectionKey() The key of the connection used by the job.This connection will override the default connection specified in the associated job definition. All executions will use this connection. - Returns:
- the value
 
 - 
getJobDefinitionKeypublic String getJobDefinitionKey() The unique key of the job definition resource that defined the scope of this job.- Returns:
- the value
 
 - 
getInternalVersionpublic String getInternalVersion() Internal version of the job resource.- Returns:
- the value
 
 - 
getExecutionCountpublic Integer getExecutionCount() The total number of executions for this job schedule.- Returns:
- the value
 
 - 
getTimeOfLatestExecutionpublic Date getTimeOfLatestExecution() The date and time of the most recent execution for this Job, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z - Returns:
- the value
 
 - 
getCreatedByIdpublic String getCreatedById() OCID of the user who created this job.- Returns:
- the value
 
 - 
getUpdatedByIdpublic String getUpdatedById() OCID of the user who updated this job.- Returns:
- the value
 
 - 
getJobDefinitionNamepublic String getJobDefinitionName() The display name of the job definition resource that defined the scope of this job.- Returns:
- the value
 
 - 
getDataAssetKeypublic String getDataAssetKey() Unique key of the data asset to which this job applies, if the job involves a data asset.- Returns:
- the value
 
 - 
getGlossaryKeypublic String getGlossaryKey() Unique key of the glossary to which this job applies.- Returns:
- the value
 
 - 
getErrorCodepublic String getErrorCode() Error code returned from the latest job execution for this job.Useful when the latest Job execution is in FAILED state. - Returns:
- the value
 
 - 
getErrorMessagepublic String getErrorMessage() Error message returned from the latest job execution for this job.Useful when the latest Job Execution is in a FAILED state. - Returns:
- the value
 
 - 
getUripublic String getUri() URI to the job instance in the API.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-