public class SGALocal extends Object implements csbase.server.plugin.service.sgaservice.ISGADaemon
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger
Logger usado pelo SGA
|
protected Properties |
pluginProperties
As propriedades do SGALocal.
|
static String |
SGA_COMPLETED_TIME_KEY |
static String |
SGA_MACHINE_TIME_KEY |
static String |
SGA_PROCESS_TIME_KEY |
static String |
SGA_SERVICE_NAME
Nome do serviço SGA.
|
static String |
SGA_UPDATE_TIME_KEY |
| Constructor and Description |
|---|
SGALocal(csbase.server.plugin.service.IServiceManager serviceManager)
Construtor padrão.
|
| Modifier and Type | Method and Description |
|---|---|
void |
control(sgaidl.SGAControlAction action) |
sgaidl.SGACommand |
executeCommand(String commandString,
String commandId,
sgaidl.Pair[] extraParams) |
protected JobExecutor |
getExecutor()
Obtém o executor de jobs.
|
protected EnvironmentMonitor |
getMonitor()
Obtém o monitor do ambiente de execução.
|
sgaidl.SGAPath |
getPath(String path)
Se o path passado como parâmetro não for acessível no sistema de arquivos
do SGA, retorna null.
|
sgaidl.SGAPath[] |
getPaths(String root) |
protected void |
init()
|
void |
ping() |
void |
setDefaultConfigKeys(String[] keys) |
void |
setDefaultInfoKeys(String[] keys) |
protected void |
setExecutor(JobExecutor executor)
Define o executor de jobs.
|
protected void |
setMonitor(EnvironmentMonitor monitor)
Define o monitor do ambiente de execução.
|
void |
setProperties(Properties pluginProps) |
boolean |
start() |
void |
stop() |
public static final String SGA_SERVICE_NAME
public static final String SGA_MACHINE_TIME_KEY
public static final String SGA_UPDATE_TIME_KEY
public static final String SGA_PROCESS_TIME_KEY
public static final String SGA_COMPLETED_TIME_KEY
protected Properties pluginProperties
protected Logger logger
public SGALocal(csbase.server.plugin.service.IServiceManager serviceManager)
serviceManager - gerente dos serviçosprotected void init()
executor
e monitor. Deve ser sobreescrito nas classes que
extendem SGALocal para definirem implementações específicas de
JobExecutor e EnvironmentMonitor usando os métodos setExecutor(JobExecutor) e
setMonitor(EnvironmentMonitor) respectivamente.
A implementação padrão usa DefaultJobExecutor e
EnvironmentMonitor.protected JobExecutor getExecutor()
protected void setExecutor(JobExecutor executor)
executor - o executorprotected EnvironmentMonitor getMonitor()
protected void setMonitor(EnvironmentMonitor monitor)
monitor - o monitorpublic sgaidl.SGACommand executeCommand(String commandString, String commandId, sgaidl.Pair[] extraParams) throws sgaidl.SystemException, sgaidl.MissingParameterException
executeCommand in interface sgaidl.SGADaemonOperationssgaidl.SystemExceptionsgaidl.MissingParameterExceptionpublic void control(sgaidl.SGAControlAction action)
control in interface sgaidl.SGADaemonOperationspublic sgaidl.SGAPath getPath(String path) throws sgaidl.InvalidPathException, sgaidl.PathNotFoundException
getPath in interface sgaidl.SGADaemonOperationssgaidl.InvalidPathExceptionsgaidl.PathNotFoundExceptionpublic sgaidl.SGAPath[] getPaths(String root) throws sgaidl.InvalidPathException, sgaidl.PathNotFoundException
getPaths in interface sgaidl.SGADaemonOperationssgaidl.InvalidPathExceptionsgaidl.PathNotFoundExceptionpublic void ping()
ping in interface sgaidl.SGADaemonOperationspublic void setDefaultConfigKeys(String[] keys)
setDefaultConfigKeys in interface sgaidl.SGADaemonOperationspublic void setDefaultInfoKeys(String[] keys)
setDefaultInfoKeys in interface sgaidl.SGADaemonOperationspublic void setProperties(Properties pluginProps)
setProperties in interface csbase.server.plugin.service.sgaservice.ISGADaemonpublic boolean start()
throws csbase.server.plugin.service.sgaservice.SGADaemonException
start in interface csbase.server.plugin.service.sgaservice.ISGADaemoncsbase.server.plugin.service.sgaservice.SGADaemonExceptionpublic void stop()
stop in interface csbase.server.plugin.service.sgaservice.ISGADaemonCopyright © 2016. All rights reserved.