Examples of LookupService


Examples of com.maxmind.geoip.LookupService

        File f = new File("GeoLiteCity.dat");
        if (!f.exists()) {
            return;
        }
       
        geoipLookup = new LookupService(f);
    }
View Full Code Here

Examples of com.maxmind.geoip.LookupService

                LOGGER.warning("GeoIP database " + path  + " is not available. " +
                    "Please install the file to enable GeoIP lookups.");
                return null;
            }
           
            return new LookupService(f);
        }
        catch (IOException e) {
            LOGGER.log(Level.WARNING, "Error occured looking up GeoIP database", e);
            return null;
        }
View Full Code Here

Examples of com.maxmind.geoip.LookupService

     * @param filename Basename of the GeoIP Database file.  Should be located in your home dir in HDFS
     * @throws IOException
     */
    public GeoIpLookup(String filename) throws IOException {
        lookupFilename = filename;
        lookupService = new LookupService(lookupFilename);
    }
View Full Code Here

Examples of com.maxmind.geoip.LookupService

        File f = new File("GeoLiteCity.dat");
        if (!f.exists()) {
            return;
        }
       
        geoipLookup = new LookupService(f);
    }
View Full Code Here

Examples of com.maxmind.geoip.LookupService

   
    LookupService lookupGeoIPDatabase() {
        try {
            File f = loader.find("monitoring", "GeoLiteCity.dat");
            if (f != null) {
                return new LookupService(f);
            }
           
            if (!warned.get()) {
                warned.set(true);
               
View Full Code Here

Examples of com.netflix.discovery.shared.LookupService

     * operation fails over to other nodes until the list is exhausted if the
     * communication fails.
     */
    public int syncUp() {
        // Copy entire entry from neighboring DS node
        LookupService lookupService = DiscoveryManager.getInstance()
                .getLookupService();
        int count = 0;

        for (int i = 0; ((i < EUREKA_SERVER_CONFIG.getRegistrySyncRetries()) && (count == 0)); i++) {
            Applications apps = lookupService.getApplications();
            for (Application app : apps.getRegisteredApplications()) {
                for (InstanceInfo instance : app.getInstances()) {
                    try {
                        if (isRegisterable(instance)) {

View Full Code Here

Examples of com.netflix.discovery.shared.LookupService

     * {@link EurekaServerConfig#getRenewalPercentThreshold()} of renewals
     * received per minute {@link #getNumOfRenewsInLastMin()}.
     */
    private void updateRenewalThreshold() {
        try {
            LookupService lookupService = DiscoveryManager.getInstance()
                    .getLookupService();
            Applications apps = lookupService.getApplications();
            int count = 0;
            for (Application app : apps.getRegisteredApplications()) {
                for (InstanceInfo instance : app.getInstances()) {
                    if (this.isRegisterable(instance)) {
                        ++count;
View Full Code Here

Examples of org.kuali.rice.krad.service.LookupService

  }

  @Test
  public void testMatterLookup() {
    //adapted from  org.kuali.rice.kns.service.LookupServiceTest
    LookupService lookupService = KRADServiceLocatorWeb.getLookupService();
      @SuppressWarnings("rawtypes")
    Map formProps = new HashMap();
      @SuppressWarnings("unchecked")
      // includes any land cases
    Collection<Matter> matter = lookupService.findCollectionBySearchHelper(getDataObjectClass(), formProps, false);
      assertEquals("number of matters differs", getExpectedLookupCount(), matter.size());
  }
View Full Code Here

Examples of org.menacheri.jetserver.service.LookupService

  public @Bean(name="lookupService") LookupService lookupService()
  {
    Map<String,GameRoom> refKeyGameRoomMap = new HashMap<String, GameRoom>();
    refKeyGameRoomMap.put("Zombie_ROOM_1_REF_KEY_1", zombieRoom1());
    refKeyGameRoomMap.put("Zombie_ROOM_1_REF_KEY_2", zombieRoom2());
    LookupService service = new SimpleLookupService(refKeyGameRoomMap);
    return service;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.