public class LogServerComponent
extends com.endeca.soleng.eac.toolkit.component.ServerComponent
Constructor and Description |
---|
LogServerComponent() |
Modifier and Type | Method and Description |
---|---|
com.endeca.eac.client.ComponentType |
buildEacStub() |
void |
callLogserverRollUrl(String hostName)
Shells out to call curl on the logserver's /roll URL to trigger a log roll.
|
void |
copyAllButLastLogFileToTargetDir()
Copies all log files in the LogServer output to the target report gen
directory, excluding the log file with the latest time stamp.
|
void |
copyAllLogFilesToTargetDir()
Copies all log files in the LogServer output to the target report gen
directory.
|
void |
copyDaySoFarLogFilesToTargetDir()
Copies the log files required for the "DaySoFar" report to the target
report gen directory.
|
void |
copyLastWeekLogFilesToTargetDir()
Copies the log files required for the "LastWeek" report to the target
report gen directory.
|
void |
copyLogFilesToTargetDir(Date startDate,
Date endDate)
Copies all log files in a specified date range from logserver output to
target report gen directory.
|
void |
copyWeekEndingYesterdayLogFilesToTargetDir()
Copies the log files required for the week ending yesterday report to the target
report gen directory.
|
void |
copyYesterdayLogFilesToTargetDir()
Copies the log files required for the "Yesterday" report to the target
report gen directory.
|
void |
cycle() |
boolean |
dateRangeIncludesLatestLogFile(Date startDate,
Date endDate)
Returns true if the requested date range would require the most recent
log file.
|
SortedMap<Date,String> |
getLogFilesByStartDate()
Returns a map of all logserver output files, keyed by the date object parsed
from the file's timestamp.
|
String |
getOutputDir() |
int |
getPort() |
String |
getTargetReportGenDir() |
String |
getTargetReportGenHostId() |
protected void |
initializeEacStub(com.endeca.eac.client.LogServerComponentType stub) |
boolean |
isGzip() |
boolean |
lastWeekIncludesLatestLogFile()
Returns true if the latest log file is included in the date range required
for the "LastWeek" report.
|
void |
setGzip(boolean gzip) |
void |
setOutputDir(String outputDir) |
void |
setPort(int port) |
boolean |
weekEndingYesterdayIncludesLatestLogFile()
Returns true if the latest log file is included in the date range required
for the week ending yesterday report.
|
boolean |
yesterdayIncludesLatestLogFile()
Returns true if the latest log file is included in the date range required
for the "Yesterday" report.
|
getNumIdleSecondsAfterStop, getPostStartupScript, getPreShutdownScript, getShutdownTimeout, getStartupTimeout, isRunning, isStarting, setPostStartupScript, setPreShutdownScript, setStartupTimeout, start, startAsynchronously, startInParallel, stop, stopAsynchronously, stopInParallel, waitForStarted, waitForStopped
archiveLogDir, cleanDir, constructArchiveLogDir, constructCleanDir, getCaFile, getCertFile, getCipher, getCustomDirectories, getDEFAULT_CIPHER, getDirProperties, getHost, getHostId, getLongPropertyValueOrDefault, getMaxMissedStatusChecksAllowed, getMaxWaitTimeSeconds, getMinWaitTimeSeconds, getNumLogBackups, getNumMissedStatusChecks, getProperties, getProperty, getSlowPollingIntervalMs, getSslConfig, getStandardPollingIntervalMs, getStatus, incrementMissedStatusQueries, initializeEacStub, isActive, isDefined, isDefinitionChanged, isFailed, isHotUpdateDefinitionChange, isSkipTestingForFilesDuringCleanup, removeDefinition, setCaFile, setCertFile, setCipher, setCustomDirectories, setDefinition, setDefinition, setHost, setHostId, setNumMissedStatusChecks, setProperties, setSslConfig, updateDefinition, updateEacDefinition, updateEacDefinition, waitForFinished
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinition
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public void cycle() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
cycle
in class com.endeca.soleng.eac.toolkit.component.ServerComponent
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
public com.endeca.eac.client.ComponentType buildEacStub()
buildEacStub
in class com.endeca.soleng.eac.toolkit.component.Component
protected void initializeEacStub(com.endeca.eac.client.LogServerComponentType stub)
public void callLogserverRollUrl(String hostName) throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException
hostName
- LogServer hostNamecom.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
public void copyYesterdayLogFilesToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void copyDaySoFarLogFilesToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public boolean yesterdayIncludesLatestLogFile() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyLastWeekLogFilesToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public boolean lastWeekIncludesLatestLogFile() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyWeekEndingYesterdayLogFilesToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public boolean weekEndingYesterdayIncludesLatestLogFile() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public boolean dateRangeIncludesLatestLogFile(Date startDate, Date endDate) throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
startDate
- endDate
- com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyAllLogFilesToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void copyAllButLastLogFileToTargetDir() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void copyLogFilesToTargetDir(Date startDate, Date endDate) throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public SortedMap<Date,String> getLogFilesByStartDate() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public String getTargetReportGenDir()
public String getTargetReportGenHostId()
public boolean isGzip()
public void setGzip(boolean gzip)
public String getOutputDir()
public void setOutputDir(String outputDir)
public int getPort()
public void setPort(int port)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.