public class SchedulerService extends Service implements csbase.remote.SchedulerServiceInterface
| Modifier | Constructor and Description |
|---|---|
protected |
SchedulerService()
Construtor da classe.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createService()
Constrói a instância do serviço de escalonamento.
|
protected void |
failCommand(csbase.logic.CommandInfo cmd,
csbase.logic.FailureFinalizationType cause)
Indica a falha na submissão de um comando.
|
Map<String,Integer> |
getAlgoStats(boolean flowAlgorithms) |
Map<csbase.logic.algorithms.ExecutionType,Integer> |
getExeTypeStats() |
int |
getFlowExecutionStats() |
protected Service[] |
getInitializationDependencies()
* Obtém todos os serviços dos quais este serviço depende para a sua
inicialização.
|
static SchedulerService |
getInstance()
Retorno da instância do serviço.
|
csbase.logic.CommandInfo[] |
getQueuedCommands() |
Map<String,Integer> |
getUserStats() |
protected boolean |
has2Update(Object arg,
Object event)
Método para indicar se o observador deve ser notificado.
|
void |
initService()
Inicialização do serviço de escalonamento.
|
boolean |
isBlocked() |
boolean |
removeCommand(Object commandId) |
void |
setBlocked(boolean blocked) |
boolean |
setPosition(Object commandId,
int position) |
boolean |
setPriority(Object commandId,
csbase.logic.Priority priority) |
void |
shutdownService()
Método invocado no término do serviço.
|
Set<csbase.logic.CommandInfo> |
submitCommand(csbase.logic.CommandSubmission submission) |
Set<csbase.logic.CommandInfo> |
submitCommand(csbase.logic.CommandSubmission commandSubmission,
csbase.remote.RemoteObserver... observers)
Deprecated.
|
void |
updateCommandDescription(String commandId,
String description) |
getBooleanProperty, getDefaultLocale, getDoubleProperty, getExternalPropertyFile, getFormattedString, getFormattedString, getInstance, getIntProperty, getKey, getLongProperty, getName, getOptionalString, getOptionalString, getOSPropertyPath, getSenderName, getServices, getString, getString, getStringListProperty, getStringProperty, getSystemId, getThreadLocale, getUser, getUserPermission, hasProperty, incrCounter, isActive, isEnabled, isInternalServerRequest, isLoggingNotifications, isPropertyNull, logNotification, setEnabled, setKey, setSystemId, setUserIdhandleException, handleFatalErroraddObserver, countObservers, deleteObserver, deleteObserver, deleteObservers, has2update, notifyObserversprotected SchedulerService()
throws ServerException
ServerException - se houver erro na inicialização.@Deprecated public Set<csbase.logic.CommandInfo> submitCommand(csbase.logic.CommandSubmission commandSubmission, csbase.remote.RemoteObserver... observers) throws RemoteException
submitCommand in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionpublic Set<csbase.logic.CommandInfo> submitCommand(csbase.logic.CommandSubmission submission) throws RemoteException
submitCommand in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionpublic boolean setPosition(Object commandId, int position)
setPosition in interface csbase.remote.SchedulerServiceInterfacepublic boolean setPriority(Object commandId, csbase.logic.Priority priority)
setPriority in interface csbase.remote.SchedulerServiceInterfacepublic void updateCommandDescription(String commandId, String description)
updateCommandDescription in interface csbase.remote.SchedulerServiceInterfaceprotected void failCommand(csbase.logic.CommandInfo cmd,
csbase.logic.FailureFinalizationType cause)
cmd - o comando que falhoucause - a causa da falha no comandopublic boolean removeCommand(Object commandId)
removeCommand in interface csbase.remote.SchedulerServiceInterfacepublic void setBlocked(boolean blocked)
setBlocked in interface csbase.remote.SchedulerServiceInterfacepublic boolean isBlocked()
isBlocked in interface csbase.remote.SchedulerServiceInterfacepublic csbase.logic.CommandInfo[] getQueuedCommands()
getQueuedCommands in interface csbase.remote.SchedulerServiceInterfacepublic static void createService()
throws ServerException
ServerException - se houver erro na inicialização.protected Service[] getInitializationDependencies()
getInitializationDependencies in class Servicepublic static final SchedulerService getInstance()
public final void initService()
throws ServerException
initService in class ServiceServerException - caso ocorra um erro na inicializaçãopublic void shutdownService()
shutdownService in class Serviceprotected boolean has2Update(Object arg, Object event)
has2Update in class csbase.remote.RemoteObjectObservablearg - Argumento do observador.event - Evento gerado para notificar o observador.true quando o observador deve ser notificado.public Map<csbase.logic.algorithms.ExecutionType,Integer> getExeTypeStats() throws RemoteException
getExeTypeStats in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionpublic Map<String,Integer> getAlgoStats(boolean flowAlgorithms) throws RemoteException
getAlgoStats in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionpublic int getFlowExecutionStats()
throws RemoteException
getFlowExecutionStats in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionpublic Map<String,Integer> getUserStats() throws RemoteException
getUserStats in interface csbase.remote.SchedulerServiceInterfaceRemoteExceptionCopyright © 2021. All rights reserved.