|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolMBean
Interface for a JMX management bean. This allows several protocol parameters to be queried and set, in order to fine tune protocol behavior. Available parameters will change as the protocol evolves, so this interface is far from set in stone. Don't rely on it too much.
Method Summary | |
---|---|
void |
addPeer(java.lang.String addr,
int port)
Connect to a new peer. |
int |
getAcceptedSocks()
Get number of socket connections accepted. |
int |
getBufferSize()
Get the default size of socket buffers. |
int |
getBytesReceived()
Get number of raw bytes received. |
int |
getBytesSent()
Get number of raw bytes transmitted. |
int |
getConnectedSocks()
Get number of successful sockets connected. |
int |
getDataReceived()
Get number of data packets received. |
int |
getDataSent()
Get number of data packets transmitted. |
int |
getDelivered()
Get number of messages delivered to the application. |
int |
getGossipFanout()
Get the number of gossip target for each round. |
int |
getHintsReceived()
Get number of packet hints received. |
int |
getHintsSent()
Get number of packet hints transmitted. |
int |
getJoinRequests()
Get number of direct join requests received. |
java.net.InetSocketAddress |
getLocalAddress()
Local listening socket. |
java.util.UUID |
getLocalId()
Get globally unique local id. |
int |
getMaxIds()
Get the maximum number of cached message ids. |
int |
getMinPullSize()
Get the minimum size of messages that can be pulled. |
int |
getMulticast()
Get number of messages multicast locally by the application. |
int |
getOverlayFanout()
Get the number of neighbors. |
int |
getPacketsReceived()
Get number of packets received. |
int |
getPacketsSent()
Get number of packets transmited. |
java.net.InetSocketAddress[] |
getPeerAddresses()
Get list of currently connected peers. |
java.util.UUID[] |
getPeerIds()
Get list of currently connected peer ids. |
java.net.InetSocketAddress |
getPublicAddress()
Get the address being advertised to peers. |
int |
getPullPeriod()
Get period for retrying to pull known messages. |
int |
getPullReceived()
Get number of pull request transmitted. |
int |
getPullSent()
Get number of pull requests transmitted. |
int |
getPurgedConnections()
Get number of connections purged after overflowing local neighborhood. |
int |
getPushTimeToLive()
Get the maximum number of times that a message is pushed. |
int |
getQueueSize()
Get the default size of buffer queues. |
int |
getShufflePeriod()
Get the delay between periodic shuffle. |
int |
getShufflesReceived()
Get number of shuffle requests received. |
int |
getShufflesSent()
Get number of shuffle requests transmitted. |
int |
getTimeToLive()
Get the maximum number of times that a message is relayed. |
void |
resetCounters()
Resets all counters. |
void |
setBufferSize(int size)
Set the default size of socket buffers. |
void |
setGossipFanout(int fanout)
Set the number of gossip target for each round. |
void |
setMaxIds(int max)
Set the maximum number of cached message ids. |
void |
setMinPullSize(int minPullSize)
Set the minimum size of messages that can be pulled. |
void |
setOverlayFanout(int fanout)
Set the number of neighbors. |
void |
setPullPeriod(int pullPeriod)
Set period for retrying to pull known messages. |
void |
setPushTimeToLive(int pushttl)
Set the maximum number of times that a message is pushed. |
void |
setQueueSize(int size)
Set the default size of buffer queues. |
void |
setShufflePeriod(int period)
Set the delay between periodic shuffle. |
void |
setTimeToLive(int ttl)
Set the maximum number of times that a message is relayed. |
Method Detail |
---|
int getGossipFanout()
void setGossipFanout(int fanout)
fanout
- number of targetsint getTimeToLive()
void setTimeToLive(int ttl)
ttl
- number of hopsint getMaxIds()
void setMaxIds(int max)
max
- number of idsint getPushTimeToLive()
void setPushTimeToLive(int pushttl)
pushttl
- number of hopsint getMinPullSize()
void setMinPullSize(int minPullSize)
minPullSize
- size in bytesint getPullPeriod()
void setPullPeriod(int pullPeriod)
pullPeriod
- period in millisecondsint getDelivered()
int getMulticast()
int getDataReceived()
int getDataSent()
int getHintsReceived()
int getHintsSent()
int getPullReceived()
int getPullSent()
java.util.UUID getLocalId()
java.util.UUID[] getPeerIds()
java.net.InetSocketAddress getPublicAddress()
int getShufflePeriod()
void setShufflePeriod(int period)
period
- in millisecondsint getOverlayFanout()
void setOverlayFanout(int fanout)
fanout
- number of neighborsint getJoinRequests()
int getPurgedConnections()
int getShufflesReceived()
int getShufflesSent()
java.net.InetSocketAddress getLocalAddress()
java.net.InetSocketAddress[] getPeerAddresses()
void addPeer(java.lang.String addr, int port)
addr
- hostname or address of peerport
- listening port numberint getQueueSize()
void setQueueSize(int size)
size
- number of messagesint getBufferSize()
void setBufferSize(int size)
size
- size in bytesint getAcceptedSocks()
int getConnectedSocks()
int getPacketsReceived()
int getPacketsSent()
int getBytesReceived()
int getBytesSent()
void resetCounters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |