Package Framework

Examples of Framework.Source


   * @throws RemoteException
   * @throws NotBoundException
   */
  public ClientApplication(String name, String ip, String port) throws MalformedURLException, RemoteException, NotBoundException {
    sources = new ArrayList<Source>();
    Source source = (Source) Naming.lookup("rmi://" + ip + ":" + port + "/" + name);
    sources.add(source);
    createSink();
    registerSink(source);
  }
View Full Code Here


   * @param ip The ip address of the machine running the registry.
   * @param port The port number the registry is using.
   * @return If the Source lookup was successful.
   */
  public boolean connectServer(String name, String ip, String port) {
    Source source = null;
    try {
      source = (Source) Naming.lookup("rmi://" + ip + ":" + port + "/" + name);
      sources.add(source);
    } catch (MalformedURLException e) {
      return false;
View Full Code Here

TOP

Related Classes of Framework.Source

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.