|
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.Node
public final class Node
Diameter Node implementation. Support both client and server-based Diameter applications as well as relay applications.
Field Summary | |
---|---|
MessageDebugBean |
msgDebugBean |
Constructor Summary | |
---|---|
Node(Provider provider) |
|
Node(Provider provider, ConfigurationBean config) |
|
Node(Provider provider, String host, String realm, InetAddress address, int port) |
|
Node(Provider provider, String host, String realm, InetAddress address, int port, boolean tls) |
Method Summary | |
---|---|
Connection |
connect(Peer peer) |
static Node |
createNode(File configFile) Creates a new Diameter Node instance for the specified configuration. |
void |
deliverToApplication(Message msg) Called by provider to deliver message to application with specified id. |
boolean |
deliverToSession(Message msg, Session session) Deliver message to specified session. |
void |
dispatch(Message msg) Dispatch message to session or application. |
void |
dispatchRelay(Message msg) Dispatch message to relay application. |
void |
dispatchThreadAnswer(Request req, Answer ans) |
void |
execute(Runnable task) |
Application |
getApplication(ApplicationId id) Returns the application for the specified application identifier. |
Application |
getApplication(int idNum) Returns the application for the specified application id number. |
AppManager |
getAppManager() |
Capabilities |
getCapabilities() |
ConfigurationBean |
getConfiguration() Returns the ConfigurationBean for the node |
String |
getHost() Returns the origin host for the node |
static Node |
getInstance() Returns the Node instance to use when deserializing session objects. |
InetAddress |
getListenAddress() Returns the Node listen address |
Peer |
getPeer(String hostId) |
PeerTable |
getPeerTable() |
Provider |
getProvider() |
String |
getRealm() Returns the origin realm for the node |
RouteTable |
getRouteTable() |
SocketAddress |
getSocketAddress() |
int |
getStateId() |
Version |
getVersion() |
boolean |
isIncludeOriginStateId() |
boolean |
isLocalAnswer(Answer ans) Returns true if answer should be processed locally (not relayed). |
boolean |
isLocalRequest(Request req) Check if request should be processed locally (RFC 3588 6.1.4). |
boolean |
isMsgDebug() |
boolean |
isMsgDebugLogging() |
boolean |
isRunning() Returns true if the Node is currently running. |
boolean |
isSctpEnabled() |
boolean |
isTlsEnabled() |
static void |
main(String[] args) Starts the Diameter Node for the specified command line arguments. |
void |
setIncludeOriginStateId(boolean enabled) |
static void |
setInstance(Node node) Sets the Node instance that will be used for deserialization of persistent session objects. |
void |
setMsgDebug(boolean enabled) |
void |
start() Starts the Diameter Node instance. |
void |
stop() Stops the Diameter Node instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MessageDebugBean msgDebugBean
Constructor Detail |
---|
public Node(Provider provider, ConfigurationBean config) throws DiameterException
DiameterException
public Node(Provider provider, String host, String realm, InetAddress address, int port)
public Node(Provider provider, String host, String realm, InetAddress address, int port, boolean tls)
public Node(Provider provider)
Method Detail |
---|
public static void setInstance(Node node)
public static Node getInstance()
public static Node createNode(File configFile) throws IOException, DiameterException
configFile
- the diameter.xml configuration fileIOException
- if an I/O error occurred reading the configurationDiameterException
- if the Node could not be initializedpublic InetAddress getListenAddress()
public void start() throws IOException
IOException
- if an I/O error occurred while startingpublic void stop() throws IOException
IOException
- if an I/O error occurred while stopping the nodepublic boolean isRunning()
public String getHost()
public String getRealm()
public Version getVersion()
public ConfigurationBean getConfiguration()
public int getStateId()
public Capabilities getCapabilities()
public SocketAddress getSocketAddress()
public Provider getProvider()
public PeerTable getPeerTable()
public AppManager getAppManager()
public RouteTable getRouteTable()
public Peer getPeer(String hostId)
public boolean isTlsEnabled()
public boolean isSctpEnabled()
public boolean isIncludeOriginStateId()
public void setIncludeOriginStateId(boolean enabled)
public Application getApplication(int idNum)
idNum
- the application's numeric identifierpublic Application getApplication(ApplicationId id)
id
- the ApplicationId for the applicationpublic boolean isLocalRequest(Request req)
public boolean isLocalAnswer(Answer ans)
public void dispatch(Message msg) throws IOException
msg
- the request or answer message to dispatchIOException
- if an I/O error occurred during dispatchpublic void dispatchThreadAnswer(Request req, Answer ans)
public void dispatchRelay(Message msg)
public boolean deliverToSession(Message msg, Session session)
msg
- the message to be deliveredsession
- the session to receive the messagepublic void deliverToApplication(Message msg)
public Connection connect(Peer peer) throws IOException
IOException
public boolean isMsgDebug()
public void setMsgDebug(boolean enabled)
public boolean isMsgDebugLogging()
public void execute(Runnable task)
public static void main(String[] args) throws Exception
args
- Diameter Node command line argumentsException
- if an error occurs while starting the node
|
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.