Package com.mongodb

Examples of com.mongodb.MongoException$Network


      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201208.NETWORK_SERVICE);

      // Make the test network.
      Network network = networkService.makeTestNetwork();

      System.out.println("Test network with network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\" created.\n"
          + "You may now sign in at http://www.google.com/dfp/main?networkCode="
          + network.getNetworkCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here


      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201211.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201211.NETWORK_SERVICE);

      // Make the test network.
      Network network = networkService.makeTestNetwork();

      System.out.println("Test network with network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\" created.\n"
          + "You may now sign in at http://www.google.com/dfp/main?networkCode="
          + network.getNetworkCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201302.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201302.NETWORK_SERVICE);

      // Make the test network.
      Network network = networkService.makeTestNetwork();

      System.out.println("Test network with network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\" created.\n"
          + "You may now sign in at http://www.google.com/dfp/main?networkCode="
          + network.getNetworkCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201306.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201306.NETWORK_SERVICE);

      // Make the test network.
      Network network = networkService.makeTestNetwork();

      System.out.println("Test network with network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\" created.\n"
          + "You may now sign in at http://www.google.com/dfp/main?networkCode="
          + network.getNetworkCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201308.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201308.NETWORK_SERVICE);

      // Make the test network.
      Network network = networkService.makeTestNetwork();

      System.out.println("Test network with network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\" created.\n"
          + "You may now sign in at http://www.google.com/dfp/main?networkCode="
          + network.getNetworkCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201311.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of com.mongodb.MongoException$Network

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.