Summer.Batch.Core.JobInstance Class Reference

Batch domain object representing a uniquely identifiable job run. JobInstance can be restarted multiple times in case of execution failure and it's lifecycle ends with first successful execution. More...

Inheritance diagram for Summer.Batch.Core.JobInstance:
Summer.Batch.Core.Entity

Public Member Functions

 JobInstance (long id, string jobName)
 Custom constructor using id and name. More...
 
override string ToString ()
 ToString override. More...
 
- Public Member Functions inherited from Summer.Batch.Core.Entity
 Entity ()
 Default constructor. More...
 
 Entity (long?id)
 Custom constructor with id. More...
 
void IncrementVersion ()
 Increments the version number. More...
 
override string ToString ()
 ToString override. More...
 
override bool Equals (Object other)
 Equals override. More...
 
override int GetHashCode ()
 Use ID if it exists to establish hash code, otherwise fall back to a call og GetHashCode on the result of the ToString method. More...
 

Properties

string JobName [get]
 Job name. More...
 
- Properties inherited from Summer.Batch.Core.Entity
long Id [get, set]
 Id. More...
 
int Version [get, set]
 Version. More...
 

Detailed Description

Batch domain object representing a uniquely identifiable job run. JobInstance can be restarted multiple times in case of execution failure and it's lifecycle ends with first successful execution.

Trying to execute an existing JobInstance that has already completed successfully will result in error. Error will be raised also for an attempt to restart a failed JobInstance if the Job is not restartable.

Constructor & Destructor Documentation

Summer.Batch.Core.JobInstance.JobInstance ( long  id,
string  jobName 
)

Custom constructor using id and name.

Parameters
id
jobName

Member Function Documentation

override string Summer.Batch.Core.JobInstance.ToString ( )

ToString override.

Returns

Property Documentation

string Summer.Batch.Core.JobInstance.JobName
get

Job name.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/JobInstance.cs