|
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.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(com.bea.wcp.diameter.provider.Provider provider) |
|
Node(com.bea.wcp.diameter.provider.Provider provider, ConfigurationBean config) |
|
Node(com.bea.wcp.diameter.provider.Provider provider, java.lang.String host, java.lang.String realm, java.net.InetAddress address, int port) |
|
Node(com.bea.wcp.diameter.provider.Provider provider, java.lang.String host, java.lang.String realm, java.net.InetAddress address, int port, boolean tls) |
Method Summary | |
---|---|
com.bea.wcp.diameter.transport.Connection |
connect(Peer peer) |
static Node |
createNode(java.io.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(java.lang.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 |
java.lang.String |
getHost() Returns the origin host for the node |
static Node |
getInstance() Returns the Node instance to use when deserializing session objects. |
java.net.InetAddress |
getListenAddress() Returns the Node listen address |
Peer |
getPeer(java.lang.String hostId) |
PeerTable |
getPeerTable() |
com.bea.wcp.diameter.provider.Provider |
getProvider() |
java.lang.String |
getRealm() Returns the origin realm for the node |
RouteTable |
getRouteTable() |
java.net.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(java.lang.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(com.bea.wcp.diameter.provider.Provider provider, ConfigurationBean config) throws DiameterException
DiameterException
public Node(com.bea.wcp.diameter.provider.Provider provider, java.lang.String host, java.lang.String realm, java.net.InetAddress address, int port)
public Node(com.bea.wcp.diameter.provider.Provider provider, java.lang.String host, java.lang.String realm, java.net.InetAddress address, int port, boolean tls)
public Node(com.bea.wcp.diameter.provider.Provider provider)
Method Detail |
---|
public static void setInstance(Node node)
public static Node getInstance()
public static Node createNode(java.io.File configFile) throws java.io.IOException, DiameterException
configFile
- the diameter.xml configuration filejava.io.IOException
- if an I/O error occurred reading the configurationDiameterException
- if the Node could not be initializedpublic java.net.InetAddress getListenAddress()
public void start() throws java.io.IOException
java.io.IOException
- if an I/O error occurred while startingpublic void stop() throws java.io.IOException
java.io.IOException
- if an I/O error occurred while stopping the nodepublic boolean isRunning()
public java.lang.String getHost()
public java.lang.String getRealm()
public Version getVersion()
public ConfigurationBean getConfiguration()
public int getStateId()
public Capabilities getCapabilities()
public java.net.SocketAddress getSocketAddress()
public com.bea.wcp.diameter.provider.Provider getProvider()
public PeerTable getPeerTable()
public AppManager getAppManager()
public RouteTable getRouteTable()
public Peer getPeer(java.lang.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 java.io.IOException
msg
- the request or answer message to dispatchjava.io.IOException
- 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 com.bea.wcp.diameter.transport.Connection connect(Peer peer) throws java.io.IOException
java.io.IOException
public boolean isMsgDebug()
public void setMsgDebug(boolean enabled)
public boolean isMsgDebugLogging()
public void execute(java.lang.Runnable task)
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Diameter Node command line argumentsjava.lang.Exception
- if an error occurs while starting the node
|
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 |