Class RemoteStackTraceElement
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.RemoteStackTraceElement
public class RemoteStackTraceElement extends Object
Represents a stack trace provided remotely.
-
Constructor Summary
Constructors Constructor Description RemoteStackTraceElement()
Constructor for serialisation.RemoteStackTraceElement(StackTraceElement element)
Create an element of a remote stack trace from a standard stack trace element. -
Method Summary
Modifier and Type Method Description String
getClassName()
Get the name of the class of the element.String
getFileName()
Get the name of the file of the element.int
getLineNumber()
Get the line number of the element.String
getMethodName()
Get the name of the method of the element.void
setClassName(String className)
Sets the className.void
setFileName(String fileName)
Sets the fileName.void
setLineNumber(int lineNumber)
Sets the lineNumber.void
setMethodName(String methodName)
Sets the methodName.StackTraceElement
toSTE()
Convert this remote stack trace element to a standard Java stack trace element.
-
Constructor Details
-
RemoteStackTraceElement
public RemoteStackTraceElement()Constructor for serialisation. -
RemoteStackTraceElement
Create an element of a remote stack trace from a standard stack trace element.- Parameters:
element
- The stack trace element to convert.
-
-
Method Details
-
getClassName
Get the name of the class of the element.- Returns:
- the className
-
setClassName
Sets the className.- Parameters:
className
- the className to set
-
getMethodName
Get the name of the method of the element.- Returns:
- the methodName
-
setMethodName
Sets the methodName.- Parameters:
methodName
- the methodName to set
-
getFileName
Get the name of the file of the element.- Returns:
- the fileName
-
setFileName
Sets the fileName.- Parameters:
fileName
- the fileName to set
-
getLineNumber
public int getLineNumber()Get the line number of the element.- Returns:
- the lineNumber
-
setLineNumber
public void setLineNumber(int lineNumber)Sets the lineNumber.- Parameters:
lineNumber
- the lineNumber to set
-
toSTE
Convert this remote stack trace element to a standard Java stack trace element.- Returns:
- The created stack trace element.
-