Package com.ibm.di.eclipse.http.commands
Class LogCommand
- java.lang.Object
-
- com.ibm.di.eclipse.http.commands.RestCommand
-
- com.ibm.di.eclipse.http.commands.LogCommand
-
- All Implemented Interfaces:
AssemblyLineListener,DIEventListener,LogListener,java.util.EventListener
public class LogCommand extends RestCommand implements AssemblyLineListener, DIEventListener
-
-
Field Summary
-
Fields inherited from class com.ibm.di.eclipse.http.commands.RestCommand
HTTP_BODY, HTTP_CONTENT_TYPE, HTTP_QS, RES_ASSEMBLY_LINE, RES_ASSEMBLY_LINE_LOG, RES_CONFIG_AL, RES_CONFIG_INSTANCE, RES_CONFIG_RUNAL, RES_CONFIGURATION, RES_CONNECTOR_CLOSE, RES_CONNECTOR_GETNEXT, RES_CONNECTOR_LOAD, RES_CONNECTOR_QUERYSCHEMA, sRes
-
-
Constructor Summary
Constructors Constructor Description LogCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassemblyLineCycleDone(Entry entry)Called when specified entry drives a complete cycle trough the assembly line which AssemblyLineListener listens.voidassemblyLineFinished()Called when the assembly line which AssemblyLineListener listens has finished.voidexecute()voidhandleEvent(DIEvent event)Handles a specified event.booleanisTerminated()voidlogmsg(java.lang.String msg)voidmessageLogged(java.lang.String message)Called right after the specified message is logged.voidsetTerminated(boolean b)-
Methods inherited from class com.ibm.di.eclipse.http.commands.RestCommand
addPendingCommand, appendBody, appendResult, dispose, getApi, getCommand, getConnector, getPath, getPath, getPendingCommand, getRequest, getRequestBody, getRequestParam, getResponse, getSession, isParamTrue, isReusable, readFile, setApi, setBody, setBody, setPath, setResponse
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception- Specified by:
executein classRestCommand- Throws:
java.lang.Exception
-
assemblyLineCycleDone
public void assemblyLineCycleDone(Entry entry) throws DIException
Description copied from interface:AssemblyLineListenerCalled when specified entry drives a complete cycle trough the assembly line which AssemblyLineListener listens.- Specified by:
assemblyLineCycleDonein interfaceAssemblyLineListener- Parameters:
entry- the entry object- Throws:
DIException- if Runtime or Security exception occurs
-
assemblyLineFinished
public void assemblyLineFinished() throws DIExceptionDescription copied from interface:AssemblyLineListenerCalled when the assembly line which AssemblyLineListener listens has finished.- Specified by:
assemblyLineFinishedin interfaceAssemblyLineListener- Throws:
DIException- if Runtime or Security exception occurs
-
handleEvent
public void handleEvent(DIEvent event) throws DIException
Description copied from interface:DIEventListenerHandles a specified event.- Specified by:
handleEventin interfaceDIEventListener- Parameters:
event- the event which needs to be handled.- Throws:
DIException- if an error occurs while trying to handle the event.
-
messageLogged
public void messageLogged(java.lang.String message) throws DIExceptionDescription copied from interface:LogListenerCalled right after the specified message is logged.- Specified by:
messageLoggedin interfaceLogListener- Parameters:
message- the message text- Throws:
DIException- If an error is encountered.
-
logmsg
public void logmsg(java.lang.String msg)
-
setTerminated
public void setTerminated(boolean b)
-
isTerminated
public boolean isTerminated()
-
-