Package org.pentaho.di.core.logging
Class LoggingObject
java.lang.Object
org.pentaho.di.core.logging.LoggingObject
- All Implemented Interfaces:
LoggingObjectInterface
,LoggingObjectLifecycleInterface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets 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.boolean
boolean
Gets the boolean value of whether or not this object is gathering kettle metrics during execution.void
setCarteObjectId
(String carteObjectId) void
setFilename
(String filename) void
setForcingSeparateLogging
(boolean forcingSeparateLogging) This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.void
setGatheringMetrics
(boolean gatheringMetrics) Enable of disable kettle metrics gathering during executionvoid
setLogChannelId
(String logChannelId) void
setLogLevel
(LogLevel logLevel) void
setObjectCopy
(String objectCopy) void
setObjectId
(ObjectId objectId) void
setObjectName
(String name) void
setObjectRevision
(ObjectRevision objectRevision) void
setObjectType
(LoggingObjectType objectType) void
setParent
(LoggingObjectInterface parent) void
setRegistrationDate
(Date registrationDate) void
setRepositoryDirectory
(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 Details
-
LoggingObject
-
-
Method Details
-
equals
-
getObjectName
Description copied from interface:LoggingObjectInterface
Gets the object name.- Specified by:
getObjectName
in interfaceLoggingObjectInterface
- Returns:
- the name
-
setObjectName
- Parameters:
name
- the name to set
-
getRepositoryDirectory
Description copied from interface:LoggingObjectInterface
Gets the repository directory.- Specified by:
getRepositoryDirectory
in interfaceLoggingObjectInterface
- Returns:
- the repositoryDirectory
-
setRepositoryDirectory
- Parameters:
repositoryDirectory
- the repositoryDirectory to set
-
getFilename
Description copied from interface:LoggingObjectInterface
Gets the filename.- Specified by:
getFilename
in interfaceLoggingObjectInterface
- Returns:
- the filename
-
setFilename
- Parameters:
filename
- the filename to set
-
getObjectId
Description copied from interface:LoggingObjectInterface
Gets the object id in a repository.- Specified by:
getObjectId
in interfaceLoggingObjectInterface
- Returns:
- the objectId
-
setObjectId
- Parameters:
objectId
- the objectId to set
-
getObjectRevision
Description copied from interface:LoggingObjectInterface
Gets the objects revision in a repository.- Specified by:
getObjectRevision
in interfaceLoggingObjectInterface
- Returns:
- the objectRevision
-
setObjectRevision
- Parameters:
objectRevision
- the objectRevision to set
-
getLogChannelId
Description copied from interface:LoggingObjectInterface
Gets the log channel id.- Specified by:
getLogChannelId
in interfaceLoggingObjectInterface
- Returns:
- the id
-
setLogChannelId
- Parameters:
id
- the id to set
-
getParent
Description copied from interface:LoggingObjectInterface
Gets the parent.- Specified by:
getParent
in interfaceLoggingObjectInterface
- Returns:
- the parent
-
setParent
- Parameters:
parent
- the parent to set
-
getObjectType
Description copied from interface:LoggingObjectInterface
Gets the object type.- Specified by:
getObjectType
in interfaceLoggingObjectInterface
- Returns:
- the objectType
-
setObjectType
- Parameters:
objectType
- the objectType to set
-
getObjectCopy
Description copied from interface:LoggingObjectInterface
Gets a string identifying a copy in a series of steps.- Specified by:
getObjectCopy
in interfaceLoggingObjectInterface
- Returns:
- the copy
-
setObjectCopy
- Parameters:
copy
- the copy to set
-
getLogLevel
Description copied from interface:LoggingObjectInterface
Gets the logging level of the log channel of this logging object.- Specified by:
getLogLevel
in interfaceLoggingObjectInterface
- Returns:
- The logging level of the log channel of this logging object.
-
setLogLevel
-
getContainerObjectId
Description copied from interface:LoggingObjectInterface
Gets 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:
getContainerObjectId
in interfaceLoggingObjectInterface
- Returns:
- the carteObjectId
-
setCarteObjectId
- Parameters:
carteObjectId
- the carteObjectId to set
-
getRegistrationDate
Description copied from interface:LoggingObjectInterface
Gets the registration date of this logging object. Null if it's not registered.- Specified by:
getRegistrationDate
in interfaceLoggingObjectInterface
- Returns:
- the registrationDate
-
setRegistrationDate
- Parameters:
registrationDate
- the registrationDate to set
-
isGatheringMetrics
public boolean isGatheringMetrics()Description copied from interface:LoggingObjectInterface
Gets the boolean value of whether or not this object is gathering kettle metrics during execution.- Specified by:
isGatheringMetrics
in interfaceLoggingObjectInterface
- Returns:
- the gatheringMetrics
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics) Description copied from interface:LoggingObjectInterface
Enable of disable kettle metrics gathering during execution- Specified by:
setGatheringMetrics
in interfaceLoggingObjectInterface
- Parameters:
gatheringMetrics
- the gatheringMetrics to set
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()- Specified by:
isForcingSeparateLogging
in interfaceLoggingObjectInterface
- Returns:
- the forcingSeparateLogging
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging) Description copied from interface:LoggingObjectInterface
This option will force the create of a separate logging channel even if the logging concerns identical objects with identical names.- Specified by:
setForcingSeparateLogging
in interfaceLoggingObjectInterface
- Parameters:
forcingSeparateLogging
- the forcingSeparateLogging to set
-