public final class Node extends Object
Modifier and Type | Field and Description |
---|---|
MessageDebugBean |
msgDebugBean |
Constructor and Description |
---|
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,
String host,
String realm,
InetAddress address,
int port) |
Node(com.bea.wcp.diameter.provider.Provider provider,
String host,
String realm,
InetAddress address,
int port,
boolean tls) |
Node(com.bea.wcp.diameter.provider.Provider provider,
String host,
String realm,
InetAddress address,
int port,
boolean tls,
boolean sctp) |
Modifier and Type | Method and Description |
---|---|
com.bea.wcp.diameter.transport.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 a provider to deliver a message to application with the specified id.
|
boolean |
deliverToSession(Message msg,
Session session)
Delivers a message to a specified session.
|
void |
dispatch(Message msg)
Dispatches a message to a session or application.
|
void |
dispatchRelay(Message msg)
Dispatches a 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() |
String[] |
getCipherSuites() |
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.
|
KeyStore |
getKeyStore() |
char[] |
getKeyStorePasswd() |
InetAddress |
getListenAddress()
Returns the Node listen address
|
Peer |
getPeer(String hostId) |
PeerTable |
getPeerTable() |
Peer |
getPeerWithoutCreation(String hostId) |
com.bea.wcp.diameter.provider.Provider |
getProvider() |
String |
getRealm()
Returns the origin realm for the node
|
RouteTable |
getRouteTable() |
SocketAddress |
getSocketAddress() |
int |
getStateId() |
KeyStore |
getTrustStore() |
Version |
getVersion() |
boolean |
isIncludeOriginStateId() |
boolean |
isLocalAnswer(Answer ans)
Returns true if answer should be processed locally (not relayed).
|
boolean |
isLocalRequest(Request req)
Checks 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() |
List<String> |
listPeers() |
static void |
main(String[] args)
Starts the Diameter Node for the specified command line arguments.
|
void |
setCipherSuites(String[] sslCipherSuites) |
void |
setIncludeOriginStateId(boolean enabled) |
static void |
setInstance(Node node)
Sets the Node instance that will be used for deserialization of
persistent session objects.
|
void |
setKeyStore(KeyStore keyStore) |
void |
setKeyStorePasswd(char[] password) |
void |
setMsgDebug(boolean enabled) |
void |
setTrustStore(KeyStore trustStore) |
void |
start()
Starts the Diameter Node instance.
|
void |
stop()
Stops the Diameter Node instance.
|
public MessageDebugBean msgDebugBean
public Node(com.bea.wcp.diameter.provider.Provider provider, ConfigurationBean config) throws DiameterException
DiameterException
public Node(com.bea.wcp.diameter.provider.Provider provider, String host, String realm, InetAddress address, int port)
public Node(com.bea.wcp.diameter.provider.Provider provider, String host, String realm, InetAddress address, int port, boolean tls)
public Node(com.bea.wcp.diameter.provider.Provider provider, String host, String realm, InetAddress address, int port, boolean tls, boolean sctp)
public Node(com.bea.wcp.diameter.provider.Provider provider)
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 com.bea.wcp.diameter.provider.Provider getProvider()
public PeerTable getPeerTable()
public AppManager getAppManager()
public RouteTable getRouteTable()
public KeyStore getKeyStore()
public KeyStore getTrustStore()
public char[] getKeyStorePasswd()
public void setKeyStore(KeyStore keyStore)
public void setTrustStore(KeyStore trustStore)
public void setKeyStorePasswd(char[] password)
public void setCipherSuites(String[] sslCipherSuites)
public String[] getCipherSuites()
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 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 IOException
IOException
public boolean isMsgDebug()
public void setMsgDebug(boolean enabled)
public boolean isMsgDebugLogging()
public void execute(Runnable task)