Package com.netflix.discovery.util
Class InstanceInfoGenerator
- java.lang.Object
-
- com.netflix.discovery.util.InstanceInfoGenerator
-
public class InstanceInfoGenerator extends java.lang.ObjectTest data generator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceInfoGenerator.InstanceInfoGeneratorBuilder
-
Field Summary
Fields Modifier and Type Field Description static intRENEW_INTERVAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.netflix.appinfo.InstanceInfofirst()static InstanceInfoGenerator.InstanceInfoGeneratorBuildernewBuilder(int instanceCount, int applicationCount)static InstanceInfoGenerator.InstanceInfoGeneratorBuildernewBuilder(int instanceCount, java.lang.String... appNames)java.util.Iterator<com.netflix.appinfo.InstanceInfo>serviceIterator()com.netflix.appinfo.InstanceInfotake(int idx)com.netflix.discovery.shared.ApplicationstakeDelta(int count)com.netflix.discovery.shared.ApplicationstakeDeltaForDelete(boolean useInstanceId, int instanceCount)static com.netflix.appinfo.InstanceInfotakeOne()com.netflix.discovery.shared.ApplicationstoApplications()java.util.List<com.netflix.appinfo.InstanceInfo>toInstanceList()
-
-
-
Field Detail
-
RENEW_INTERVAL
public static final int RENEW_INTERVAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
takeDelta
public com.netflix.discovery.shared.Applications takeDelta(int count)
-
serviceIterator
public java.util.Iterator<com.netflix.appinfo.InstanceInfo> serviceIterator()
-
toApplications
public com.netflix.discovery.shared.Applications toApplications()
-
toInstanceList
public java.util.List<com.netflix.appinfo.InstanceInfo> toInstanceList()
-
first
public com.netflix.appinfo.InstanceInfo first()
-
take
public com.netflix.appinfo.InstanceInfo take(int idx)
-
takeOne
public static com.netflix.appinfo.InstanceInfo takeOne()
-
newBuilder
public static InstanceInfoGenerator.InstanceInfoGeneratorBuilder newBuilder(int instanceCount, int applicationCount)
-
newBuilder
public static InstanceInfoGenerator.InstanceInfoGeneratorBuilder newBuilder(int instanceCount, java.lang.String... appNames)
-
takeDeltaForDelete
public com.netflix.discovery.shared.Applications takeDeltaForDelete(boolean useInstanceId, int instanceCount)
-
-