com.gentics.contentnode.rest.model.response.migration
Class MigrationJobEntry

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.migration.MigrationJobEntry

public class MigrationJobEntry
extends java.lang.Object

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

Constructor Summary
MigrationJobEntry()
           
MigrationJobEntry(int jobId, int jobType, int status, java.lang.String timestamp, java.lang.String config, java.lang.String logName, long handledObjects)
          Creates a new job log entry object
 
Method Summary
 java.lang.String getConfig()
          Returns the configuration in form of a serialized json string for the migration job
 long getHandledObjects()
          Returns how many objects have been handled by the migration job
 int getJobId()
           
 int getJobType()
          Returns the job type.
 java.lang.String getLogName()
          Returns the log filename for the migration job
 int getStatus()
          Returns the status of the executed migration job
 java.lang.String getTimestamp()
          Returns the timestamp for this job entry
 void setConfig(java.lang.String config)
          Sets the migration json string that represents the migration configuration
 void setHandledObjects(long handledObjects)
          Sets the number of objects that have been handled by the migration job
 void setJobId(int jobId)
           
 void setJobType(int jobType)
          Sets the job type id.
 void setLogName(java.lang.String logName)
          Sets the name of the migration log
 void setStatus(int status)
          Sets the status of the migration job
 void setTimestamp(java.lang.String timestamp)
          Sets the timestamp for this job entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationJobEntry

public MigrationJobEntry()

MigrationJobEntry

public MigrationJobEntry(int jobId,
                         int jobType,
                         int status,
                         java.lang.String timestamp,
                         java.lang.String config,
                         java.lang.String logName,
                         long handledObjects)
Creates a new job log entry object

Parameters:
jobId -
jobType -
status -
timestamp -
config -
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 java.lang.String getLogName()
Returns the log filename for the migration job

Returns:

setLogName

public void setLogName(java.lang.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 java.lang.String getTimestamp()
Returns the timestamp for this job entry

Returns:

setTimestamp

public void setTimestamp(java.lang.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 java.lang.String getConfig()
Returns the configuration in form of a serialized json string for the migration job

Returns:

setConfig

public void setConfig(java.lang.String config)
Sets the migration json string that represents the migration configuration

Parameters:
config -


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.