public class LogViewerResource extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
LogViewerResource.Source
Represents the data source of this text.
|
protected static class |
LogViewerResource.TailMark
Points to the end of the region.
|
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
charset |
protected boolean |
completed |
protected LocatorBridge |
habitat |
protected org.glassfish.hk2.api.ServiceLocator |
injector |
protected javax.ws.rs.core.UriInfo |
ui |
| Constructor and Description |
|---|
LogViewerResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
get(long start,
String instanceName,
javax.ws.rs.core.HttpHeaders hh) |
StructuredLogViewerResource |
getDomainUptimeResource() |
void |
initLargeText(File file,
boolean completed) |
void |
initLargeText(File file,
Charset charset,
boolean completed) |
boolean |
isComplete() |
void |
markAsComplete() |
void |
setEntity(Dom p) |
protected long |
writeLogTo(long start,
OutputStream os)
Writes the tail portion of the file to the
OutputStream. |
protected long |
writeLogTo(long start,
Writer w) |
@Context protected org.glassfish.hk2.api.ServiceLocator injector
@Context protected javax.ws.rs.core.UriInfo ui
@Context protected LocatorBridge habitat
protected Charset charset
protected volatile boolean completed
public void setEntity(Dom p)
@Path(value="details/") public StructuredLogViewerResource getDomainUptimeResource()
@GET
@Produces(value="text/plain;charset=UTF-8")
public javax.ws.rs.core.Response get(@QueryParam(value="start") @DefaultValue(value="0")
long start,
@QueryParam(value="instanceName") @DefaultValue(value="server")
String instanceName,
@Context
javax.ws.rs.core.HttpHeaders hh)
throws IOException
IOExceptionpublic void initLargeText(File file, boolean completed)
public void markAsComplete()
public boolean isComplete()
protected long writeLogTo(long start,
Writer w)
throws IOException
IOExceptionprotected long writeLogTo(long start,
OutputStream os)
throws IOException
OutputStream.start - The byte offset in the input file where the write operation starts.IOExceptionCopyright © 2019. All rights reserved.