Right Java tools for J2EE, Web Service, Grid and more
|Home | Products | Documents | Downloads | Purchase | Support | Company | Partners | Contact |

com.acelet.lib
Interface LogAgent


public interface LogAgent

The LogAgent is the logging agent for other SuperComponents to use your favorite logging system. You can provide your implementation of LogAgent to use your favorate logging, or no logging at all. Just simple put it as the first part of CLASSPATH.


Method Summary
 void close()
          Close LogAgnet and release all related resources.
 void log(java.lang.String text)
          Log text as log message.
 void setModuleName(java.lang.String moduleName)
          setModuleName setModuleName.
 void setTimeout(long timeout)
          setTimeout set timeout.
 

Method Detail

close

void close()
Close LogAgnet and release all related resources.


log

void log(java.lang.String text)
         throws java.lang.Exception
Log text as log message.

Parameters:
text - The schedule event to bo logged.
Throws:
java.lang.Exception

setModuleName

void setModuleName(java.lang.String moduleName)
                   throws java.lang.Exception
setModuleName setModuleName.

Parameters:
moduleName - The name of the calling module. Can either be SuperScheduler or SuperWatchdog
Throws:
java.lang.Exception

setTimeout

void setTimeout(long timeout)
setTimeout set timeout. The default timeout is 15 seconds

Parameters:
timeout - The timeout for each call

Copyright Acelet Corporation. 2000-2008. All rights reserved.