|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.test.platform.engine.core.MockComponent
public class MockComponent
Field Summary |
---|
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Constructor Summary | |
---|---|
MockComponent()
|
Method Summary | |
---|---|
void |
debug(String message)
Log a message object with the DEBUG Level. |
void |
debug(String message,
Throwable error)
Log a message with the DEBUG level including the stack
trace of the Throwable error passed as parameter. |
void |
done()
Allows the component to perform any cleanup after the execution of the action. |
void |
error(String message)
Log a message object with the ERROR Level. |
void |
error(String message,
Throwable error)
Log a message with the ERROR level including the stack
trace of the Throwable error passed as parameter. |
int |
execute()
Perform the Component execution; logic for what this Component does goes here. |
void |
fatal(String message)
Log a message object with the FATAL Level. |
void |
fatal(String message,
Throwable error)
Log a message with the FATAL level including the stack
trace of the Throwable error passed as parameter. |
org.pentaho.actionsequence.dom.IActionDefinition |
getActionDefinition()
|
String |
getActionName()
Return the name of the action sequence. |
org.dom4j.Node |
getComponentDefinition()
|
String |
getId()
Returns a unique id (across classes and instances) for this auditable object. |
String |
getInstanceId()
|
int |
getLoggingLevel()
Return the logging level for this Logger. |
List |
getMessages()
|
String |
getObjectName()
Returns the Java class name for this object. |
String |
getProcessId()
Return the id for the execution of a given action sequence document. |
IRuntimeContext |
getRuntimeContext()
|
IPentahoSession |
getSession()
|
void |
info(String message)
Log a message object with the INFO Level. |
void |
info(String message,
Throwable error)
Log a message with the INFO level including the stack trace
of the Throwable error passed as parameter. |
boolean |
init()
Initialize the Component. |
void |
setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
|
void |
setActionName(String actionName)
|
void |
setComponentDefinition(org.dom4j.Node componentDefinition)
|
void |
setComponentDefinitionMap(Map<String,String> componentDefinitionMap)
|
void |
setInstanceId(String instanceId)
|
void |
setLoggingLevel(int loggingLevel)
Set the logging level for this Logger. |
void |
setMessages(List messaes)
|
void |
setProcessId(String processId)
|
void |
setRuntimeContext(IRuntimeContext runtimeContext)
|
void |
setSession(IPentahoSession session)
|
void |
trace(String message)
Log a message object with the TRACE Level. |
void |
trace(String message,
Throwable error)
Log a message with the TRACE level including the stack
trace of the Throwable error passed as parameter. |
int |
validate()
Validate that the Component has all the necessary inputs, outputs and resources it needs to execute successfully. |
void |
warn(String message)
Log a message object with the WARN Level. |
void |
warn(String message,
Throwable error)
Log a message with the WARN level including the stack trace
of the Throwable error passed as parameter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockComponent()
Method Detail |
---|
public void done()
IComponent
done
in interface IComponent
public int execute()
IComponent
execute
in interface IComponent
IRuntimeContext
public org.pentaho.actionsequence.dom.IActionDefinition getActionDefinition()
getActionDefinition
in interface IComponent
public String getActionName()
IAuditable
getActionName
in interface IAuditable
getActionName
in interface IComponent
public org.dom4j.Node getComponentDefinition()
getComponentDefinition
in interface IComponent
public String getInstanceId()
getInstanceId
in interface IComponent
public List getMessages()
getMessages
in interface IComponent
public String getProcessId()
IAuditable
getProcessId
in interface IAuditable
getProcessId
in interface IComponent
public IRuntimeContext getRuntimeContext()
getRuntimeContext
in interface IComponent
public IPentahoSession getSession()
getSession
in interface IComponent
public boolean init()
IComponent
init
in interface IComponent
public void setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
setActionDefinition
in interface IComponent
public void setActionName(String actionName)
setActionName
in interface IComponent
public void setComponentDefinition(org.dom4j.Node componentDefinition)
setComponentDefinition
in interface IComponent
public void setComponentDefinitionMap(Map<String,String> componentDefinitionMap)
setComponentDefinitionMap
in interface IComponent
public void setInstanceId(String instanceId)
setInstanceId
in interface IComponent
public void setMessages(List messaes)
setMessages
in interface IComponent
public void setProcessId(String processId)
setProcessId
in interface IComponent
public void setRuntimeContext(IRuntimeContext runtimeContext)
setRuntimeContext
in interface IComponent
public void setSession(IPentahoSession session)
setSession
in interface IComponent
public int validate()
IComponent
validate
in interface IComponent
IRuntimeContext
public String getId()
IAuditable
getId
in interface IAuditable
public String getObjectName()
IAuditable
getObjectName
in interface IAuditable
public void debug(String message)
ILogger
DEBUG
Level.
debug
in interface ILogger
message
- the message object to log.public void debug(String message, Throwable error)
ILogger
DEBUG
level including the stack
trace of the Throwable error passed as parameter.
debug
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void error(String message)
ILogger
ERROR
Level.
error
in interface ILogger
message
- the message object to log.public void error(String message, Throwable error)
ILogger
ERROR
level including the stack
trace of the Throwable error passed as parameter.
error
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void fatal(String message)
ILogger
FATAL
Level.
fatal
in interface ILogger
message
- the message object to log.public void fatal(String message, Throwable error)
ILogger
FATAL
level including the stack
trace of the Throwable error passed as parameter.
fatal
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public int getLoggingLevel()
ILogger
getLoggingLevel
in interface ILogger
public void info(String message)
ILogger
INFO
Level.
info
in interface ILogger
message
- the message object to log.public void info(String message, Throwable error)
ILogger
INFO
level including the stack trace
of the Throwable error passed as parameter.
info
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void setLoggingLevel(int loggingLevel)
ILogger
Valid logging levels are TRACE
, DEBUG
,
INFO
, WARN
, ERROR
, and
FATAL
.
setLoggingLevel
in interface ILogger
public void trace(String message)
ILogger
TRACE
Level.
trace
in interface ILogger
message
- the message object to log.public void trace(String message, Throwable error)
ILogger
TRACE
level including the stack
trace of the Throwable error passed as parameter.
trace
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void warn(String message)
ILogger
WARN
Level.
warn
in interface ILogger
message
- the message object to log.public void warn(String message, Throwable error)
ILogger
WARN
level including the stack trace
of the Throwable error passed as parameter.
warn
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |