public final class ServerService extends Service implements csbase.remote.ServerServiceInterface
Representa o serviço de servidores.
Este serviço mantém um repositório com informações dos servidores.
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCert(String serverName,
Certificate c) |
boolean |
addServerInfo(csbase.logic.server.ServerInfoData serverInfoData) |
static void |
createService()
Cria a instância do serviço de servidores.
|
csbase.logic.diagnosticservice.DeploymentInfo |
getDeploymentInfo() |
static ServerService |
getInstance()
Obtém a instância única do serviço de servidores.
|
Map<String,Integer> |
getLoginStats(boolean succeeded) |
int |
getNumRegisteredUsers() |
Map<String,String> |
getRuntimeProperties() |
csbase.logic.server.ServerInfo |
getServerInfo(String serverName)
Obtém as informações de um servidor a partir do seu nome.
|
SortedSet<csbase.logic.server.ServerInfo> |
getServersInfos() |
long |
getStartupTime() |
protected boolean |
has2Update(Object arg,
Object event) |
void |
initService()
Método abstrato de inicialização do serviço.
|
String |
listRuntimeProperties() |
boolean |
modifyServerInfo(csbase.logic.server.ServerInfo serverInfo,
csbase.logic.server.ServerInfoData serverInfoData) |
void |
removeCert(String serverName) |
void |
removeServerInfo(csbase.logic.server.ServerInfo serverInfo) |
void |
shutdownService()
Método abstrato de término do serviço
|
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, notifyObserverspublic static ServerService getInstance()
public static void createService()
throws ServerException
ServerException - Caso ocorra alguma falha na criação do serviço.public void initService()
initService in class Servicepublic void shutdownService()
shutdownService in class Serviceprotected boolean has2Update(Object arg, Object event)
has2Update in class csbase.remote.RemoteObjectObservablepublic SortedSet<csbase.logic.server.ServerInfo> getServersInfos()
getServersInfos in interface csbase.remote.ServerServiceInterfacepublic boolean addServerInfo(csbase.logic.server.ServerInfoData serverInfoData)
addServerInfo in interface csbase.remote.ServerServiceInterfacepublic void removeServerInfo(csbase.logic.server.ServerInfo serverInfo)
removeServerInfo in interface csbase.remote.ServerServiceInterfacepublic boolean modifyServerInfo(csbase.logic.server.ServerInfo serverInfo,
csbase.logic.server.ServerInfoData serverInfoData)
modifyServerInfo in interface csbase.remote.ServerServiceInterfacepublic boolean addCert(String serverName, Certificate c)
addCert in interface csbase.remote.ServerServiceInterfacepublic void removeCert(String serverName)
removeCert in interface csbase.remote.ServerServiceInterfacepublic csbase.logic.server.ServerInfo getServerInfo(String serverName) throws csbase.exception.OperationFailureException
serverName - O nome do servidor.csbase.exception.OperationFailureException - Caso a operação falhe.public String listRuntimeProperties()
listRuntimeProperties in interface csbase.remote.ServerServiceInterfacepublic Map<String,String> getRuntimeProperties() throws RemoteException
getRuntimeProperties in interface csbase.remote.ServerServiceInterfaceRemoteExceptionpublic csbase.logic.diagnosticservice.DeploymentInfo getDeploymentInfo()
throws RemoteException
getDeploymentInfo in interface csbase.remote.ServerServiceInterfaceRemoteExceptionpublic int getNumRegisteredUsers()
throws RemoteException
getNumRegisteredUsers in interface csbase.remote.ServerServiceInterfaceRemoteExceptionpublic long getStartupTime()
getStartupTime in interface csbase.remote.ServerServiceInterfacepublic Map<String,Integer> getLoginStats(boolean succeeded) throws RemoteException
getLoginStats in interface csbase.remote.ServerServiceInterfaceRemoteExceptionCopyright © 2017. All rights reserved.