public final class ApplicationService extends Service implements csbase.remote.ApplicationServiceInterface
| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationService()
Construtor
|
protected |
ApplicationService(String srvName)
Construtor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createService()
Constrói a instância do serviço de gerência de algoritmos
|
Hashtable<String,csbase.logic.applicationservice.ApplicationCategory> |
getApplicationCategories() |
Hashtable<String,csbase.logic.applicationservice.ApplicationRegistry> |
getApplicationRegistries() |
csbase.logic.applicationservice.ApplicationRegistry |
getApplicationRegistry(String id) |
tecgraf.ftc.common.logic.RemoteFileChannelInfo |
getApplicationResource(String appId,
String[] resourcePath) |
static ApplicationService |
getInstance()
Obtém uma referência para a instância única (singleton) do serviço de
algoritmos.
|
protected boolean |
has2Update(Object arg,
Object event) |
void |
initService()
Método abstrato de inicialização do serviço.
|
boolean |
isLocked()
Verifica se há transação ativa de gerência do repositório.
|
boolean |
lock(csbase.remote.TransactionCallbackInterface cb)
Inicia uma transação de gerência do repositório de algoritmos (equivale à
obtenção de um "lock").
|
boolean |
reloadApplications() |
void |
shutdownService()
Método abstrato de término do serviço
|
void |
unlock(csbase.remote.TransactionCallbackInterface cb) |
getBooleanProperty, getDefaultLocale, getDoubleProperty, getExternalPropertyFile, getFormattedString, getFormattedString, getInitializationDependencies, 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 ApplicationService()
throws ServerException
ServerException - em caso de falha.protected ApplicationService(String srvName) throws ServerException
srvName - nome do serviçpServerException - exceção.public Hashtable<String,csbase.logic.applicationservice.ApplicationCategory> getApplicationCategories()
getApplicationCategories in interface csbase.remote.ApplicationServiceInterfacepublic Hashtable<String,csbase.logic.applicationservice.ApplicationRegistry> getApplicationRegistries()
getApplicationRegistries in interface csbase.remote.ApplicationServiceInterfacepublic csbase.logic.applicationservice.ApplicationRegistry getApplicationRegistry(String id)
getApplicationRegistry in interface csbase.remote.ApplicationServiceInterfacepublic tecgraf.ftc.common.logic.RemoteFileChannelInfo getApplicationResource(String appId, String[] resourcePath) throws RemoteException
getApplicationResource in interface csbase.remote.ApplicationServiceInterfaceRemoteExceptionprotected boolean has2Update(Object arg, Object event)
has2Update in class csbase.remote.RemoteObjectObservablepublic void initService()
throws ServerException
initService in class ServiceServerException - em caso de falhapublic boolean reloadApplications()
reloadApplications in interface csbase.remote.ApplicationServiceInterfacepublic void shutdownService()
shutdownService in class Servicepublic static void createService()
throws ServerException
ServerException - caso ocorra algum problema durante a instanciação.public static ApplicationService getInstance()
public boolean isLocked()
isLocked in interface csbase.remote.TransactionInterfacepublic boolean lock(csbase.remote.TransactionCallbackInterface cb)
lock in interface csbase.remote.TransactionInterfacecb - Callback que é utilizada pelo serviço para saber se quem efetuou
o lock ainda está respondendo.public void unlock(csbase.remote.TransactionCallbackInterface cb)
unlock in interface csbase.remote.TransactionInterfaceCopyright © 2021. All rights reserved.