Package psiprobe.model
Class RequestProcessor
- java.lang.Object
-
- psiprobe.model.RequestProcessor
-
public class RequestProcessor extends Object
POJO representing a single http request processor thread.
-
-
Field Summary
Fields Modifier and Type Field Description private long
bytesReceived
The bytes received.private long
bytesSent
The bytes sent.private String
currentQueryString
The current query string.private String
currentUri
The current uri.private String
method
The method.private String
name
The name.private long
processingTime
The processing time.private String
protocol
The protocol.private String
remoteAddr
The remote addr.private Locale
remoteAddrLocale
The remote addr locale.private int
stage
The stage.private String
virtualHost
The virtual host.private String
workerThreadName
The worker thread name.private boolean
workerThreadNameSupported
The worker thread name supported.
-
Constructor Summary
Constructors Constructor Description RequestProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBytesReceived()
Gets the bytes received.long
getBytesSent()
Gets the bytes sent.String
getCurrentQueryString()
Gets the current query string.String
getCurrentUri()
Gets the current uri.String
getMethod()
Gets the method.String
getName()
Gets the name.long
getProcessingTime()
Gets the processing time.String
getProtocol()
Gets the protocol.String
getRemoteAddr()
Gets the remote addr.Locale
getRemoteAddrLocale()
Gets the remote addr locale.int
getStage()
Gets the stage.String
getVirtualHost()
Gets the virtual host.String
getWorkerThreadName()
Gets the worker thread name.boolean
isWorkerThreadNameSupported()
Checks if is worker thread name supported.void
setBytesReceived(long bytesReceived)
Sets the bytes received.void
setBytesSent(long bytesSent)
Sets the bytes sent.void
setCurrentQueryString(String currentQueryString)
Sets the current query string.void
setCurrentUri(String currentUri)
Sets the current uri.void
setMethod(String method)
Sets the method.void
setName(String name)
Sets the name.void
setProcessingTime(long processingTime)
Sets the processing time.void
setProtocol(String protocol)
Sets the protocol.void
setRemoteAddr(String remoteAddr)
Sets the remote addr.void
setRemoteAddrLocale(Locale remoteAddrLocale)
Sets the remote addr locale.void
setStage(int stage)
Sets the stage.void
setVirtualHost(String virtualHost)
Sets the virtual host.void
setWorkerThreadName(String workerThreadName)
Sets the worker thread name.void
setWorkerThreadNameSupported(boolean workerThreadNameSupported)
Sets the worker thread name supported.
-
-
-
Field Detail
-
name
private String name
The name.
-
stage
private int stage
The stage.
-
processingTime
private long processingTime
The processing time.
-
bytesSent
private long bytesSent
The bytes sent.
-
bytesReceived
private long bytesReceived
The bytes received.
-
remoteAddr
private String remoteAddr
The remote addr.
-
remoteAddrLocale
private Locale remoteAddrLocale
The remote addr locale.
-
virtualHost
private String virtualHost
The virtual host.
-
method
private String method
The method.
-
currentUri
private String currentUri
The current uri.
-
currentQueryString
private String currentQueryString
The current query string.
-
protocol
private String protocol
The protocol.
-
workerThreadName
private String workerThreadName
The worker thread name.
-
workerThreadNameSupported
private boolean workerThreadNameSupported
The worker thread name supported.
-
-
Method Detail
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the new name
-
getStage
public int getStage()
Gets the stage.- Returns:
- the stage
-
setStage
public void setStage(int stage)
Sets the stage.- Parameters:
stage
- the new stage
-
getProcessingTime
public long getProcessingTime()
Gets the processing time.- Returns:
- the processing time
-
setProcessingTime
public void setProcessingTime(long processingTime)
Sets the processing time.- Parameters:
processingTime
- the new processing time
-
getBytesSent
public long getBytesSent()
Gets the bytes sent.- Returns:
- the bytes sent
-
setBytesSent
public void setBytesSent(long bytesSent)
Sets the bytes sent.- Parameters:
bytesSent
- the new bytes sent
-
getBytesReceived
public long getBytesReceived()
Gets the bytes received.- Returns:
- the bytes received
-
setBytesReceived
public void setBytesReceived(long bytesReceived)
Sets the bytes received.- Parameters:
bytesReceived
- the new bytes received
-
getRemoteAddr
public String getRemoteAddr()
Gets the remote addr.- Returns:
- the remote addr
-
setRemoteAddr
public void setRemoteAddr(String remoteAddr)
Sets the remote addr.- Parameters:
remoteAddr
- the new remote addr
-
getVirtualHost
public String getVirtualHost()
Gets the virtual host.- Returns:
- the virtual host
-
setVirtualHost
public void setVirtualHost(String virtualHost)
Sets the virtual host.- Parameters:
virtualHost
- the new virtual host
-
getMethod
public String getMethod()
Gets the method.- Returns:
- the method
-
setMethod
public void setMethod(String method)
Sets the method.- Parameters:
method
- the new method
-
getCurrentUri
public String getCurrentUri()
Gets the current uri.- Returns:
- the current uri
-
setCurrentUri
public void setCurrentUri(String currentUri)
Sets the current uri.- Parameters:
currentUri
- the new current uri
-
getCurrentQueryString
public String getCurrentQueryString()
Gets the current query string.- Returns:
- the current query string
-
setCurrentQueryString
public void setCurrentQueryString(String currentQueryString)
Sets the current query string.- Parameters:
currentQueryString
- the new current query string
-
getProtocol
public String getProtocol()
Gets the protocol.- Returns:
- the protocol
-
setProtocol
public void setProtocol(String protocol)
Sets the protocol.- Parameters:
protocol
- the new protocol
-
getRemoteAddrLocale
public Locale getRemoteAddrLocale()
Gets the remote addr locale.- Returns:
- the remote addr locale
-
setRemoteAddrLocale
public void setRemoteAddrLocale(Locale remoteAddrLocale)
Sets the remote addr locale.- Parameters:
remoteAddrLocale
- the new remote addr locale
-
getWorkerThreadName
public String getWorkerThreadName()
Gets the worker thread name.- Returns:
- the worker thread name
-
setWorkerThreadName
public void setWorkerThreadName(String workerThreadName)
Sets the worker thread name.- Parameters:
workerThreadName
- the new worker thread name
-
isWorkerThreadNameSupported
public boolean isWorkerThreadNameSupported()
Checks if is worker thread name supported.- Returns:
- true, if is worker thread name supported
-
setWorkerThreadNameSupported
public void setWorkerThreadNameSupported(boolean workerThreadNameSupported)
Sets the worker thread name supported.- Parameters:
workerThreadNameSupported
- the new worker thread name supported
-
-