|
EAC Components 3.2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.soleng.eac.toolkit.base.EacElement com.endeca.soleng.eac.toolkit.base.Provisionable com.endeca.soleng.eac.toolkit.component.Component com.endeca.soleng.eac.toolkit.component.ServerComponent com.endeca.soleng.eac.toolkit.component.LogServerComponent
public class LogServerComponent
Field Summary |
---|
Fields inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
---|
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir |
Constructor Summary | |
---|---|
LogServerComponent()
|
Method Summary | |
---|---|
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 |
copyLastWeekLogFilesToTargetDir()
Copies the log files required for the "LastWeek" report to the target report gen directory. |
void |
copyLogFilesToTargetDir(java.util.Date startDate,
java.util.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(java.util.Date startDate,
java.util.Date endDate)
Returns true if the requested date range would require the most recent log file. |
java.util.SortedMap<java.util.Date,java.lang.String> |
getLogFilesByStartDate()
Returns a map of all logserver output files, keyed by the date object parsed from the file's timestamp. |
java.lang.String |
getOutputDir()
|
int |
getPort()
|
java.lang.String |
getTargetReportGenDir()
|
java.lang.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(java.lang.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. |
Methods inherited from class com.endeca.soleng.eac.toolkit.component.ServerComponent |
---|
getNumIdleSecondsAfterStop, getPostStartupScript, getPreShutdownScript, getShutdownTimeout, getStartupTimeout, isRunning, isStarting, setPostStartupScript, setPreShutdownScript, setStartupTimeout, start, startAsynchronously, startInParallel, stop, stopAsynchronously, stopInParallel, waitForStarted, waitForStopped |
Methods inherited from class com.endeca.soleng.eac.toolkit.component.Component |
---|
archiveLogDir, 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, waitForFinished |
Methods inherited from class com.endeca.soleng.eac.toolkit.base.Provisionable |
---|
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinition |
Methods inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
---|
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogServerComponent()
Method Detail |
---|
public void cycle() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.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
java.lang.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() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.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 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(java.util.Date startDate, java.util.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(java.util.Date startDate, java.util.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 java.util.SortedMap<java.util.Date,java.lang.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 java.lang.String getTargetReportGenDir()
public java.lang.String getTargetReportGenHostId()
public boolean isGzip()
public void setGzip(boolean gzip)
public java.lang.String getOutputDir()
public void setOutputDir(java.lang.String outputDir)
public int getPort()
public void setPort(int port)
|
EAC Components 3.2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@VERSION PRODUCT: EAC Components (eacComponents) VERSION: 3.2.2 BUILD: NONEDEV ARCH_OS: n/a DATE: 2012-02-28T13:13:23-0500