jade.core.sam
Class SAMService

java.lang.Object
  extended by jade.core.BaseService
      extended by jade.core.sam.SAMService
All Implemented Interfaces:
Service

public class SAMService
extends BaseService

JADE Kernel service supporting System Activity Monitoring (SAM).


Nested Class Summary
 
Nested classes/interfaces inherited from interface jade.core.Service
Service.Slice
 
Field Summary
static java.lang.String POLLING_PERIOD
           
static int POLLING_PERIOD_DEFAULT
           
static java.lang.String SAM_INFO_HANDLERS
           
static java.lang.String SAM_INFO_HANDLERS_DEFAULT
           
 
Fields inherited from class jade.core.BaseService
ALL_DUMP_KEY, MAIN_SLICE, myFinder, myLogger, THIS_SLICE
 
Fields inherited from interface jade.core.Service
ADOPTED_NODE, DEAD_NODE, DEAD_PLATFORM_MANAGER, DEAD_REPLICA, DEAD_SLICE, NEW_NODE, NEW_REPLICA, NEW_SLICE, REATTACHED, RECONNECTED
 
Constructor Summary
SAMService()
           
 
Method Summary
 void boot(Profile p)
          Performs the active initialization step of a kernel-level service.
 ServiceHelper getHelper(Agent a)
          This should be properly implemented by the services that have helpers.
 java.lang.Class getHorizontalInterface()
          This should be properly implemented by the services that have non-empty slices.
 Service.Slice getLocalSlice()
          This should be properly implemented by the services that have non-empty slices.
 java.lang.String getName()
          Retrieve the name of this service, that can be used to look up its slices in the Service Finder.
 void shutdown()
          Performs the shutdown step of a kernel-level service.
 
Methods inherited from class jade.core.BaseService
addAlias, broadcast, clearCachedSlice, createInvokator, dump, getAllSlices, getAMSBehaviour, getCommandFilter, getCommandSink, getFreshSlice, getIMTPManager, getLocalNode, getNumberOfSlices, getOwnedCommands, getSlice, init, isLocal, lookupAlias, stringifySlice, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLLING_PERIOD

public static final java.lang.String POLLING_PERIOD
See Also:
Constant Field Values

POLLING_PERIOD_DEFAULT

public static final int POLLING_PERIOD_DEFAULT
See Also:
Constant Field Values

SAM_INFO_HANDLERS

public static final java.lang.String SAM_INFO_HANDLERS
See Also:
Constant Field Values

SAM_INFO_HANDLERS_DEFAULT

public static final java.lang.String SAM_INFO_HANDLERS_DEFAULT
See Also:
Constant Field Values
Constructor Detail

SAMService

public SAMService()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Service
Retrieve the name of this service, that can be used to look up its slices in the Service Finder.

Returns:
The name of this service.
See Also:
ServiceFinder

boot

public void boot(Profile p)
          throws ServiceException
Description copied from interface: Service
Performs the active initialization step of a kernel-level service. When JADE kernel calls this method, the service has already been already associated with its container and registered with the Service Manager.

Specified by:
boot in interface Service
Overrides:
boot in class BaseService
Parameters:
p - The configuration profile for this service.
Throws:
ServiceException - If a problem occurs during service initialization.

shutdown

public void shutdown()
Description copied from interface: Service
Performs the shutdown step of a kernel-level service. The JADE kernel calls this method just before uninstalling this service

Specified by:
shutdown in interface Service
Overrides:
shutdown in class BaseService

getHelper

public ServiceHelper getHelper(Agent a)
Description copied from class: BaseService
This should be properly implemented by the services that have helpers.

Specified by:
getHelper in interface Service
Overrides:
getHelper in class BaseService
Parameters:
a - The agent which the helper is requested for.
Returns:
The ServiceHelper to be used by the agent.
See Also:
AgentToolkit.getHelper(jade.core.Agent, java.lang.String), Agent.getHelper(java.lang.String)

getHorizontalInterface

public java.lang.Class getHorizontalInterface()
Description copied from class: BaseService
This should be properly implemented by the services that have non-empty slices.

Specified by:
getHorizontalInterface in interface Service
Overrides:
getHorizontalInterface in class BaseService
Returns:
A Class object, representing the interface that is implemented by the slices of this service. Let s be the Class object corresponding to the Service.Slice interface, and let c be the returned Class object. Then, the two following conditions must hold:
  1. c.isInterface() == true
  2. s.isAssignableFrom(c) == true

getLocalSlice

public Service.Slice getLocalSlice()
Description copied from class: BaseService
This should be properly implemented by the services that have non-empty slices.

Specified by:
getLocalSlice in interface Service
Overrides:
getLocalSlice in class BaseService
Returns:
The slice of this service that resides on the local platform node, or null if no such slice exists.


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions