Package org.pentaho.di.core.logging
Class SimpleLoggingObject
java.lang.Object
org.pentaho.di.core.logging.SimpleLoggingObject
- All Implemented Interfaces:
LoggingObjectInterface,LoggingObjectLifecycleInterface
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLoggingObject(String objectName, LoggingObjectType loggingObjectType, LoggingObjectInterface parent) -
Method Summary
Modifier and TypeMethodDescriptionGets the execution container (Carte/DI server/BI Server) object id.Gets the filename.Gets the log channel id.Gets the logging level of the log channel of this logging object.Gets a string identifying a copy in a series of steps.Gets the object id in a repository.Gets the object name.Gets the objects revision in a repository.Gets the object type.Gets the parent.Gets the registration date of this logging object.Gets the repository directory.booleanbooleanGets the boolean value of whether or not this object is gathering kettle metrics during execution.voidsetContainerObjectId(String containerObjectId) 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) voidsetLogLevel(LogLevel logLevel) voidsetObjectName(String name) voidsetObjectType(LoggingObjectType objectType) voidsetParent(LoggingObjectInterface parent) voidsetRegistrationDate(Date registrationDate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
-
Constructor Details
-
SimpleLoggingObject
public SimpleLoggingObject(String objectName, LoggingObjectType loggingObjectType, LoggingObjectInterface parent) - Parameters:
objectName-loggingObjectType-parent-
-
-
Method Details
-
getObjectName
Description copied from interface:LoggingObjectInterfaceGets the object name.- Specified by:
getObjectNamein interfaceLoggingObjectInterface- Returns:
- the name
-
setObjectName
- Parameters:
name- the name to set
-
getObjectType
Description copied from interface:LoggingObjectInterfaceGets the object type.- Specified by:
getObjectTypein interfaceLoggingObjectInterface- Returns:
- the objectType
-
setObjectType
- Parameters:
objectType- the objectType to set
-
getParent
Description copied from interface:LoggingObjectInterfaceGets the parent.- Specified by:
getParentin interfaceLoggingObjectInterface- Returns:
- the parent
-
setParent
- Parameters:
parent- the parent to set
-
getFilename
Description copied from interface:LoggingObjectInterfaceGets the filename.- Specified by:
getFilenamein interfaceLoggingObjectInterface- Returns:
- the filename
-
setLogChannelId
-
getLogChannelId
Description copied from interface:LoggingObjectInterfaceGets the log channel id.- Specified by:
getLogChannelIdin interfaceLoggingObjectInterface- Returns:
- the log channel id
-
getObjectCopy
Description copied from interface:LoggingObjectInterfaceGets a string identifying a copy in a series of steps.- Specified by:
getObjectCopyin interfaceLoggingObjectInterface- Returns:
- A string identifying a copy in a series of steps.
-
getObjectId
Description copied from interface:LoggingObjectInterfaceGets the object id in a repository.- Specified by:
getObjectIdin interfaceLoggingObjectInterface- Returns:
- the objectId in a repository
-
getObjectRevision
Description copied from interface:LoggingObjectInterfaceGets the objects revision in a repository.- Specified by:
getObjectRevisionin interfaceLoggingObjectInterface- Returns:
- the object revision in a repository
-
getRepositoryDirectory
Description copied from interface:LoggingObjectInterfaceGets the repository directory.- Specified by:
getRepositoryDirectoryin interfaceLoggingObjectInterface- Returns:
- the repositoryDirectory
-
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
-
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 execution container (Carte/DI server/BI Server) object id.
-
setContainerObjectId
-
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
- 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
-