com.atlassian.scheduler.core.impl
Class JobRunnerRequestImpl

java.lang.Object
  extended by com.atlassian.scheduler.core.impl.JobRunnerRequestImpl
All Implemented Interfaces:
JobRunnerRequest

@Immutable
public final class JobRunnerRequestImpl
extends Object
implements JobRunnerRequest

Since:
v1.0

Constructor Summary
JobRunnerRequestImpl(Date startTime, JobId jobId, JobConfig jobConfig)
           
 
Method Summary
 boolean equals(Object o)
           
 JobConfig getJobConfig()
          Returns the job's configuration, such as its schedule and parameters.
 JobId getJobId()
          Returns the job ID that was used to schedule this job.
 Date getStartTime()
          Returns the time at which the job was started.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobRunnerRequestImpl

public JobRunnerRequestImpl(@Nonnull
                            Date startTime,
                            @Nonnull
                            JobId jobId,
                            @Nonnull
                            JobConfig jobConfig)
Method Detail

getStartTime

@Nonnull
public Date getStartTime()
Description copied from interface: JobRunnerRequest
Returns the time at which the job was started. When this job completes, the RunDetails that stores the result will use this exact time for RunDetails.getStartTime().

Specified by:
getStartTime in interface JobRunnerRequest
Returns:
the time at which the job was started.

getJobId

@Nonnull
public JobId getJobId()
Description copied from interface: JobRunnerRequest
Returns the job ID that was used to schedule this job.

Specified by:
getJobId in interface JobRunnerRequest
Returns:
the job ID that was used to schedule this job.

getJobConfig

@Nonnull
public JobConfig getJobConfig()
Description copied from interface: JobRunnerRequest
Returns the job's configuration, such as its schedule and parameters.

Specified by:
getJobConfig in interface JobRunnerRequest
Returns:
the job's configuration

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Atlassian. All Rights Reserved.