|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wcp.diameter.PeerTable
public final class PeerTable
The peer table manages information about configured Diameter peers.
Field Summary | |
---|---|
static int |
DEFAULT_PEER_RETRY_DELAY Default connection retry in seconds |
static long |
DEFAULT_REQUEST_TIMEOUT Default request timeout in milliseconds |
static int |
DEFAULT_WATCHDOG_TIMEOUT Default watchdog timeout in seconds |
static int |
WATCHDOG_TICK_RESOLUTION Watchdog period in milliiseconds |
Method Summary | |
---|---|
void |
addPeer(Peer peer) |
void |
addPeer(java.lang.String host, java.net.InetAddress addr, int port) |
Peer |
getPeer(java.lang.String host) |
int |
getPeerRetryDelay() Returns the time to wait for attempting to reconnect to a failed peer. |
long |
getRequestTimeout() Returns the maximum time to wait for an answer to a request. |
int |
getWatchdogTimeout() |
boolean |
isAllowDynamicPeers() |
void |
scheduleReconnect(Peer peer) Schedules timer task to reconnect to peer after a configured peerRetryDelay (specified as timer "Tc" in RFC3588). |
java.util.TimerTask |
scheduleWatchdogTick(Peer peer) Schedules timer task tick to expire watchdog timer (specified as timer "Tw" in RFC3539). |
void |
setAllowDynamicPeers(boolean status) |
void |
setPeerRetryDelay(int secs) Sets the time to wait before attempting to reconnect to a failed peer. |
void |
setRequestTimeout(long msec) Sets the maximum time to wait for an answer to a request. |
void |
setWatchdogTimeout(int secs) Sets the watchdog timeout Tw |
void |
start() |
void |
stop() Stops all peers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PEER_RETRY_DELAY
public static final long DEFAULT_REQUEST_TIMEOUT
public static final int DEFAULT_WATCHDOG_TIMEOUT
public static final int WATCHDOG_TICK_RESOLUTION
Method Detail |
---|
public Peer getPeer(java.lang.String host)
public void addPeer(Peer peer)
public void addPeer(java.lang.String host, java.net.InetAddress addr, int port)
public void start()
public void scheduleReconnect(Peer peer)
peer
- the peer to reconnect to after the configured peerRetryDelaypublic java.util.TimerTask scheduleWatchdogTick(Peer peer)
peer
- the peer to inform about Tw tickpublic void setPeerRetryDelay(int secs)
secs
- the peer retry delay in secondspublic int getPeerRetryDelay()
public void setRequestTimeout(long msec)
msec
- the request timeout in millisecondspublic long getRequestTimeout()
public void setWatchdogTimeout(int secs)
secs
- watchdog timeout Twpublic int getWatchdogTimeout()
public void stop()
public void setAllowDynamicPeers(boolean status)
public boolean isAllowDynamicPeers()
|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |