|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wcp.diameter.Peer
public final class Peer
Diameter peer implementation based on state machine pattern.
Nested Class Summary | |
---|---|
static class |
Peer.CEA |
static class |
Peer.CER |
Field Summary | |
---|---|
static int |
DEFAULT_PORT |
Constructor Summary | |
---|---|
Peer(Node node, PeerBean peer) |
|
Peer(Node node, String host) Creates new Peer for an incoming dynamic peer connection. |
|
Peer(Node node, String host, InetAddress addr, int port) |
|
Peer(Node node, String host, InetAddress addr, int port, String protocol) |
Method Summary | |
---|---|
void |
close() |
void |
connCER(Request m) |
void |
disconnect(Connection c) |
void |
elect() |
void |
forward(Message msg) Forward request or answer using relay application. |
String |
getHost() |
Node |
getNode() |
int |
getPort() |
String |
getProtocol() Retrieve the protocol to be used for communication with this peer |
String |
getRealm() |
InetSocketAddress |
getSocketAddress() |
PeerState |
getState() |
void |
iAccept(Connection c) |
void |
iDisc() |
boolean |
isClosed() |
boolean |
isOpen() |
boolean |
isStopped() |
void |
processCEA(Peer.CEA cea) |
boolean |
processCER(Peer.CER cer) |
void |
rAccept(Connection c) |
void |
rDisc() |
void |
receive(Message msg) |
com.bea.wcp.diameter.Transaction |
removeTransaction(int hopByHopId) |
void |
setState(PeerState newState) |
void |
sndCEA() |
void |
sndCEA(Peer.CER cer) |
void |
sndCER() |
void |
sndDWR() Sends Device-Watchdog-Request see RFC 3539 |
void |
sndRequest(ByteBuffer reqBytes, com.bea.wcp.diameter.Transaction txn) |
void |
start() |
void |
stop() |
String |
toString() |
boolean |
waitForClosed(long timeout) |
boolean |
waitForOpen(long timeout) |
void |
watchdogTick() Called when watchdog timeout tick expired for this peer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PORT
Constructor Detail |
---|
public Peer(Node node, PeerBean peer)
public Peer(Node node, String host, InetAddress addr, int port)
public Peer(Node node, String host, InetAddress addr, int port, String protocol)
public Peer(Node node, String host)
Method Detail |
---|
public void start()
public void sndRequest(ByteBuffer reqBytes, com.bea.wcp.diameter.Transaction txn) throws IOException
IOException
public com.bea.wcp.diameter.Transaction removeTransaction(int hopByHopId)
public void receive(Message msg) throws IOException
IOException
public void disconnect(Connection c) throws IOException
IOException
public void connCER(Request m) throws IOException
IOException
public void stop() throws IOException
IOException
public boolean isStopped()
public boolean waitForOpen(long timeout)
public boolean waitForClosed(long timeout)
public void forward(Message msg)
public boolean isOpen()
public boolean isClosed()
public void iAccept(Connection c)
public void rAccept(Connection c)
public boolean processCER(Peer.CER cer)
public void sndCEA() throws IOException
IOException
public void sndCEA(Peer.CER cer) throws IOException
IOException
public void iDisc()
public void rDisc()
public void processCEA(Peer.CEA cea)
public void elect() throws IOException
IOException
public void sndCER() throws IOException
IOException
public void close()
public void setState(PeerState newState)
public PeerState getState()
public InetSocketAddress getSocketAddress()
public String getHost()
public String getRealm()
public int getPort()
public Node getNode()
public String toString()
toString
in class Object
public void watchdogTick()
public void sndDWR() throws IOException
IOException
- if an I/O error occurredpublic String getProtocol()
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.