@Scope(value=CONVERSATION) @Name(value="logsViewerActions") @Install(precedence=10) public class LogsViewerActions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
LogsViewerActions.LogLine |
Modifier and Type | Field and Description |
---|---|
protected long |
bytesRead |
protected List<LogsViewerActions.LogLine> |
initialLogLines |
static int |
LOG_MAX_LINES_COUNT |
static String |
LOG_MAX_LINES_COUNT_KEY |
protected List<String> |
logFiles |
protected long |
logMaxLinesCount |
protected String |
selectedLogFile |
protected long |
selectedLogFileLastModified |
Constructor and Description |
---|
LogsViewerActions() |
Modifier and Type | Method and Description |
---|---|
void |
downloadLogFile() |
void |
flushCache() |
String |
getFileName(String logFile) |
List<LogsViewerActions.LogLine> |
getInitialLogLines() |
List<String> |
getLogFiles() |
long |
getLogMaxLinesCount() |
List<LogsViewerActions.LogLine> |
getNewLogLines() |
String |
getSelectedLogFile() |
void |
setSelectedLogFile(String selectedLogFile) |
public static final String LOG_MAX_LINES_COUNT_KEY
public static final int LOG_MAX_LINES_COUNT
protected long logMaxLinesCount
protected String selectedLogFile
protected long selectedLogFileLastModified
protected List<LogsViewerActions.LogLine> initialLogLines
protected long bytesRead
public LogsViewerActions()
public long getLogMaxLinesCount()
public List<String> getLogFiles()
public String getSelectedLogFile()
public void setSelectedLogFile(String selectedLogFile)
public String getFileName(String logFile)
public List<LogsViewerActions.LogLine> getInitialLogLines() throws IOException
IOException
@Factory(value="newLogLines", scope=EVENT) public List<LogsViewerActions.LogLine> getNewLogLines() throws IOException
IOException
public void downloadLogFile() throws IOException, OperationException
IOException
OperationException
public void flushCache()
Copyright © 2015 Nuxeo SA. All rights reserved.