public class FetchLogRemote 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 |
---|
FetchLogRemote(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher with
external
ExecutorService . |
FetchLogRemote(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher.
|
Modifier and Type | Method and Description |
---|---|
TaskState |
call()
Remote server log lines reading task.
|
addListener, close, create, create, create, create, initInputStream, isRunning, notifyListeners, removeListener
getInputStream
private static final Logger LOGGER
FetchLogRemote(GlassFishServer server, boolean skip)
initInputStream
method
which initializes InputStream
as
PipedInputStream
before this constructor code is being
executed. Here we can simply connect already initialized
PipedInputStream
with newly created
PipedInputStream
.
server
- GlassFish server for fetching server log.skip
- Skip to the end of the log file.FetchLogRemote(ExecutorService executor, GlassFishServer server, boolean skip)
ExecutorService
.
Super class constructor will call initInputStream
method
which initializes InputStream
as
PipedInputStream
before this constructor code is being
executed. Here we can simply connect already initialized
PipedInputStream
with newly created
PipedInputStream
.
executor
- Executor service used to start task.server
- GlassFish server for fetching server log.skip
- Skip to the end of the log file.public TaskState call()
PipedInputStream
).
TaskState.COMPLETED
when remote administration API
stopped responding or TaskState.FAILED
when
exception was caught.Copyright © 2013. All Rights Reserved.