Package psiprobe.model.jmx
Class ClusterSender
- java.lang.Object
-
- psiprobe.model.jmx.ClusterSender
-
- Direct Known Subclasses:
PooledClusterSender
,SyncClusterSender
public class ClusterSender extends Object
The Class ClusterSender.
-
-
Field Summary
Fields Modifier and Type Field Description private String
address
The address.private long
avgMessageSize
The avg message size.private long
avgProcessingTime
The avg processing time.private long
connectCounter
The connect counter.private boolean
connected
The connected.private long
disconnectCounter
The disconnect counter.private long
keepAliveTimeout
The keep alive timeout.private long
nrOfRequests
The nr of requests.private int
port
The port.private boolean
resend
The resend.private boolean
suspect
The suspect.private long
totalBytes
The total bytes.
-
Constructor Summary
Constructors Constructor Description ClusterSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
Gets the address.long
getAvgMessageSize()
Gets the avg message size.long
getAvgProcessingTime()
Gets the avg processing time.long
getConnectCounter()
Gets the connect counter.long
getDisconnectCounter()
Gets the disconnect counter.long
getKeepAliveTimeout()
Gets the keep alive timeout.long
getNrOfRequests()
Gets the nr of requests.int
getPort()
Gets the port.long
getTotalBytes()
Gets the total bytes.boolean
isConnected()
Checks if is connected.boolean
isResend()
Checks if is resend.boolean
isSuspect()
Checks if is suspect.void
setAddress(String address)
Sets the address.void
setAvgMessageSize(long avgMessageSize)
Sets the avg message size.void
setAvgProcessingTime(long avgProcessingTime)
Sets the avg processing time.void
setConnectCounter(long connectCounter)
Sets the connect counter.void
setConnected(boolean connected)
Sets the connected.void
setDisconnectCounter(long disconnectCounter)
Sets the disconnect counter.void
setKeepAliveTimeout(long keepAliveTimeout)
Sets the keep alive timeout.void
setNrOfRequests(long nrOfRequests)
Sets the nr of requests.void
setPort(int port)
Sets the port.void
setResend(boolean resend)
Sets the resend.void
setSuspect(boolean suspect)
Sets the suspect.void
setTotalBytes(long totalBytes)
Sets the total bytes.
-
-
-
Field Detail
-
address
private String address
The address.
-
port
private int port
The port.
-
avgMessageSize
private long avgMessageSize
The avg message size.
-
avgProcessingTime
private long avgProcessingTime
The avg processing time.
-
connectCounter
private long connectCounter
The connect counter.
-
disconnectCounter
private long disconnectCounter
The disconnect counter.
-
connected
private boolean connected
The connected.
-
keepAliveTimeout
private long keepAliveTimeout
The keep alive timeout.
-
nrOfRequests
private long nrOfRequests
The nr of requests.
-
totalBytes
private long totalBytes
The total bytes.
-
resend
private boolean resend
The resend.
-
suspect
private boolean suspect
The suspect.
-
-
Method Detail
-
getAddress
public String getAddress()
Gets the address.- Returns:
- the address
-
setAddress
public void setAddress(String address)
Sets the address.- Parameters:
address
- the new address
-
getPort
public int getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(int port)
Sets the port.- Parameters:
port
- the new port
-
getAvgMessageSize
public long getAvgMessageSize()
Gets the avg message size.- Returns:
- the avg message size
-
setAvgMessageSize
public void setAvgMessageSize(long avgMessageSize)
Sets the avg message size.- Parameters:
avgMessageSize
- the new avg message size
-
getConnectCounter
public long getConnectCounter()
Gets the connect counter.- Returns:
- the connect counter
-
setConnectCounter
public void setConnectCounter(long connectCounter)
Sets the connect counter.- Parameters:
connectCounter
- the new connect counter
-
getDisconnectCounter
public long getDisconnectCounter()
Gets the disconnect counter.- Returns:
- the disconnect counter
-
setDisconnectCounter
public void setDisconnectCounter(long disconnectCounter)
Sets the disconnect counter.- Parameters:
disconnectCounter
- the new disconnect counter
-
isConnected
public boolean isConnected()
Checks if is connected.- Returns:
- true, if is connected
-
setConnected
public void setConnected(boolean connected)
Sets the connected.- Parameters:
connected
- the new connected
-
getKeepAliveTimeout
public long getKeepAliveTimeout()
Gets the keep alive timeout.- Returns:
- the keep alive timeout
-
setKeepAliveTimeout
public void setKeepAliveTimeout(long keepAliveTimeout)
Sets the keep alive timeout.- Parameters:
keepAliveTimeout
- the new keep alive timeout
-
getNrOfRequests
public long getNrOfRequests()
Gets the nr of requests.- Returns:
- the nr of requests
-
setNrOfRequests
public void setNrOfRequests(long nrOfRequests)
Sets the nr of requests.- Parameters:
nrOfRequests
- the new nr of requests
-
getTotalBytes
public long getTotalBytes()
Gets the total bytes.- Returns:
- the total bytes
-
setTotalBytes
public void setTotalBytes(long totalBytes)
Sets the total bytes.- Parameters:
totalBytes
- the new total bytes
-
isResend
public boolean isResend()
Checks if is resend.- Returns:
- true, if is resend
-
setResend
public void setResend(boolean resend)
Sets the resend.- Parameters:
resend
- the new resend
-
isSuspect
public boolean isSuspect()
Checks if is suspect.- Returns:
- true, if is suspect
-
setSuspect
public void setSuspect(boolean suspect)
Sets the suspect.- Parameters:
suspect
- the new suspect
-
getAvgProcessingTime
public long getAvgProcessingTime()
Gets the avg processing time.- Returns:
- the avg processing time
-
setAvgProcessingTime
public void setAvgProcessingTime(long avgProcessingTime)
Sets the avg processing time.- Parameters:
avgProcessingTime
- the new avg processing time
-
-