/* NaradaBroker BrokerInstantiator Service - HPSearch Script */ /* Identify a BrokerInstantiator Service */ x = new NaradaBroker("http://156.56.104.139:17070/"); /* Create a Broker */ brokId = x.create("C:\\Home\\NaradaBrokering-0.99-rc4\\config\\Broker-II-Configuration.txt"); /* Connect this broker to another (existing broker) */ link = x.connectTo(brokId, "156.56.104.139", "5045", "t", ""); /* Request Node Address */ if(x.requestNodeAddress(brokId, link, "0")) { Sys.print("OK"); } else { Sys.print("OOPS..."); } /* Get Links at the specified Broker */ links = x.getLinks(brokId); /* Remove the link[0] */ x.removeLink(brokId, links[0]);