Oracle Content Management SDK

oracle.ifs.adk.queue
Class IfsMessageProcessor

java.lang.Object
  |
  +--oracle.ifs.adk.queue.IfsMessageProcessor
All Implemented Interfaces:
MessageProcessor

public class IfsMessageProcessor
extends java.lang.Object
implements MessageProcessor

IfsMessageProcessor implements MessageProcessor interface and provides facility for logging messages into Queue agent's logfile.


Method Summary
 void handleMessage(oracle.sql.ORAData message, LibrarySession sess)
          This throws an exception.
 void log(int level, java.lang.String message)
          Logs the specified message.
 void log(int level, java.lang.String message, java.lang.Throwable throwable)
          Logs the specified message and throwable, as a single log entry.
 void log(int level, java.lang.Throwable throwable)
          Logs the specified throwable.
 void setServer(Server server)
          Sets up the server (agent) that is using this class.
 

Method Detail


setServer

public void setServer(Server server)
               throws IfsException
Sets up the server (agent) that is using this class.
Specified by:
setServer in interface MessageProcessor
Parameters:
server - handle to the agent object
Throws:
IfsException - if the operation fails

handleMessage

public void handleMessage(oracle.sql.ORAData message,
                          LibrarySession sess)
                   throws IfsException
This throws an exception. IfsMessageProcessor does not know how to deal with messages. Subclasses have to override this method.
Specified by:
handleMessage in interface MessageProcessor
Parameters:
message - message that needs to be processed
sess - handle to the LibrarySession to process message
Throws:
IfsException - if the opeeration fails

log

public void log(int level,
                java.lang.String message)
Logs the specified message. If the setServer method has been called prior to this method, then the log is written to the corresponding servers log file. Otherwise, it is written to standard out. Level parameter shown below is used only when writing to agent's log file.
Parameters:
level - the minimum logging level for the message to be logged
message - the message

log

public void log(int level,
                java.lang.Throwable throwable)
Logs the specified throwable. If the setServer method has been called prior to this method, then the log is written to the corresponding servers log file. Otherwise, it is written to standard out. Level parameter shown below is used only when writing to agent's log file.
Parameters:
level - the minimum logging level for the message to be logged
throwable - the throwable

log

public void log(int level,
                java.lang.String message,
                java.lang.Throwable throwable)
Logs the specified message and throwable, as a single log entry. If the setServer method has been called prior to this method, then the log is written to the corresponding servers log file. Otherwise, it is written to standard out. Level parameter shown below is used only when writing to agent's log file.
Parameters:
level - the minimum logging level for the message to be logged
message - the message
throwable - the throwable

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.