public class FetchLogLocal extends FetchLogPiped
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER
Logger instance for this class.
|
LOG_REFRESH_DELAY, out, PIPE_BUFFER_SIZE, taksExecute, task
Constructor and Description |
---|
FetchLogLocal(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish local server log fetcher with
external
ExecutorService . |
FetchLogLocal(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish local server log fetcher.
|
Modifier and Type | Method and Description |
---|---|
TaskState |
call()
Remote server log lines reading task.
|
private InputStream |
initInputFile()
Initializes active log file
InputStream
as FileInputStream sending data from local server
log file. |
addListener, close, create, create, create, create, initInputStream, isRunning, notifyListeners, removeListener
getInputStream
private static final Logger LOGGER
FetchLogLocal(GlassFishServer server, boolean skip)
initInputStream
method
which initializes InputStream
as
FileInputStream
before this constructor code is being
executed.
server
- GlassFish server for fetching local server log. Both
getDomainsFolder
and getDomainName
should not return null.skip
- Skip to the end of the log file.FetchLogLocal(ExecutorService executor, GlassFishServer server, boolean skip)
ExecutorService
.
Super class constructor will call initInputStream
method
which initializes InputStream
as
FileInputStream
before this constructor code is being
executed.
executor
- Executor service used to start task.server
- GlassFish server for fetching local server log. Both
getDomainsFolder
and getDomainName
should not return null.skip
- Skip to the end of the log file.private InputStream initInputFile()
InputStream
as FileInputStream
sending data from local server
log file.
FileInputStream
where log lines from server
active log file will be available to read.public TaskState call()
PipedInputStream
).
TaskState.COMPLETED
when remote administration API
stopped responding or TaskState.FAILED
when
exception was caught.Copyright © 2013. All Rights Reserved.