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()
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, waitForStoppedarchiveLogDir, cleanDir, constructArchiveLogDir, constructCleanDir, getCustomDirectories, getDirProperties, getHost, getHostId, getLongPropertyValueOrDefault, getMaxMissedStatusChecksAllowed, getMaxWaitTimeSeconds, getMinWaitTimeSeconds, getNumLogBackups, getNumMissedStatusChecks, getProperties, getProperty, getSlowPollingIntervalMs, getStandardPollingIntervalMs, getStatus, incrementMissedStatusQueries, initializeEacStub, isActive, isDefined, isDefinitionChanged, isFailed, isHotUpdateDefinitionChange, isSkipTestingForFilesDuringCleanup, removeDefinition, setCustomDirectories, setDefinition, setDefinition, setHost, setHostId, setNumMissedStatusChecks, setProperties, updateDefinition, updateEacDefinition, updateEacDefinition, waitForFinishedgetAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinitiongetAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDirpublic 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.ServerComponentcom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionInterruptedExceptioncom.endeca.soleng.eac.toolkit.exception.AppConfigurationExceptionpublic com.endeca.eac.client.ComponentType buildEacStub()
buildEacStub in class com.endeca.soleng.eac.toolkit.component.Componentprotected void initializeEacStub(com.endeca.eac.client.LogServerComponentType stub)
public void callLogserverRollUrl()
throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException,
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException,
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException,
InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionInterruptedExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic boolean yesterdayIncludesLatestLogFile()
throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException,
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic boolean lastWeekIncludesLatestLogFile()
throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException,
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic boolean weekEndingYesterdayIncludesLatestLogFile()
throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException,
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptioncom.endeca.soleng.eac.toolkit.exception.EacComponentControlExceptionpublic 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.AppConfigurationExceptioncom.endeca.soleng.eac.toolkit.exception.EacCommunicationExceptionpublic 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.