public class EventLogService extends Service implements csbase.remote.EventLogServiceInterface
EventLogService implementa o serviço de log de eventos,
que precisem ser auditados no servidor. O serviço apresenta o conceito de
fila ou grupo de log que é definido hierarquicamente com um array de strings,
podendo atingir qualquer nível de detalhe.| Modifier | Constructor and Description |
|---|---|
protected |
EventLogService()
Construtor padrão que somente define o nome do serviço com base em
EventLogServiceInterface.SERVICE_NAME. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClientInformation(java.lang.String[] queue,
java.lang.String[] info)
Adição de informação de eventlog relativa ao cliente.
|
boolean |
addServerInformation(java.lang.String[] queue,
java.lang.String[] info)
Adição de informação de eventlog relativa ao servidor.
|
static void |
createService()
Constrói a instância do serviço, através de seu construtor
protected. |
csbase.logic.eventlogservice.LogsInfo |
find(java.lang.String[][] queues,
java.util.Date initialDate,
java.util.Date finalDate) |
static EventLogService |
getInstance()
Retorna a instância do serviço no lado servidor.
|
boolean |
has2Update(java.lang.Object o1,
java.lang.Object o2)
Definição padrão do método abstrato de
Service. |
void |
initService()
Inicialização do serviço.
|
void |
shutdownService()
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, notifyObserversprotected EventLogService()
throws ServerException
EventLogServiceInterface.SERVICE_NAME.ServerException - se houver falha na construção do serviço.public final boolean has2Update(java.lang.Object o1,
java.lang.Object o2)
Service.has2Update in class csbase.remote.RemoteObjectObservablepublic static EventLogService getInstance()
EventLogServicepublic boolean addClientInformation(java.lang.String[] queue,
java.lang.String[] info)
addClientInformation in interface csbase.remote.EventLogServiceInterfacequeue - a fila de dados a ser gravada (que terá o prefixo
"client".info - o array de informações.public boolean addServerInformation(java.lang.String[] queue,
java.lang.String[] info)
queue - a fila de dados a ser gravada (que terá o prefixo
"server".info - o array de informações.public csbase.logic.eventlogservice.LogsInfo find(java.lang.String[][] queues,
java.util.Date initialDate,
java.util.Date finalDate)
find in interface csbase.remote.EventLogServiceInterfacepublic final void initService()
throws ServerException
initService in class ServiceServerException - se ocorrer um erro na inicializaçãopublic final void shutdownService()
shutdownService in class Servicepublic static void createService()
throws ServerException
protected.ServerException - se houver exceção na instanciação.Copyright © 2018. All Rights Reserved.