jason.core.log
Class LogImpl

java.lang.Object
  |
  +--jason.core.AbstractService
        |
        +--jason.core.log.LogImpl
All Implemented Interfaces:
Log, java.io.Serializable, Service, ServiceDataListener

public class LogImpl
extends AbstractService
implements Log

Log for activites

Since:
1.0
See Also:
Thread, Serialized Form

Field Summary
 
Fields inherited from class jason.core.AbstractService
INITIALIZED, name, NOSTATE, serviceContext, STARTED, STOPPED
 
Fields inherited from interface jason.core.Service
ERROR_MESSAGE, INFORMATION_MESSAGE, VERBOSE_MESSAGE, WARNING_MESSAGE
 
Constructor Summary
LogImpl()
           
LogImpl(java.lang.String fileName, int tailleTrace)
           
 
Method Summary
 void addInfo(java.lang.String info)
           
 void flushTrace()
           
 void init(ServerConfig majorConfig, ServiceConfig minorConfig)
           
 void restart()
          restart the service
 void run()
          User should override this method for running a task.
 
Methods inherited from class jason.core.AbstractService
actionForStart, checkForContext, fireCriticalErrorDetected, getBooleanProperty, getInfo, getIntProperty, getName, getPropertiesName, getProperty, getServiceContext, getServiceState, getState, getStringProperty, getType, getVersion, hasServiceContext, init, isAutoStop, isEnabled, isInitialized, isOverride, isPersistent, isPrivate, isProcessable, isStarted, isStopped, isTest, isThreadable, isVerbose, manageRequest, manageRequestForType, notifyData, notifyInitReady, notifyStartReady, notifyStopReady, postStop, sendCustomMessage, sendErrorMessage, sendInformationMessage, sendInnerError, sendWarningMessage, setAutoStop, setEnabled, setName, setPersistent, setPrivate, setProperty, setServiceContext, setTest, setType, setVerbose, setVersion, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jason.core.Service
getBooleanProperty, getInfo, getIntProperty, getName, getProperty, getServiceState, getStringProperty, getType, getVersion, init, isEnabled, isOverride, isPrivate, isVerbose, manageRequest, start, stop
 

Constructor Detail

LogImpl

public LogImpl()

LogImpl

public LogImpl(java.lang.String fileName,
               int tailleTrace)
Method Detail

flushTrace

public void flushTrace()
                throws java.io.IOException
java.io.IOException

addInfo

public void addInfo(java.lang.String info)
Specified by:
addInfo in interface Log

run

public void run()
Description copied from class: AbstractService
User should override this method for running a task. This is the core of the service running state. Note that you shouldn't use a main loop like for standard thread. You just have to notify that this service use a main loop for the setThreadLoopMode method

Overrides:
run in class AbstractService

init

public void init(ServerConfig majorConfig,
                 ServiceConfig minorConfig)

restart

public void restart()
Description copied from interface: Service
restart the service

Specified by:
restart in interface Service
Overrides:
restart in class AbstractService