Class NotificationLogViewer
- java.lang.Object
-
- org.glassfish.admin.rest.resources.custom.LogViewerResource
-
- org.glassfish.admin.rest.resources.custom.NotificationLogViewer
-
public class NotificationLogViewer extends LogViewerResource
Represents a large text data. This class defines methods for handling progressive text update.Usage
- Author:
- Kohsuke Kawaguchi, Susan Rai
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.admin.rest.resources.custom.LogViewerResource
LogViewerResource.Source, LogViewerResource.TailMark
-
-
Constructor Summary
Constructors Constructor Description NotificationLogViewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createNotificationLogFolder(String FolderName)
jakarta.ws.rs.core.Response
get(long start, String instanceName, jakarta.ws.rs.core.HttpHeaders hh)
void
readServerLogFile(String file)
void
writeToNotificationLogFile(String fileName)
-
Methods inherited from class org.glassfish.admin.rest.resources.custom.LogViewerResource
getDomainUptimeResource, initLargeText, initLargeText, isComplete, markAsComplete, setEntity, writeLogTo, writeLogTo
-
-
-
-
Method Detail
-
get
@GET @Produces("text/plain;charset=UTF-8") public jakarta.ws.rs.core.Response get(@QueryParam("start") @DefaultValue("0") long start, @QueryParam("instanceName") @DefaultValue("server") String instanceName, @Context jakarta.ws.rs.core.HttpHeaders hh) throws IOException
- Overrides:
get
in classLogViewerResource
- Throws:
IOException
-
createNotificationLogFolder
public void createNotificationLogFolder(String FolderName)
-
writeToNotificationLogFile
public void writeToNotificationLogFile(String fileName)
-
readServerLogFile
public void readServerLogFile(String file)
-
-