Package org.cipango.diameter.node

Examples of org.cipango.diameter.node.Node$WatchdogTimeout


    return _buffer.toString();
  }
 
  public static void main(String[] args)
  {
    DiameterMessage message = new DiameterRequest(new Node(), Accounting.ACR, Accounting.ACCOUNTING_ORDINAL, "foo");
    message.getAVPs().add(Zh.ZH_APPLICATION_ID.getAVP());

    PrettyPrinter pp = new PrettyPrinter();
    message.accept(pp);
    System.out.println(pp);
View Full Code Here


public class HSS
{
  public static void main(String[] args) throws Exception
  {
    Node node = new Node(3868);
    node.setIdentity("hss.cipango.org");
    node.setRealm("cipango.org");
   
    node.start();
  }
View Full Code Here

public class RfClient
{
  public static void main(String[] args) throws Exception
  {
    Node node = new Node(3869);
    node.setIdentity("client.rf.cipango.org");
    node.setRealm("cipango.org");
   
    node.addSupportedApplication(Cx.CX_APPLICATION_ID);
   
    Peer peer = new Peer("hss.cipango.org");
    peer.setAddress(InetAddress.getByName("192.168.2.208"));
    peer.setPort(3868);
   
    node.addPeer(peer);
    node.start();
   
    while (!peer.isOpen())
      Thread.sleep(100);
   
    /*
 
View Full Code Here

   
    Log.getLog().setDebugEnabled(true);
   
    ApplicationId sh = Sh.SH_APPLICATION_ID;
   
    Node node = new Node();
    node.setIdentity("avalon.nexcom.bzh");
    node.setHandler(new ShClient());
   
    DiameterSocketConnector connector = new DiameterSocketConnector();
    connector.setHost(InetAddress.getLocalHost().getHostAddress());
    connector.setPort(3868);
    connector.setMessageListener(new BasicMessageLog());
   
    node.addConnector(connector);
   
    Peer peer = new Peer("192.168.2.10");
    peer.setAddress(InetAddress.getByName("192.168.2.10"));
    peer.setPort(3869);
   
    node.addPeer(peer);
   
    node.start();
   
    String destinationRealm = "open-ims.net";
    String destinationHost = "192.168.2.10";
   
    while (!peer.isOpen())
View Full Code Here

             Log.debug("Cannot configure webapp after it is started");
            return;
        }
       
    DiameterFactoryImpl factory = new DiameterFactoryImpl();
    Node node = (Node) context.getServer().getAttribute(Node.class.getName());
    factory.setNode(node);
    factory.setAppContext((SipAppContext) context);
   
    context.setAttribute(DiameterFactory.class.getName(), factory);
   
    context.addDecorator(new DiameterDecorator((DiameterContext) node.getHandler(), context));
   
  }
View Full Code Here

  }
 
  @Override
  public void deconfigure(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
  {
    Node node = (Node) context.getServer().getAttribute(Node.class.getName());
    ((DiameterContext) node.getHandler()).removeListeners(context);
  }
View Full Code Here

TOP

Related Classes of org.cipango.diameter.node.Node$WatchdogTimeout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.