ibspan.log4jade.service
Class LoggingBehaviour
java.lang.Object
jade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
jade.core.behaviours.CyclicBehaviour
ibspan.log4jade.service.LoggingBehaviour
- All Implemented Interfaces:
- Serializable
public class LoggingBehaviour
- extends CyclicBehaviour
Behaviour responsible for collecting incoming logging events.
- Author:
- Maciej Gawinecki
- See Also:
- Serialized Form
Method Summary |
void |
action()
Agent action. |
Methods inherited from class jade.core.behaviours.Behaviour |
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, getParent, handle, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_LOGGING_POLICY_CLASS
public static final String DEFAULT_LOGGING_POLICY_CLASS
- Default class for logging policy.
- See Also:
- Constant Field Values
LoggingBehaviour
public LoggingBehaviour(Agent a,
String policyClassName,
String dir)
throws LoggingServiceException
- Constructs logging behaviour with given policy.
- Parameters:
a
- owner agentpolicyClassName
- name of class representing logging policydir
- directory containing configuration files for logging service
- Throws:
LoggingServiceException
- thrown if no policy found- See Also:
LoggingPolicy
action
public void action()
- Agent action. Here comes main part: handling incoming logging events.
- Specified by:
action
in class Behaviour