public interface SGAServiceInterface extends ServiceInterface, RemoteObservable
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Nome do serviço para o
ServiceManager |
| Modifier and Type | Method and Description |
|---|---|
SGAInfo[] |
getAllInfo(String sgaName)
Obtém as informações de todos os nós de um SGA.
|
Vector<CommandInfo> |
getAllSGACommands()
Retorna um Vector com informações da monitoração de todos os comandos em
execução nos diversos SGAs.
|
Vector<String> |
getAllSGANames()
Retorno de todos os nomes de servidores cadastrados no SSI (SGA-Service)
|
List<ClientSGAFile> |
getChildren(String sgaName,
String path)
Retorna lista com os arquivos filhos dado um SGA e um path.
|
int |
getCommandsUpdateInterval()
Retorna o intervalo de atualização das informações dos comandos.
|
Map<CommandFinalizationType,Integer> |
getExeResultsStats(boolean flowResults)
Obtém um mapa com as estatísticas de tipos de término de execução.
|
ClientSGAFile |
getFile(String sgaName,
String path)
Retorna
ClientSGAFile equivalente ao dado path. |
SGAInfo |
getInfo(String sgaName,
int index)
Obtém as informações de um determinado nó de um SGA.
|
ServerGroupInfo[] |
getServerGroups()
Obtém os grupos de servidores definidos por um usuário.
|
CommandInfo |
getSGACommand(String sgaName,
String cmdId)
Retorna as informações da monitoração de um comando em execução.
|
Set<CommandInfo> |
getSGACommands(String sgaName)
Retorna um conjunto com informações da monitoração de todos os comandos em
execução em um SGA.
|
SGASet |
getSGASet(String sgaName)
Obtém um SGA.
|
Map<String,Integer> |
getSGAsStats()
Obtém um mapa com as estatísticas de execuções por máquina (nós SGA).
|
int |
getUpdateInterval()
Retorna o intervalo de atualização das informações dos SGAs
|
boolean |
killCommand(String cmdId)
Envio de notificação para cancelar a execução de um comando específico
|
boolean |
killCommand(String sgaName,
String cmdId)
Envio de notificação para cancelar a execução de um comando específico
|
void |
killCommandAnyway(String sgaName,
String cmdId)
Finalização de comando pelo administrador (kill).
|
Collection<String> |
restartAllSGAs()
Solicita o relançamento de todos os SGAs.
|
boolean |
restartSGA(String sgaName)
Solicita o relançamento de um SGA específico
|
boolean |
setServerGroups(ServerGroupInfo[] groups)
Atualiza os grupos de servidores definidos por um usuário.
|
Collection<String> |
shutdownAllSGAs()
Solicita o shutdown de todos os SGAs.
|
boolean |
shutdownSGA(String sgaName)
Solicita o shutdown de um SGA específico.
|
boolean |
updateCommandDescription(String commandId,
String description)
Atualiza a descrição do comando.
|
getName, isActiveaddObserver, countObservers, deleteObserver, deleteObservers, notifyObserversstatic final String SERVICE_NAME
ServiceManagerVector<String> getAllSGANames() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.SGASet getSGASet(String sgaName) throws RemoteException
sgaName - nome do SGARemoteException - se houver falha na chamada remota ao servidor.SGAInfo[] getAllInfo(String sgaName) throws RemoteException
sgaName - nome do SGARemoteException - se houver falha na chamada remota ao servidor.SGAInfo getInfo(String sgaName, int index) throws RemoteException
sgaName - nome do SGAindex - índice do nóRemoteException - se houver falha na chamada remota ao servidor.List<ClientSGAFile> getChildren(String sgaName, String path) throws RemoteException
sgaName - nome do SGA.path - path pai.RemoteException - se houver falha na chamada remota ao servidor.ClientSGAFile getFile(String sgaName, String path) throws RemoteException
ClientSGAFile equivalente ao dado path.sgaName - nome do SGA.path - path do arquivo ou diretório.ClientSGAFile equivalente ao dado path.RemoteException - se houver falha na chamada remota ao servidor.int getUpdateInterval()
throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.int getCommandsUpdateInterval()
throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.ServerGroupInfo[] getServerGroups() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.boolean setServerGroups(ServerGroupInfo[] groups) throws RemoteException
groups - array com as informações dos gruposRemoteException - se houver falha na chamada remota ao servidor.boolean updateCommandDescription(String commandId, String description) throws RemoteException
commandId - identificador do comando a ser atualizado.description - nova descrição do comando.true se o comando foi atualizado com sucessoRemoteException - se houver falha na chamada remota ao servidor.boolean shutdownSGA(String sgaName) throws RemoteException
sgaName - o nome do SGA.RemoteException - se houver falha na chamada remota ao servidor.boolean restartSGA(String sgaName) throws RemoteException
sgaName - o nome do SGA.RemoteException - se houver falha na chamada remota ao servidor.Collection<String> shutdownAllSGAs() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.Collection<String> restartAllSGAs() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.CommandInfo getSGACommand(String sgaName, String cmdId) throws RemoteException
sgaName - O nome do sga.cmdId - O identificador do comando.RemoteException - se houver falha na chamada remota ao servidor.Vector<CommandInfo> getAllSGACommands() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.Set<CommandInfo> getSGACommands(String sgaName) throws RemoteException
sgaName - O nome do SGA.null caso não seja possível
acessar o SGA.RemoteException - se houver falha na chamada remota ao servidor.boolean killCommand(String cmdId) throws RemoteException
cmdId - identificador do comandoRemoteException - se houver falha na chamada remota ao servidor.boolean killCommand(String sgaName, String cmdId) throws RemoteException
sgaName - nome do SGAcmdId - identificador do comandoRemoteException - se houver falha na chamada remota ao servidor.void killCommandAnyway(String sgaName, String cmdId) throws RemoteException
sgaName - nome do SGA.cmdId - identificador do comando.RemoteException - se houver falha na chamada remota ao servidor.Map<CommandFinalizationType,Integer> getExeResultsStats(boolean flowResults) throws RemoteException
flowResults - true para obter estatísticas de fluxos,
false para obter das execuções simplesRemoteException - se houver falha na chamada remota ao servidor.Map<String,Integer> getSGAsStats() throws RemoteException
RemoteException - se houver falha na chamada remota ao servidor.Copyright © 2020. All rights reserved.