BEA Systems, Inc.

BEA WebLogic SIP Server 3.0 API Reference


com.bea.wcp.diameter
Class Node

java.lang.Object
  extended bycom.bea.wcp.diameter.Node

public final class Node
extends java.lang.Object

Diameter Node implementation. Support both client and server-based Diameter applications as well as relay applications.

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Method Summary
static Node createNode(java.io.File configFile)
          Creates a new Diameter Node instance for the specified configuration.
 boolean deliverToSession(Message msg, Session session)
          Deliver message to specified session.
 void dispatchThreadAnswer(Request req, Answer ans)
           
 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.
 ConfigurationBean getConfiguration()
          Returns the ConfigurationBean for the node
 java.lang.String getHost()
          Returns the origin host for the node
 java.net.InetAddress getListenAddress()
          Returns the Node listen address
 Provider getProvider()
           
 java.lang.String getRealm()
          Returns the origin realm for the node
 boolean isRunning()
          Returns true if the Node is currently running.
static void main(java.lang.String[] args)
          Starts the Diameter Node for the specified command line arguments.
 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
 

Method Detail

createNode

public static Node createNode(java.io.File configFile)
                       throws java.io.IOException,
                              DiameterException
Creates a new Diameter Node instance for the specified configuration. Used to start a Diameter node in standalone mode for testing.

Parameters:
configFile - the diameter.xml configuration file
Returns:
the Diameter Node instance
Throws:
java.io.IOException - if an I/O error occurred reading the configuration
DiameterException - if the Node could not be initialized

deliverToSession

public boolean deliverToSession(Message msg,
                                Session session)
Deliver message to specified session. Used during message dispatch, and by server applications to deliver requests to newly created sessions.

Parameters:
msg - the message to be delivered
session - the session to receive the message

dispatchThreadAnswer

public void dispatchThreadAnswer(Request req,
                                 Answer ans)

getApplication

public Application getApplication(ApplicationId id)
Returns the application for the specified application identifier.

Parameters:
id - the ApplicationId for the application
Returns:
the corresponding Application, or null if not found

getApplication

public Application getApplication(int idNum)
Returns the application for the specified application id number.

Parameters:
idNum - the application's numeric identifier
Returns:
the corresponding Application, or null if not found

getConfiguration

public ConfigurationBean getConfiguration()
Returns the ConfigurationBean for the node


getHost

public java.lang.String getHost()
Returns the origin host for the node


getListenAddress

public java.net.InetAddress getListenAddress()
Returns the Node listen address


getProvider

public Provider getProvider()

getRealm

public java.lang.String getRealm()
Returns the origin realm for the node


isRunning

public boolean isRunning()
Returns true if the Node is currently running.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Starts the Diameter Node for the specified command line arguments.

Parameters:
args - Diameter Node command line arguments
Throws:
java.lang.Exception - if an error occurs while starting the node

start

public void start()
           throws java.io.IOException
Starts the Diameter Node instance.

Throws:
java.io.IOException - if an I/O error occurred while starting

stop

public void stop()
          throws java.io.IOException
Stops the Diameter Node instance.

Throws:
java.io.IOException - if an I/O error occurred while stopping the node

Documentation is available at
http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss30/
Copyright 2006 BEA Systems Inc.