Class MigrationJobEntry
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.migration.MigrationJobEntry
-
- All Implemented Interfaces:
Serializable
public class MigrationJobEntry extends Object implements Serializable
A migration job entry contains information about an executed migration job. Infomation like the job status and the count of objects that have been handled are stored in MigrationJobEntry objects.- Author:
- johannes2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MigrationJobEntry()
MigrationJobEntry(int jobId, int jobType, int status, String timestamp, String config, String logName, long handledObjects)
Creates a new job log entry object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfig()
Returns the configuration in form of a serialized json string for the migration joblong
getHandledObjects()
Returns how many objects have been handled by the migration jobint
getJobId()
int
getJobType()
Returns the job type.String
getLogName()
Returns the log filename for the migration jobint
getStatus()
Returns the status of the executed migration jobString
getTimestamp()
Returns the timestamp for this job entryvoid
setConfig(String config)
Sets the migration json string that represents the migration configurationvoid
setHandledObjects(long handledObjects)
Sets the number of objects that have been handled by the migration jobvoid
setJobId(int jobId)
void
setJobType(int jobType)
Sets the job type id.void
setLogName(String logName)
Sets the name of the migration logvoid
setStatus(int status)
Sets the status of the migration jobvoid
setTimestamp(String timestamp)
Sets the timestamp for this job entry
-
-
-
Method Detail
-
getHandledObjects
public long getHandledObjects()
Returns how many objects have been handled by the migration job- Returns:
-
setHandledObjects
public void setHandledObjects(long handledObjects)
Sets the number of objects that have been handled by the migration job- Parameters:
handledObjects
-
-
getLogName
public String getLogName()
Returns the log filename for the migration job- Returns:
-
setLogName
public void setLogName(String logName)
Sets the name of the migration log- Parameters:
logName
-
-
getJobId
public int getJobId()
-
setJobId
public void setJobId(int jobId)
-
getStatus
public int getStatus()
Returns the status of the executed migration job- Returns:
-
setStatus
public void setStatus(int status)
Sets the status of the migration job- Parameters:
status
-
-
getTimestamp
public String getTimestamp()
Returns the timestamp for this job entry- Returns:
-
setTimestamp
public void setTimestamp(String timestamp)
Sets the timestamp for this job entry- Parameters:
timestamp
-
-
getJobType
public int getJobType()
Returns the job type. The job type is used to distinguished between a tag type migration and a template type migration- Returns:
-
setJobType
public void setJobType(int jobType)
Sets the job type id.- Parameters:
jobType
-
-
getConfig
public String getConfig()
Returns the configuration in form of a serialized json string for the migration job- Returns:
-
setConfig
public void setConfig(String config)
Sets the migration json string that represents the migration configuration- Parameters:
config
-
-
-