public class GetLogTail extends ProcessSpecificCommand implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NLINES |
java.lang.String |
logFile |
int |
nlines |
DEFAULT_INSTALL_NAME, hostname, installName, processName
Constructor and Description |
---|
GetLogTail() |
GetLogTail(GetLogTail o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this GetLogTail.
|
static GetLogTail |
fromString(java.lang.String s)
String representation of this GetLogTail.
|
java.lang.String |
getLogFile()
Log filename to fetch.
|
int |
getNlines()
Number of lines to fetch.
|
GetLogTail |
makeCopy()
Creates and returns a deep copy of this GetLogTail.
|
static GetLogTail |
readFrom(java.io.InputStream is)
Read this GetLogTail from an XML fragment.
|
void |
setLogFile(java.lang.String logFile)
Log filename to fetch.
|
void |
setNlines(int nlines)
Number of lines to fetch.
|
java.lang.String |
toString()
String representation of this GetLogTail.
|
GetLogTail |
withHostname(java.lang.String hostname) |
GetLogTail |
withInstallName(java.lang.String installName) |
GetLogTail |
withLogFile(java.lang.String logFile) |
GetLogTail |
withNlines(int nlines) |
GetLogTail |
withNlines(java.lang.Integer nlines) |
GetLogTail |
withProcessName(java.lang.String processName) |
void |
writeTo(java.io.OutputStream os)
Write this GetLogTail as an XML fragment
|
getHostname, getInstallName, getProcessName, setHostname, setInstallName, setProcessName
public java.lang.String logFile
public int nlines
public static final int DEFAULT_NLINES
public GetLogTail()
public GetLogTail(GetLogTail o)
public GetLogTail withHostname(java.lang.String hostname)
withHostname
in class ProcessSpecificCommand
public GetLogTail withInstallName(java.lang.String installName)
withInstallName
in class ProcessSpecificCommand
public GetLogTail withProcessName(java.lang.String processName)
withProcessName
in class ProcessSpecificCommand
public void setLogFile(java.lang.String logFile)
public java.lang.String getLogFile()
public GetLogTail withLogFile(java.lang.String logFile)
public void setNlines(int nlines)
public int getNlines()
public GetLogTail withNlines(int nlines)
public GetLogTail withNlines(java.lang.Integer nlines)
public GetLogTail makeCopy()
makeCopy
in class ProcessSpecificCommand
public static GetLogTail readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class ProcessSpecificCommand
javax.xml.bind.JAXBException
java.io.IOException
public static GetLogTail fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class ProcessSpecificCommand
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ProcessSpecificCommand
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.