public class EmbeddedLogService extends AbstractSAFSLoggingService implements ServiceInterface
closeParser, customService, debugLog, defaultDir, handle, HELP_MSGTYPE_STR, HELP_STR, helpParser, initParser, listParser, logfacs, logLevelParser, logMessageParser, mode, procName, queryParser, remoteMachine, remoteService, resumeLogParser, servicename, SLS_SERVICE_MODE_LOCAL, SLS_SERVICE_MODE_REMOTE, SLS_SERVICE_OPTION_CUSTOMLOGGING, SLS_SERVICE_OPTION_DIR, SLS_SERVICE_OPTION_NAME, SLS_SERVICE_OPTION_REMOTE, SLS_SERVICE_PARM_ALL, SLS_SERVICE_PARM_CAPXML, SLS_SERVICE_PARM_CONSOLELOG, SLS_SERVICE_PARM_DEBUG, SLS_SERVICE_PARM_DESCRIPTION, SLS_SERVICE_PARM_ERROR, SLS_SERVICE_PARM_INFO, SLS_SERVICE_PARM_LINKEDFAC, SLS_SERVICE_PARM_MESSAGE, SLS_SERVICE_PARM_MSGTYPE, SLS_SERVICE_PARM_OFF, SLS_SERVICE_PARM_ON, SLS_SERVICE_PARM_OVERWRITE, SLS_SERVICE_PARM_SETTINGS, SLS_SERVICE_PARM_TEXTLOG, SLS_SERVICE_PARM_TOOLLOG, SLS_SERVICE_PARM_WARN, SLS_SERVICE_PARM_XMLLOG, SLS_SERVICE_REQUEST_CLOSE, SLS_SERVICE_REQUEST_HANDLEID, SLS_SERVICE_REQUEST_HELP, SLS_SERVICE_REQUEST_INIT, SLS_SERVICE_REQUEST_LIST, SLS_SERVICE_REQUEST_LOGLEVEL, SLS_SERVICE_REQUEST_LOGMESSAGE, SLS_SERVICE_REQUEST_QUERY, SLS_SERVICE_REQUEST_RESUMELOG, SLS_SERVICE_REQUEST_SUSPENDLOG, SLS_SERVICE_REQUEST_TRUNCATE, SLS_SERVICE_REQUEST_VERSION, SLS_SETTINGS_CUSTOM_LOGGING_PREFIX, SLS_SETTINGS_DEFAULT_DIR_PREFIX, SLS_SETTINGS_MODE_PREFIX, SLS_SETTINGS_REMOTE_MACHINE_PREFIX, SLS_SETTINGS_REMOTE_SERVICE_PREFIX, SLS_STAF_LOG_SERVICE_NAME, SLS_STATES_CONSOLELOG_PREFIX, SLS_STATES_LOGLEVEL_PREFIX, SLS_STATES_TOOLLOG_PREFIX, SLS_TRUNCATELENGTH_DEFAULT, suspendLogParser, truncateLength, truncateLines, truncateParser, VERSION_STR
Constructor and Description |
---|
EmbeddedLogService() |
Modifier and Type | Method and Description |
---|---|
protected AbstractSTAFTextLogItem |
getSTAFTextLogItem(java.lang.String name,
java.lang.String directory,
java.lang.String filename) |
protected AbstractSTAFXmlLogItem |
getSTAFXmlLogItem(java.lang.String name,
java.lang.String directory,
java.lang.String filename) |
com.ibm.staf.STAFResult |
init(InfoInterface.InitInfo initInfo)
Intercepts initializing the instance of the service to get servicename information.
|
protected com.ibm.staf.STAFResult |
initSTAFLogService()
Bypass STAFLog service initialization.
|
protected void |
registerHandle(java.lang.String handleId) |
com.ibm.staf.STAFResult |
term()
Handles removing this service from STAF.
|
com.ibm.staf.STAFResult |
terminateService() |
acceptRequest, createCloseParser, createHelpParser, createInitParser, createListParser, createLogLevelParser, createLogMessageParser, createQueryParser, createResumeParser, createSuspendLogParser, createTruncateParser, handleClose, handleHandleId, handleHelp, handleInit, handleList, handleLogLevel, handleLogMessage, handleQuery, handleResumeLog, handleSuspendLog, handleTruncate, handleVersion, loadServiceInitParameters, normalizeAltname, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptRequest
protected void registerHandle(java.lang.String handleId) throws com.ibm.staf.STAFException
registerHandle
in class AbstractSAFSLoggingService
com.ibm.staf.STAFException
public com.ibm.staf.STAFResult init(InfoInterface.InitInfo initInfo)
This service is registered under process name "STAF/Service/<ServiceName>".
init
in class AbstractSAFSLoggingService
protected com.ibm.staf.STAFResult initSTAFLogService()
initSTAFLogService
in class AbstractSAFSLoggingService
public final com.ibm.staf.STAFResult term()
All log facilities are forced to close.
protected AbstractSTAFTextLogItem getSTAFTextLogItem(java.lang.String name, java.lang.String directory, java.lang.String filename)
getSTAFTextLogItem
in class AbstractSAFSLoggingService
protected AbstractSTAFXmlLogItem getSTAFXmlLogItem(java.lang.String name, java.lang.String directory, java.lang.String filename)
getSTAFXmlLogItem
in class AbstractSAFSLoggingService
public com.ibm.staf.STAFResult terminateService()
terminateService
in interface ServiceInterface
Copyright © SAS Institute. All Rights Reserved.