jason.core.service.admin
Class AdminService

java.lang.Object
  |
  +--jason.core.AbstractService
        |
        +--jason.core.ThreadableService
              |
              +--jason.core.TaskableService
                    |
                    +--jason.core.SocketService
                          |
                          +--jason.core.service.admin.AdminService
All Implemented Interfaces:
java.io.Serializable, Service, ServiceDataListener

public class AdminService
extends SocketService

Admin Service that offers administration capacity for JASon. It can for known user stops and starts special service. Next release could include information about working.

See Also:
Serialized Form

Field Summary
static java.lang.String[] AVAILABLE_COMMANDS
           
static boolean DEBUG_MODE
           
static java.lang.String[] HELP_COMMANDS
           
static java.lang.String TYPE
           
 
Fields inherited from class jason.core.SocketService
port, serverSocket, traceRequest
 
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
AdminService(int port)
           
 
Method Summary
protected  Task getTaskForSocket(java.net.Socket host)
           
 void notifyInitReady()
          Search for the port property
 
Methods inherited from class jason.core.SocketService
beforeRun, fireConflictDetected, fireSocketAccept, getSocketTimeout, notifyBadPort, notifyData, run, setBacklog, setSocketTimeout, setTraceRequest, start
 
Methods inherited from class jason.core.TaskableService
notifyTask
 
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
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, notifyStartReady, notifyStopReady, postStop, restart, sendCustomMessage, sendErrorMessage, sendInformationMessage, sendInnerError, sendWarningMessage, setAutoStop, setEnabled, setName, setPersistent, setPrivate, setProperty, setServiceContext, setTest, setType, setVerbose, setVersion, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static java.lang.String TYPE

DEBUG_MODE

public static boolean DEBUG_MODE

AVAILABLE_COMMANDS

public static java.lang.String[] AVAILABLE_COMMANDS

HELP_COMMANDS

public static java.lang.String[] HELP_COMMANDS
Constructor Detail

AdminService

public AdminService(int port)
Method Detail

notifyInitReady

public void notifyInitReady()
Description copied from class: SocketService
Search for the port property

Overrides:
notifyInitReady in class SocketService

getTaskForSocket

protected Task getTaskForSocket(java.net.Socket host)
                         throws ServiceException
Specified by:
getTaskForSocket in class SocketService
Returns:
a task for a user socker
ServiceException