Package org.pentaho.di.core.logging
Class LoggingObject
- java.lang.Object
-
- org.pentaho.di.core.logging.LoggingObject
-
- All Implemented Interfaces:
LoggingObjectInterface,LoggingObjectLifecycleInterface
public class LoggingObject extends Object implements LoggingObjectInterface
-
-
Constructor Summary
Constructors Constructor Description LoggingObject(Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContainerObjectId()Gets the execution container (Carte/DI server/BI Server) object id.StringgetFilename()Gets the filename.StringgetLogChannelId()Gets the log channel id.LogLevelgetLogLevel()Gets the logging level of the log channel of this logging object.StringgetObjectCopy()Gets a string identifying a copy in a series of steps.ObjectIdgetObjectId()Gets the object id in a repository.StringgetObjectName()Gets the object name.ObjectRevisiongetObjectRevision()Gets the objects revision in a repository.LoggingObjectTypegetObjectType()Gets the object type.LoggingObjectInterfacegetParent()Gets the parent.DategetRegistrationDate()Gets the registration date of this logging object.RepositoryDirectoryInterfacegetRepositoryDirectory()Gets the repository directory.booleanisForcingSeparateLogging()booleanisGatheringMetrics()Gets the boolean value of whether or not this object is gathering kettle metrics during execution.booleanisLoggingObjectInUse()voidsetCarteObjectId(String carteObjectId)voidsetFilename(String filename)voidsetForcingSeparateLogging(boolean forcingSeparateLogging)This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.voidsetGatheringMetrics(boolean gatheringMetrics)Enable of disable kettle metrics gathering during executionvoidsetLogChannelId(String logChannelId)voidsetLoggingObjectInUse(boolean loggingObjectInUse)voidsetLogLevel(LogLevel logLevel)voidsetObjectCopy(String objectCopy)voidsetObjectId(ObjectId objectId)voidsetObjectName(String name)voidsetObjectRevision(ObjectRevision objectRevision)voidsetObjectType(LoggingObjectType objectType)voidsetParent(LoggingObjectInterface parent)voidsetRegistrationDate(Date registrationDate)voidsetRepositoryDirectory(RepositoryDirectory repositoryDirectory)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
-
-
-
-
Constructor Detail
-
LoggingObject
public LoggingObject(Object object)
-
-
Method Detail
-
isLoggingObjectInUse
public boolean isLoggingObjectInUse()
- Specified by:
isLoggingObjectInUsein interfaceLoggingObjectInterface
-
setLoggingObjectInUse
public void setLoggingObjectInUse(boolean loggingObjectInUse)
-
getObjectName
public String getObjectName()
Description copied from interface:LoggingObjectInterfaceGets the object name.- Specified by:
getObjectNamein interfaceLoggingObjectInterface- Returns:
- the name
-
setObjectName
public void setObjectName(String name)
- Parameters:
name- the name to set
-
getRepositoryDirectory
public RepositoryDirectoryInterface getRepositoryDirectory()
Description copied from interface:LoggingObjectInterfaceGets the repository directory.- Specified by:
getRepositoryDirectoryin interfaceLoggingObjectInterface- Returns:
- the repositoryDirectory
-
setRepositoryDirectory
public void setRepositoryDirectory(RepositoryDirectory repositoryDirectory)
- Parameters:
repositoryDirectory- the repositoryDirectory to set
-
getFilename
public String getFilename()
Description copied from interface:LoggingObjectInterfaceGets the filename.- Specified by:
getFilenamein interfaceLoggingObjectInterface- Returns:
- the filename
-
setFilename
public void setFilename(String filename)
- Parameters:
filename- the filename to set
-
getObjectId
public ObjectId getObjectId()
Description copied from interface:LoggingObjectInterfaceGets the object id in a repository.- Specified by:
getObjectIdin interfaceLoggingObjectInterface- Returns:
- the objectId
-
setObjectId
public void setObjectId(ObjectId objectId)
- Parameters:
objectId- the objectId to set
-
getObjectRevision
public ObjectRevision getObjectRevision()
Description copied from interface:LoggingObjectInterfaceGets the objects revision in a repository.- Specified by:
getObjectRevisionin interfaceLoggingObjectInterface- Returns:
- the objectRevision
-
setObjectRevision
public void setObjectRevision(ObjectRevision objectRevision)
- Parameters:
objectRevision- the objectRevision to set
-
getLogChannelId
public String getLogChannelId()
Description copied from interface:LoggingObjectInterfaceGets the log channel id.- Specified by:
getLogChannelIdin interfaceLoggingObjectInterface- Returns:
- the id
-
setLogChannelId
public void setLogChannelId(String logChannelId)
- Parameters:
id- the id to set
-
getParent
public LoggingObjectInterface getParent()
Description copied from interface:LoggingObjectInterfaceGets the parent.- Specified by:
getParentin interfaceLoggingObjectInterface- Returns:
- the parent
-
setParent
public void setParent(LoggingObjectInterface parent)
- Parameters:
parent- the parent to set
-
getObjectType
public LoggingObjectType getObjectType()
Description copied from interface:LoggingObjectInterfaceGets the object type.- Specified by:
getObjectTypein interfaceLoggingObjectInterface- Returns:
- the objectType
-
setObjectType
public void setObjectType(LoggingObjectType objectType)
- Parameters:
objectType- the objectType to set
-
getObjectCopy
public String getObjectCopy()
Description copied from interface:LoggingObjectInterfaceGets a string identifying a copy in a series of steps.- Specified by:
getObjectCopyin interfaceLoggingObjectInterface- Returns:
- the copy
-
setObjectCopy
public void setObjectCopy(String objectCopy)
- Parameters:
copy- the copy to set
-
getLogLevel
public LogLevel getLogLevel()
Description copied from interface:LoggingObjectInterfaceGets the logging level of the log channel of this logging object.- Specified by:
getLogLevelin interfaceLoggingObjectInterface- Returns:
- The logging level of the log channel of this logging object.
-
setLogLevel
public void setLogLevel(LogLevel logLevel)
-
getContainerObjectId
public String getContainerObjectId()
Description copied from interface:LoggingObjectInterfaceGets the execution container (Carte/DI server/BI Server) object id. We use this to see to which copy of the job/trans hierarchy this object belongs. If it is null, we assume that we are running a single copy in Spoon/Pan/Kitchen.- Specified by:
getContainerObjectIdin interfaceLoggingObjectInterface- Returns:
- the carteObjectId
-
setCarteObjectId
public void setCarteObjectId(String carteObjectId)
- Parameters:
carteObjectId- the carteObjectId to set
-
getRegistrationDate
public Date getRegistrationDate()
Description copied from interface:LoggingObjectInterfaceGets the registration date of this logging object. Null if it's not registered.- Specified by:
getRegistrationDatein interfaceLoggingObjectInterface- Returns:
- the registrationDate
-
setRegistrationDate
public void setRegistrationDate(Date registrationDate)
- Parameters:
registrationDate- the registrationDate to set
-
isGatheringMetrics
public boolean isGatheringMetrics()
Description copied from interface:LoggingObjectInterfaceGets the boolean value of whether or not this object is gathering kettle metrics during execution.- Specified by:
isGatheringMetricsin interfaceLoggingObjectInterface- Returns:
- the gatheringMetrics
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics)
Description copied from interface:LoggingObjectInterfaceEnable of disable kettle metrics gathering during execution- Specified by:
setGatheringMetricsin interfaceLoggingObjectInterface- Parameters:
gatheringMetrics- the gatheringMetrics to set
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()
- Specified by:
isForcingSeparateLoggingin interfaceLoggingObjectInterface- Returns:
- the forcingSeparateLogging
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging)
Description copied from interface:LoggingObjectInterfaceThis option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.- Specified by:
setForcingSeparateLoggingin interfaceLoggingObjectInterface- Parameters:
forcingSeparateLogging- the forcingSeparateLogging to set
-
-