public class Utils extends Object
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Instance> |
checkAddInstances(ServiceInstancesByProto oldVal,
ServiceInstancesByProto newVal) |
static List<Instance> |
checkDeleteInstances(ServiceInstancesByProto oldVal,
ServiceInstancesByProto newVal) |
static List<ServiceChangeEvent.OneInstanceUpdate> |
checkUpdateInstances(ServiceInstancesByProto oldVal,
ServiceInstancesByProto newVal) |
static boolean |
isHealthyInstance(Instance instance,
Map<StatusDimension.Level,StatusDimension> dimensions) |
static boolean |
regMatch(String regex,
String input)
用正则表达式来判断
1.compile(String regex) 将给定的正则表达式编译到模式中。
|
static long |
sleepUninterrupted(long millis) |
static String |
translatePath(String path) |
public static long sleepUninterrupted(long millis)
public static boolean regMatch(String regex, String input)
regex - 正则表达式input - 输入文本public static boolean isHealthyInstance(Instance instance, Map<StatusDimension.Level,StatusDimension> dimensions)
public static List<Instance> checkAddInstances(ServiceInstancesByProto oldVal, ServiceInstancesByProto newVal)
public static List<ServiceChangeEvent.OneInstanceUpdate> checkUpdateInstances(ServiceInstancesByProto oldVal, ServiceInstancesByProto newVal)
public static List<Instance> checkDeleteInstances(ServiceInstancesByProto oldVal, ServiceInstancesByProto newVal)
Copyright © 2022. All rights reserved.