Codota Logo
com.netflix.eureka2.registry
Code IndexAdd Codota to your IDE (free)

How to use com.netflix.eureka2.registry

Best Java code snippets using com.netflix.eureka2.registry (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: com.netflix.eureka2/eureka-testkit

  Builder newBuilder() {
    return new Builder()
        .withId(this.baseInstanceInfo.getId())
        .withVersion(this.baseInstanceInfo.getVersion() + 1);
  }
}
origin: com.netflix.eureka/eureka2-core

  /**
   * @return the matching key for sources, where the sources are matched on origin:name only.
   */
  private String sourceKey(Source source) {
    return source.getOrigin().name() + source.getName();
  }
}
origin: com.netflix.eureka/eureka2-core

@Override
public InstanceInfo get() {
  if (snapshot != null) {
    return snapshot.getData();
  }
  return null;
}
origin: com.netflix.eureka2/eureka-testkit

@Override
public boolean matches(Object item) {
  if (!(item instanceof InstanceInfo)) {
    return false;
  }
  // Versions may be different
  InstanceInfo target = (InstanceInfo) item;
  if (!expectSameVersion) {
    target = new Builder()
        .withInstanceInfo(target)
        .withVersion(expectedValue.getVersion())
        .build();
  }
  return target.equals(expectedValue);
}
origin: com.netflix.eureka/eureka2-core

@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  return eurekaRegistry.forInterest(interest);
}
origin: com.netflix.eureka2/eureka-testkit

  @Override
  public NetworkAddressBuilder builder() {
    return aNetworkAddress()
        .withHostName("test.private.host")
        .withIpAddress("192.168.0.1")
        .withProtocolType(ProtocolType.IPv4);
  }
};
origin: com.netflix.eureka/eureka2-core

@Override
public int size() {
  return eurekaRegistry.size();
}
origin: com.netflix.eureka2/eureka-testkit

  @Override
  public ServicePort build() {
    return new ServicePort(Names.REGISTRATION, EurekaTransports.DEFAULT_REGISTRATION_PORT, false);
  }
},
origin: com.netflix.eureka/eureka2-test-utils

  @Override
  public Source getSource() {
    if (delegate instanceof Sourced) {
      return ((Sourced) delegate).getSource();
    }
    return null;
  }
}
origin: com.netflix.eureka/eureka2-core

@Override
public Observable<InstanceInfo> forSnapshot(Interest<InstanceInfo> interest, Source.SourceMatcher sourceMatcher) {
  return eurekaRegistry.forSnapshot(interest, sourceMatcher);
}
origin: com.netflix.eureka/eureka2-core

  public void resume() {
    request(1);
  }
}
origin: com.netflix.eureka/eureka2-core

  @Override
  public boolean match(Source another) {
    if (another == null) {
      return false;
    }
    return origin.equals(another.origin);
  }
};
origin: com.netflix.eureka/eureka2-core

@Override
public SourcedChangeNotification<InstanceInfo> getChangeNotification() {
  if (snapshot != null) {
    return snapshot.getNotification();
  }
  return null;
}
origin: com.netflix.eureka/eureka2-core

@Override
public Collection<Source> getAllSources() {
  return dataStore.getAllSources();
}
origin: com.netflix.eureka/eureka2-core

@Override
public Source getSource() {
  if (snapshot != null) {
    return snapshot.getSource();
  }
  return null;
}
origin: com.netflix.eureka/eureka2-core

public NotifyingInstanceInfoHolder(
    HolderStoreAccessor<NotifyingInstanceInfoHolder> holderStoreAccessor,
    PauseableSubject<ChangeNotification<InstanceInfo>> pauseableSubject,
    NotificationTaskInvoker invoker,
    String id)
{
  this.holderStoreAccessor = holderStoreAccessor;
  this.pauseableSubject = pauseableSubject;
  this.invoker = invoker;
  this.id = id;
  this.dataStore = new DataStore();
}
origin: com.netflix.eureka/eureka2-core

  @Override
  public boolean match(Source another) {
    return (source == null)
        ? (another == null)
        : source.equals(another);
  }
};
origin: com.netflix.eureka2/eureka-testkit

  @Override
  public ServicePort build() {
    return new ServicePort("WebServer", 80, false);
  }
},
origin: com.netflix.eureka/eureka2-core

@Override
public void onStart() {
  request(1);
}
origin: com.netflix.eureka2/eureka-testkit

  @Override
  public ServicePort build() {
    return new ServicePort(Names.REPLICATION, EurekaTransports.DEFAULT_REPLICATION_PORT, false);
  }
};
com.netflix.eureka2.registry

Most used classes

  • InstanceInfo
    JavaBean for InstanceInfo.
  • SourcedEurekaRegistry
    Interface for eureka registries that contain a notion of data source
  • InstanceInfo$Builder
  • InstanceInfo
    JavaBean for InstanceInfo.
  • InstanceInfo$Status
  • AwsDataCenterInfo$Builder,
  • InstanceInfo$Builder,
  • Source,
  • AwsDataCenterInfo,
  • NetworkAddress,
  • InstanceInfo$Status,
  • PreservableEurekaRegistry,
  • SourcedEurekaRegistryImpl,
  • Delta,
  • NetworkAddress$NetworkAddressBuilder,
  • ServiceSelector,
  • ServicePort,
  • Sourced,
  • BasicDataCenterInfo$Builder
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now