jason.core.service
Class AlertService

java.lang.Object
  |
  +--jason.core.AbstractService
        |
        +--jason.core.ThreadableService
              |
              +--jason.core.service.InnerService
                    |
                    +--jason.core.service.AlertService
All Implemented Interfaces:
java.io.Serializable, Service, ServiceDataListener

public class AlertService
extends jason.core.service.InnerService

Send alert notification when a service as a trouble.

Author:
Alexandre Brillant (abrillant@wanadoo.fr)
See Also:
Serialized Form

Field Summary
static ServiceType TYPE
           
 
Fields inherited from class jason.core.ThreadableService
activeThread
 
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
AlertService()
           
 
Method Summary
 boolean isOverride()
          This service type is 'overridable'
 ServiceResponse manageRequest(ServiceRequest request)
          Manage a request
 
Methods inherited from class jason.core.ThreadableService
actionForStart, enableServiceForThread, getThreadLoopDelay, isThreadLoopMode, isThreadStarted, isWaiting, notifyThreadRunning, runThread, setPriority, setThreadLoopDelay, setThreadLoopMode, threadNotify, threadWait
 
Methods inherited from class jason.core.AbstractService
canRestartOnError, checkForContext, fireCriticalErrorDetected, getAutoRestartCounter, getBooleanProperty, getInfo, getIntProperty, getName, getPropertiesName, getProperty, getServiceContext, getServiceState, getState, getStringProperty, getType, getVersion, hasServiceContext, init, isAutoStop, isEnabled, isInitialized, isPersistent, isPrivate, isProcessable, isStarted, isStopped, isTest, isThreadable, isVerbose, manageRequestForType, notifyData, notifyInitReady, notifyStartReady, notifyStopReady, postStop, restart, run, sendCustomMessage, sendErrorMessage, sendInformationMessage, sendInnerError, sendWarningMessage, setAutoRestartCounter, setAutoRestartOnError, 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
 

Field Detail

TYPE

public static ServiceType TYPE
Constructor Detail

AlertService

public AlertService()
Method Detail

manageRequest

public ServiceResponse manageRequest(ServiceRequest request)
                              throws ServiceException
Description copied from class: AbstractService
Manage a request

Specified by:
manageRequest in interface Service
Overrides:
manageRequest in class AbstractService
Returns:
the request's response
ServiceException

isOverride

public boolean isOverride()
This service type is 'overridable'

Specified by:
isOverride in interface Service
Overrides:
isOverride in class AbstractService
Returns:
true if the service can be replaced by another service with the same type