id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
130,500 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java | ProviderHelper.compareGroup | public static void compareGroup(ProviderGroup oldGroup, ProviderGroup newGroup,
List<ProviderInfo> add, List<ProviderInfo> remove) {
compareProviders(oldGroup.getProviderInfos(), newGroup.getProviderInfos(), add, remove);
} | java | public static void compareGroup(ProviderGroup oldGroup, ProviderGroup newGroup,
List<ProviderInfo> add, List<ProviderInfo> remove) {
compareProviders(oldGroup.getProviderInfos(), newGroup.getProviderInfos(), add, remove);
} | [
"public",
"static",
"void",
"compareGroup",
"(",
"ProviderGroup",
"oldGroup",
",",
"ProviderGroup",
"newGroup",
",",
"List",
"<",
"ProviderInfo",
">",
"add",
",",
"List",
"<",
"ProviderInfo",
">",
"remove",
")",
"{",
"compareProviders",
"(",
"oldGroup",
".",
"... | Compare two provider group, return add list and remove list
@param oldGroup old provider group
@param newGroup new provider group
@param add provider list need add
@param remove provider list need remove | [
"Compare",
"two",
"provider",
"group",
"return",
"add",
"list",
"and",
"remove",
"list"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java#L41-L44 |
130,501 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java | ProviderHelper.compareProviders | public static void compareProviders(List<ProviderInfo> oldList, List<ProviderInfo> newList,
List<ProviderInfo> add, List<ProviderInfo> remove) {
// 比较老列表和当前列表
if (CommonUtils.isEmpty(oldList)) {
// 空变成非空
if (CommonUtils.isNotEmpty(newList))... | java | public static void compareProviders(List<ProviderInfo> oldList, List<ProviderInfo> newList,
List<ProviderInfo> add, List<ProviderInfo> remove) {
// 比较老列表和当前列表
if (CommonUtils.isEmpty(oldList)) {
// 空变成非空
if (CommonUtils.isNotEmpty(newList))... | [
"public",
"static",
"void",
"compareProviders",
"(",
"List",
"<",
"ProviderInfo",
">",
"oldList",
",",
"List",
"<",
"ProviderInfo",
">",
"newList",
",",
"List",
"<",
"ProviderInfo",
">",
"add",
",",
"List",
"<",
"ProviderInfo",
">",
"remove",
")",
"{",
"//... | Compare two provider list, return add list and remove list
@param oldList old Provider list
@param newList new provider list
@param add provider list need add
@param remove provider list need remove | [
"Compare",
"two",
"provider",
"list",
"return",
"add",
"list",
"and",
"remove",
"list"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java#L54-L84 |
130,502 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java | ProviderHelper.compareGroups | public static void compareGroups(List<ProviderGroup> oldGroups, List<ProviderGroup> newGroups,
List<ProviderInfo> add,
List<ProviderInfo> remove) {
// 比较老列表和当前列表
if (CommonUtils.isEmpty(oldGroups)) {
// 空变成非空
... | java | public static void compareGroups(List<ProviderGroup> oldGroups, List<ProviderGroup> newGroups,
List<ProviderInfo> add,
List<ProviderInfo> remove) {
// 比较老列表和当前列表
if (CommonUtils.isEmpty(oldGroups)) {
// 空变成非空
... | [
"public",
"static",
"void",
"compareGroups",
"(",
"List",
"<",
"ProviderGroup",
">",
"oldGroups",
",",
"List",
"<",
"ProviderGroup",
">",
"newGroups",
",",
"List",
"<",
"ProviderInfo",
">",
"add",
",",
"List",
"<",
"ProviderInfo",
">",
"remove",
")",
"{",
... | Compare two provider group list, return add list and remove list
@param oldGroups old provider group list
@param newGroups new provider group list
@param add provider list need add
@param remove provider list need remove | [
"Compare",
"two",
"provider",
"group",
"list",
"return",
"add",
"list",
"and",
"remove",
"list"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java#L94-L138 |
130,503 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java | ProviderHelper.toUrl | public static String toUrl(ProviderInfo providerInfo) {
String uri = providerInfo.getProtocolType() + "://" + providerInfo.getHost() + ":" + providerInfo.getPort();
uri += StringUtils.trimToEmpty(providerInfo.getPath());
StringBuilder sb = new StringBuilder();
if (providerInfo.getRpcVers... | java | public static String toUrl(ProviderInfo providerInfo) {
String uri = providerInfo.getProtocolType() + "://" + providerInfo.getHost() + ":" + providerInfo.getPort();
uri += StringUtils.trimToEmpty(providerInfo.getPath());
StringBuilder sb = new StringBuilder();
if (providerInfo.getRpcVers... | [
"public",
"static",
"String",
"toUrl",
"(",
"ProviderInfo",
"providerInfo",
")",
"{",
"String",
"uri",
"=",
"providerInfo",
".",
"getProtocolType",
"(",
")",
"+",
"\"://\"",
"+",
"providerInfo",
".",
"getHost",
"(",
")",
"+",
"\":\"",
"+",
"providerInfo",
".... | Write provider info to url string
@param providerInfo Provide info
@return the string | [
"Write",
"provider",
"info",
"to",
"url",
"string"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderHelper.java#L169-L187 |
130,504 | alipay/sofa-rpc | core/common/src/main/java/com/alipay/sofa/rpc/common/utils/CommonUtils.java | CommonUtils.parseLong | public static long parseLong(String num, long defaultLong) {
if (num == null) {
return defaultLong;
} else {
try {
return Long.parseLong(num);
} catch (Exception e) {
return defaultLong;
}
}
} | java | public static long parseLong(String num, long defaultLong) {
if (num == null) {
return defaultLong;
} else {
try {
return Long.parseLong(num);
} catch (Exception e) {
return defaultLong;
}
}
} | [
"public",
"static",
"long",
"parseLong",
"(",
"String",
"num",
",",
"long",
"defaultLong",
")",
"{",
"if",
"(",
"num",
"==",
"null",
")",
"{",
"return",
"defaultLong",
";",
"}",
"else",
"{",
"try",
"{",
"return",
"Long",
".",
"parseLong",
"(",
"num",
... | String Long turn number.
@param num The number of strings.
@param defaultLong The default value
@return long | [
"String",
"Long",
"turn",
"number",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/common/src/main/java/com/alipay/sofa/rpc/common/utils/CommonUtils.java#L185-L195 |
130,505 | alipay/sofa-rpc | extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/transport/bolt/BoltClientTransport.java | BoltClientTransport.convertProviderToUrl | protected Url convertProviderToUrl(ClientTransportConfig transportConfig, ProviderInfo providerInfo) {
// Url的第一个参数,如果不用事件的话,其实无所谓
Url boltUrl = new Url(providerInfo.toString(), providerInfo.getHost(), providerInfo.getPort());
boltUrl.setConnectTimeout(transportConfig.getConnectTimeout());
... | java | protected Url convertProviderToUrl(ClientTransportConfig transportConfig, ProviderInfo providerInfo) {
// Url的第一个参数,如果不用事件的话,其实无所谓
Url boltUrl = new Url(providerInfo.toString(), providerInfo.getHost(), providerInfo.getPort());
boltUrl.setConnectTimeout(transportConfig.getConnectTimeout());
... | [
"protected",
"Url",
"convertProviderToUrl",
"(",
"ClientTransportConfig",
"transportConfig",
",",
"ProviderInfo",
"providerInfo",
")",
"{",
"// Url的第一个参数,如果不用事件的话,其实无所谓",
"Url",
"boltUrl",
"=",
"new",
"Url",
"(",
"providerInfo",
".",
"toString",
"(",
")",
",",
"provid... | For convert provider to bolt url.
@param transportConfig ClientTransportConfig
@param providerInfo ProviderInfo
@return Bolt Url | [
"For",
"convert",
"provider",
"to",
"bolt",
"url",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/transport/bolt/BoltClientTransport.java#L127-L146 |
130,506 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java | AbstractInterfaceConfig.setApplication | public S setApplication(ApplicationConfig application) {
if (application == null) {
application = new ApplicationConfig();
}
this.application = application;
return castThis();
} | java | public S setApplication(ApplicationConfig application) {
if (application == null) {
application = new ApplicationConfig();
}
this.application = application;
return castThis();
} | [
"public",
"S",
"setApplication",
"(",
"ApplicationConfig",
"application",
")",
"{",
"if",
"(",
"application",
"==",
"null",
")",
"{",
"application",
"=",
"new",
"ApplicationConfig",
"(",
")",
";",
"}",
"this",
".",
"application",
"=",
"application",
";",
"re... | Sets application.
@param application the application
@return the application | [
"Sets",
"application",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java#L243-L249 |
130,507 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java | AbstractInterfaceConfig.setMethods | public S setMethods(List<MethodConfig> methods) {
if (this.methods == null) {
this.methods = new ConcurrentHashMap<String, MethodConfig>();
}
if (methods != null) {
for (MethodConfig methodConfig : methods) {
this.methods.put(methodConfig.getName(), method... | java | public S setMethods(List<MethodConfig> methods) {
if (this.methods == null) {
this.methods = new ConcurrentHashMap<String, MethodConfig>();
}
if (methods != null) {
for (MethodConfig methodConfig : methods) {
this.methods.put(methodConfig.getName(), method... | [
"public",
"S",
"setMethods",
"(",
"List",
"<",
"MethodConfig",
">",
"methods",
")",
"{",
"if",
"(",
"this",
".",
"methods",
"==",
"null",
")",
"{",
"this",
".",
"methods",
"=",
"new",
"ConcurrentHashMap",
"<",
"String",
",",
"MethodConfig",
">",
"(",
"... | Sets methods.
@param methods the methods
@return the methods | [
"Sets",
"methods",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java#L747-L757 |
130,508 | alipay/sofa-rpc | extension-impl/registry-nacos/src/main/java/com/alipay/sofa/rpc/registry/nacos/NacosRegistryHelper.java | NacosRegistryHelper.convertProviderToInstances | static List<Instance> convertProviderToInstances(ProviderConfig providerConfig) {
@SuppressWarnings("unchecked")
List<ServerConfig> servers = providerConfig.getServer();
if (servers != null && !servers.isEmpty()) {
List<Instance> instances = new ArrayList<Instance>();
for... | java | static List<Instance> convertProviderToInstances(ProviderConfig providerConfig) {
@SuppressWarnings("unchecked")
List<ServerConfig> servers = providerConfig.getServer();
if (servers != null && !servers.isEmpty()) {
List<Instance> instances = new ArrayList<Instance>();
for... | [
"static",
"List",
"<",
"Instance",
">",
"convertProviderToInstances",
"(",
"ProviderConfig",
"providerConfig",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"List",
"<",
"ServerConfig",
">",
"servers",
"=",
"providerConfig",
".",
"getServer",
"(",
... | Convert provider to instances list.
@param providerConfig the provider config
@return the list | [
"Convert",
"provider",
"to",
"instances",
"list",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-nacos/src/main/java/com/alipay/sofa/rpc/registry/nacos/NacosRegistryHelper.java#L50-L80 |
130,509 | alipay/sofa-rpc | extension-impl/registry-nacos/src/main/java/com/alipay/sofa/rpc/registry/nacos/NacosRegistryHelper.java | NacosRegistryHelper.convertInstancesToProviders | static List<ProviderInfo> convertInstancesToProviders(List<Instance> allInstances) {
List<ProviderInfo> providerInfos = new ArrayList<ProviderInfo>();
if (CommonUtils.isEmpty(allInstances)) {
return providerInfos;
}
for (Instance instance : allInstances) {
String... | java | static List<ProviderInfo> convertInstancesToProviders(List<Instance> allInstances) {
List<ProviderInfo> providerInfos = new ArrayList<ProviderInfo>();
if (CommonUtils.isEmpty(allInstances)) {
return providerInfos;
}
for (Instance instance : allInstances) {
String... | [
"static",
"List",
"<",
"ProviderInfo",
">",
"convertInstancesToProviders",
"(",
"List",
"<",
"Instance",
">",
"allInstances",
")",
"{",
"List",
"<",
"ProviderInfo",
">",
"providerInfos",
"=",
"new",
"ArrayList",
"<",
"ProviderInfo",
">",
"(",
")",
";",
"if",
... | Convert instances to providers list.
@param allInstances the all instances
@return the list | [
"Convert",
"instances",
"to",
"providers",
"list",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-nacos/src/main/java/com/alipay/sofa/rpc/registry/nacos/NacosRegistryHelper.java#L88-L100 |
130,510 | alipay/sofa-rpc | extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperProviderObserver.java | ZookeeperProviderObserver.addProviderListener | public void addProviderListener(ConsumerConfig consumerConfig, ProviderInfoListener listener) {
if (listener != null) {
RegistryUtils.initOrAddList(providerListenerMap, consumerConfig, listener);
}
} | java | public void addProviderListener(ConsumerConfig consumerConfig, ProviderInfoListener listener) {
if (listener != null) {
RegistryUtils.initOrAddList(providerListenerMap, consumerConfig, listener);
}
} | [
"public",
"void",
"addProviderListener",
"(",
"ConsumerConfig",
"consumerConfig",
",",
"ProviderInfoListener",
"listener",
")",
"{",
"if",
"(",
"listener",
"!=",
"null",
")",
"{",
"RegistryUtils",
".",
"initOrAddList",
"(",
"providerListenerMap",
",",
"consumerConfig"... | Add provider listener.
@param consumerConfig the consumer config
@param listener the listener | [
"Add",
"provider",
"listener",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperProviderObserver.java#L59-L63 |
130,511 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/transport/ChannelContext.java | ChannelContext.putHeadCache | public void putHeadCache(Short key, String value) {
if (headerCache == null) {
synchronized (this) {
if (headerCache == null) {
headerCache = new TwoWayMap<Short, String>();
}
}
}
if (headerCache != null && !headerCache.... | java | public void putHeadCache(Short key, String value) {
if (headerCache == null) {
synchronized (this) {
if (headerCache == null) {
headerCache = new TwoWayMap<Short, String>();
}
}
}
if (headerCache != null && !headerCache.... | [
"public",
"void",
"putHeadCache",
"(",
"Short",
"key",
",",
"String",
"value",
")",
"{",
"if",
"(",
"headerCache",
"==",
"null",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"headerCache",
"==",
"null",
")",
"{",
"headerCache",
"=",
"new... | Put header cache
@param key the key
@param value the value | [
"Put",
"header",
"cache"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/transport/ChannelContext.java#L64-L75 |
130,512 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/transport/ChannelContext.java | ChannelContext.invalidateHeadCache | public void invalidateHeadCache(Byte key, String value) {
if (headerCache != null && headerCache.containsKey(key)) {
String old = headerCache.get(key);
if (!old.equals(value)) {
throw new SofaRpcRuntimeException("Value of old is not match current");
}
... | java | public void invalidateHeadCache(Byte key, String value) {
if (headerCache != null && headerCache.containsKey(key)) {
String old = headerCache.get(key);
if (!old.equals(value)) {
throw new SofaRpcRuntimeException("Value of old is not match current");
}
... | [
"public",
"void",
"invalidateHeadCache",
"(",
"Byte",
"key",
",",
"String",
"value",
")",
"{",
"if",
"(",
"headerCache",
"!=",
"null",
"&&",
"headerCache",
".",
"containsKey",
"(",
"key",
")",
")",
"{",
"String",
"old",
"=",
"headerCache",
".",
"get",
"(... | Invalidate head cache.
@param key the key
@param value the value | [
"Invalidate",
"head",
"cache",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/transport/ChannelContext.java#L83-L91 |
130,513 | alipay/sofa-rpc | extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/transport/http/Http2ClientInitializer.java | Http2ClientInitializer.configureClearTextWithPriorKnowledge | private void configureClearTextWithPriorKnowledge(SocketChannel ch) {
ch.pipeline().addLast(connectionHandler,
new PrefaceFrameWrittenEventHandler(),
new UserEventLogger());
configureEndOfPipeline(ch.pipeline());
} | java | private void configureClearTextWithPriorKnowledge(SocketChannel ch) {
ch.pipeline().addLast(connectionHandler,
new PrefaceFrameWrittenEventHandler(),
new UserEventLogger());
configureEndOfPipeline(ch.pipeline());
} | [
"private",
"void",
"configureClearTextWithPriorKnowledge",
"(",
"SocketChannel",
"ch",
")",
"{",
"ch",
".",
"pipeline",
"(",
")",
".",
"addLast",
"(",
"connectionHandler",
",",
"new",
"PrefaceFrameWrittenEventHandler",
"(",
")",
",",
"new",
"UserEventLogger",
"(",
... | Configure the pipeline for a cleartext useing Prior-Knowledge method to start http2. | [
"Configure",
"the",
"pipeline",
"for",
"a",
"cleartext",
"useing",
"Prior",
"-",
"Knowledge",
"method",
"to",
"start",
"http2",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/transport/http/Http2ClientInitializer.java#L176-L181 |
130,514 | alipay/sofa-rpc | extension-impl/extension-common/src/main/java/com/alipay/sofa/rpc/bootstrap/DefaultProviderBootstrap.java | DefaultProviderBootstrap.checkParameters | protected void checkParameters() {
// 检查注入的ref是否接口实现类
Class proxyClass = providerConfig.getProxyClass();
String key = providerConfig.buildKey();
T ref = providerConfig.getRef();
if (!proxyClass.isInstance(ref)) {
throw ExceptionUtils.buildRuntime("provider.ref",
... | java | protected void checkParameters() {
// 检查注入的ref是否接口实现类
Class proxyClass = providerConfig.getProxyClass();
String key = providerConfig.buildKey();
T ref = providerConfig.getRef();
if (!proxyClass.isInstance(ref)) {
throw ExceptionUtils.buildRuntime("provider.ref",
... | [
"protected",
"void",
"checkParameters",
"(",
")",
"{",
"// 检查注入的ref是否接口实现类",
"Class",
"proxyClass",
"=",
"providerConfig",
".",
"getProxyClass",
"(",
")",
";",
"String",
"key",
"=",
"providerConfig",
".",
"buildKey",
"(",
")",
";",
"T",
"ref",
"=",
"providerCo... | for check fields and parameters of consumer config | [
"for",
"check",
"fields",
"and",
"parameters",
"of",
"consumer",
"config"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/extension-common/src/main/java/com/alipay/sofa/rpc/bootstrap/DefaultProviderBootstrap.java#L228-L245 |
130,515 | alipay/sofa-rpc | extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java | ProviderInfoWeightManager.recoverWeight | public static boolean recoverWeight(ProviderInfo providerInfo, int weight) {
providerInfo.setStatus(ProviderStatus.RECOVERING);
providerInfo.setWeight(weight);
return true;
} | java | public static boolean recoverWeight(ProviderInfo providerInfo, int weight) {
providerInfo.setStatus(ProviderStatus.RECOVERING);
providerInfo.setWeight(weight);
return true;
} | [
"public",
"static",
"boolean",
"recoverWeight",
"(",
"ProviderInfo",
"providerInfo",
",",
"int",
"weight",
")",
"{",
"providerInfo",
".",
"setStatus",
"(",
"ProviderStatus",
".",
"RECOVERING",
")",
";",
"providerInfo",
".",
"setWeight",
"(",
"weight",
")",
";",
... | Recover weight of provider info
@param providerInfo ProviderInfo
@param weight recovered weight
@return is recover success | [
"Recover",
"weight",
"of",
"provider",
"info"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java#L36-L40 |
130,516 | alipay/sofa-rpc | extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java | ProviderInfoWeightManager.degradeWeight | public static boolean degradeWeight(ProviderInfo providerInfo, int weight) {
providerInfo.setStatus(ProviderStatus.DEGRADED);
providerInfo.setWeight(weight);
return true;
} | java | public static boolean degradeWeight(ProviderInfo providerInfo, int weight) {
providerInfo.setStatus(ProviderStatus.DEGRADED);
providerInfo.setWeight(weight);
return true;
} | [
"public",
"static",
"boolean",
"degradeWeight",
"(",
"ProviderInfo",
"providerInfo",
",",
"int",
"weight",
")",
"{",
"providerInfo",
".",
"setStatus",
"(",
"ProviderStatus",
".",
"DEGRADED",
")",
";",
"providerInfo",
".",
"setWeight",
"(",
"weight",
")",
";",
... | Degrade weight of provider info
@param providerInfo ProviderInfo
@param weight degraded weight
@return is degrade success | [
"Degrade",
"weight",
"of",
"provider",
"info"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java#L49-L53 |
130,517 | alipay/sofa-rpc | extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java | ProviderInfoWeightManager.recoverOriginWeight | public static void recoverOriginWeight(ProviderInfo providerInfo, int originWeight) {
providerInfo.setStatus(ProviderStatus.AVAILABLE);
providerInfo.setWeight(originWeight);
} | java | public static void recoverOriginWeight(ProviderInfo providerInfo, int originWeight) {
providerInfo.setStatus(ProviderStatus.AVAILABLE);
providerInfo.setWeight(originWeight);
} | [
"public",
"static",
"void",
"recoverOriginWeight",
"(",
"ProviderInfo",
"providerInfo",
",",
"int",
"originWeight",
")",
"{",
"providerInfo",
".",
"setStatus",
"(",
"ProviderStatus",
".",
"AVAILABLE",
")",
";",
"providerInfo",
".",
"setWeight",
"(",
"originWeight",
... | Recover weight of provider info, and set default status
@param providerInfo ProviderInfo
@param originWeight origin weight | [
"Recover",
"weight",
"of",
"provider",
"info",
"and",
"set",
"default",
"status"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/ProviderInfoWeightManager.java#L61-L64 |
130,518 | alipay/sofa-rpc | core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/SnappyDecompressor.java | SnappyDecompressor.readUncompressedLength | private static int[] readUncompressedLength(byte[] compressed, int compressedOffset)
throws CorruptionException {
int result;
int bytesRead = 0;
{
int b = compressed[compressedOffset + bytesRead++] & 0xFF;
result = b & 0x7f;
if ((b & 0x80) != 0) {
... | java | private static int[] readUncompressedLength(byte[] compressed, int compressedOffset)
throws CorruptionException {
int result;
int bytesRead = 0;
{
int b = compressed[compressedOffset + bytesRead++] & 0xFF;
result = b & 0x7f;
if ((b & 0x80) != 0) {
... | [
"private",
"static",
"int",
"[",
"]",
"readUncompressedLength",
"(",
"byte",
"[",
"]",
"compressed",
",",
"int",
"compressedOffset",
")",
"throws",
"CorruptionException",
"{",
"int",
"result",
";",
"int",
"bytesRead",
"=",
"0",
";",
"{",
"int",
"b",
"=",
"... | Reads the variable length integer encoded a the specified offset, and
returns this length with the number of bytes read. | [
"Reads",
"the",
"variable",
"length",
"integer",
"encoded",
"a",
"the",
"specified",
"offset",
"and",
"returns",
"this",
"length",
"with",
"the",
"number",
"of",
"bytes",
"read",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/SnappyDecompressor.java#L390-L418 |
130,519 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/ServerConfig.java | ServerConfig.setPort | public ServerConfig setPort(int port) {
if (!NetUtils.isRandomPort(port) && NetUtils.isInvalidPort(port)) {
throw ExceptionUtils.buildRuntime("server.port", port + "",
"port must between -1 and 65535 (-1 means random port)");
}
this.port = port;
return this;
... | java | public ServerConfig setPort(int port) {
if (!NetUtils.isRandomPort(port) && NetUtils.isInvalidPort(port)) {
throw ExceptionUtils.buildRuntime("server.port", port + "",
"port must between -1 and 65535 (-1 means random port)");
}
this.port = port;
return this;
... | [
"public",
"ServerConfig",
"setPort",
"(",
"int",
"port",
")",
"{",
"if",
"(",
"!",
"NetUtils",
".",
"isRandomPort",
"(",
"port",
")",
"&&",
"NetUtils",
".",
"isInvalidPort",
"(",
"port",
")",
")",
"{",
"throw",
"ExceptionUtils",
".",
"buildRuntime",
"(",
... | Sets port.
@param port the port
@return the port | [
"Sets",
"port",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/ServerConfig.java#L305-L312 |
130,520 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/ServerConfig.java | ServerConfig.setContextPath | public ServerConfig setContextPath(String contextPath) {
if (!contextPath.endsWith(StringUtils.CONTEXT_SEP)) {
contextPath += StringUtils.CONTEXT_SEP;
}
this.contextPath = contextPath;
return this;
} | java | public ServerConfig setContextPath(String contextPath) {
if (!contextPath.endsWith(StringUtils.CONTEXT_SEP)) {
contextPath += StringUtils.CONTEXT_SEP;
}
this.contextPath = contextPath;
return this;
} | [
"public",
"ServerConfig",
"setContextPath",
"(",
"String",
"contextPath",
")",
"{",
"if",
"(",
"!",
"contextPath",
".",
"endsWith",
"(",
"StringUtils",
".",
"CONTEXT_SEP",
")",
")",
"{",
"contextPath",
"+=",
"StringUtils",
".",
"CONTEXT_SEP",
";",
"}",
"this",... | Sets context path.
@param contextPath the context path
@return the context path | [
"Sets",
"context",
"path",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/ServerConfig.java#L329-L335 |
130,521 | alipay/sofa-rpc | core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/BufferRecycler.java | BufferRecycler.instance | public static BufferRecycler instance() {
SoftReference<BufferRecycler> ref = recyclerRef.get();
BufferRecycler bufferRecycler;
if (ref == null) {
bufferRecycler = null;
} else {
bufferRecycler = ref.get();
}
if (bufferRecycler == null) {
... | java | public static BufferRecycler instance() {
SoftReference<BufferRecycler> ref = recyclerRef.get();
BufferRecycler bufferRecycler;
if (ref == null) {
bufferRecycler = null;
} else {
bufferRecycler = ref.get();
}
if (bufferRecycler == null) {
... | [
"public",
"static",
"BufferRecycler",
"instance",
"(",
")",
"{",
"SoftReference",
"<",
"BufferRecycler",
">",
"ref",
"=",
"recyclerRef",
".",
"get",
"(",
")",
";",
"BufferRecycler",
"bufferRecycler",
";",
"if",
"(",
"ref",
"==",
"null",
")",
"{",
"bufferRecy... | Accessor to get thread-local recycler instance | [
"Accessor",
"to",
"get",
"thread",
"-",
"local",
"recycler",
"instance"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/BufferRecycler.java#L51-L66 |
130,522 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/transport/ClientTransportFactory.java | ClientTransportFactory.getReverseClientTransport | public static ClientTransport getReverseClientTransport(String channelKey) {
return REVERSE_CLIENT_TRANSPORT_MAP != null ?
REVERSE_CLIENT_TRANSPORT_MAP.get(channelKey) : null;
} | java | public static ClientTransport getReverseClientTransport(String channelKey) {
return REVERSE_CLIENT_TRANSPORT_MAP != null ?
REVERSE_CLIENT_TRANSPORT_MAP.get(channelKey) : null;
} | [
"public",
"static",
"ClientTransport",
"getReverseClientTransport",
"(",
"String",
"channelKey",
")",
"{",
"return",
"REVERSE_CLIENT_TRANSPORT_MAP",
"!=",
"null",
"?",
"REVERSE_CLIENT_TRANSPORT_MAP",
".",
"get",
"(",
"channelKey",
")",
":",
"null",
";",
"}"
] | Find reverse client transport by channel key
@param channelKey channel key
@return client transport
@see ClientTransportFactory#getReverseClientTransport
@see NetUtils#channelToString | [
"Find",
"reverse",
"client",
"transport",
"by",
"channel",
"key"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/transport/ClientTransportFactory.java#L173-L176 |
130,523 | alipay/sofa-rpc | extension-impl/codec-protobuf/src/main/java/com/alipay/sofa/rpc/codec/protobuf/ProtobufHelper.java | ProtobufHelper.isProtoBufMessageObject | boolean isProtoBufMessageObject(Object object) {
if (object == null) {
return false;
}
if (MULTIPLE_CLASSLOADER) {
return object instanceof MessageLite || isProtoBufMessageClass(object.getClass());
} else {
return object instanceof MessageLite;
... | java | boolean isProtoBufMessageObject(Object object) {
if (object == null) {
return false;
}
if (MULTIPLE_CLASSLOADER) {
return object instanceof MessageLite || isProtoBufMessageClass(object.getClass());
} else {
return object instanceof MessageLite;
... | [
"boolean",
"isProtoBufMessageObject",
"(",
"Object",
"object",
")",
"{",
"if",
"(",
"object",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"MULTIPLE_CLASSLOADER",
")",
"{",
"return",
"object",
"instanceof",
"MessageLite",
"||",
"isProtoBufMe... | Is this object instanceof MessageLite
@param object unknown object
@return instanceof MessageLite | [
"Is",
"this",
"object",
"instanceof",
"MessageLite"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/codec-protobuf/src/main/java/com/alipay/sofa/rpc/codec/protobuf/ProtobufHelper.java#L153-L162 |
130,524 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java | RpcInternalContext.setLocalAddress | @Deprecated
public RpcInternalContext setLocalAddress(String host, int port) {
if (host == null) {
return this;
}
if (port < 0 || port > 0xFFFF) {
port = 0;
}
// 提前检查是否为空,防止createUnresolved抛出异常,损耗性能
this.localAddress = InetSocketAddress.createU... | java | @Deprecated
public RpcInternalContext setLocalAddress(String host, int port) {
if (host == null) {
return this;
}
if (port < 0 || port > 0xFFFF) {
port = 0;
}
// 提前检查是否为空,防止createUnresolved抛出异常,损耗性能
this.localAddress = InetSocketAddress.createU... | [
"@",
"Deprecated",
"public",
"RpcInternalContext",
"setLocalAddress",
"(",
"String",
"host",
",",
"int",
"port",
")",
"{",
"if",
"(",
"host",
"==",
"null",
")",
"{",
"return",
"this",
";",
"}",
"if",
"(",
"port",
"<",
"0",
"||",
"port",
">",
"0xFFFF",
... | set local address.
@param host the host
@param port the port
@return context local address | [
"set",
"local",
"address",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java#L255-L266 |
130,525 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java | RpcInternalContext.setRemoteAddress | public RpcInternalContext setRemoteAddress(String host, int port) {
if (host == null) {
return this;
}
if (port < 0 || port > 0xFFFF) {
port = 0;
}
// 提前检查是否为空,防止createUnresolved抛出异常,损耗性能
this.remoteAddress = InetSocketAddress.createUnresolved(host... | java | public RpcInternalContext setRemoteAddress(String host, int port) {
if (host == null) {
return this;
}
if (port < 0 || port > 0xFFFF) {
port = 0;
}
// 提前检查是否为空,防止createUnresolved抛出异常,损耗性能
this.remoteAddress = InetSocketAddress.createUnresolved(host... | [
"public",
"RpcInternalContext",
"setRemoteAddress",
"(",
"String",
"host",
",",
"int",
"port",
")",
"{",
"if",
"(",
"host",
"==",
"null",
")",
"{",
"return",
"this",
";",
"}",
"if",
"(",
"port",
"<",
"0",
"||",
"port",
">",
"0xFFFF",
")",
"{",
"port"... | set remote address.
@param host the host
@param port the port
@return context remote address | [
"set",
"remote",
"address",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java#L295-L305 |
130,526 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java | RpcInternalContext.getAttachment | public Object getAttachment(String key) {
return key == null ? null : attachments.get(key);
} | java | public Object getAttachment(String key) {
return key == null ? null : attachments.get(key);
} | [
"public",
"Object",
"getAttachment",
"(",
"String",
"key",
")",
"{",
"return",
"key",
"==",
"null",
"?",
"null",
":",
"attachments",
".",
"get",
"(",
"key",
")",
";",
"}"
] | get attachment.
@param key the key
@return attachment attachment | [
"get",
"attachment",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java#L331-L333 |
130,527 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java | RpcInternalContext.setAttachment | public RpcInternalContext setAttachment(String key, Object value) {
if (key == null) {
return this;
}
if (!ATTACHMENT_ENABLE) {
// 未开启附件传递功能,只能传递隐藏key("." 开头的Key)
if (!isHiddenParamKey(key)) {
return this;
}
} else {
... | java | public RpcInternalContext setAttachment(String key, Object value) {
if (key == null) {
return this;
}
if (!ATTACHMENT_ENABLE) {
// 未开启附件传递功能,只能传递隐藏key("." 开头的Key)
if (!isHiddenParamKey(key)) {
return this;
}
} else {
... | [
"public",
"RpcInternalContext",
"setAttachment",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"return",
"this",
";",
"}",
"if",
"(",
"!",
"ATTACHMENT_ENABLE",
")",
"{",
"// 未开启附件传递功能,只能传递隐藏key(\".\" 开头的Key)"... | set attachment.
@param key the key
@param value the value
@return context attachment | [
"set",
"attachment",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java#L342-L363 |
130,528 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java | RpcInternalContext.clear | public void clear() {
this.setRemoteAddress(null).setLocalAddress(null).setFuture(null).setProviderSide(null)
.setProviderInfo(null);
this.attachments = new ConcurrentHashMap<String, Object>();
this.stopWatch.reset();
} | java | public void clear() {
this.setRemoteAddress(null).setLocalAddress(null).setFuture(null).setProviderSide(null)
.setProviderInfo(null);
this.attachments = new ConcurrentHashMap<String, Object>();
this.stopWatch.reset();
} | [
"public",
"void",
"clear",
"(",
")",
"{",
"this",
".",
"setRemoteAddress",
"(",
"null",
")",
".",
"setLocalAddress",
"(",
"null",
")",
".",
"setFuture",
"(",
"null",
")",
".",
"setProviderSide",
"(",
"null",
")",
".",
"setProviderInfo",
"(",
"null",
")",... | Clear context for next user | [
"Clear",
"context",
"for",
"next",
"user"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/context/RpcInternalContext.java#L423-L428 |
130,529 | alipay/sofa-rpc | extension-impl/codec-sofa-hessian/src/main/java/com/alipay/sofa/rpc/codec/sofahessian/BlackListFileLoader.java | BlackListFileLoader.overrideBlackList | static void overrideBlackList(List<String> originList, String overrideStr) {
List<String> adds = new ArrayList<String>();
String[] overrideItems = StringUtils.splitWithCommaOrSemicolon(overrideStr);
for (String overrideItem : overrideItems) {
if (StringUtils.isNotBlank(overrideItem))... | java | static void overrideBlackList(List<String> originList, String overrideStr) {
List<String> adds = new ArrayList<String>();
String[] overrideItems = StringUtils.splitWithCommaOrSemicolon(overrideStr);
for (String overrideItem : overrideItems) {
if (StringUtils.isNotBlank(overrideItem))... | [
"static",
"void",
"overrideBlackList",
"(",
"List",
"<",
"String",
">",
"originList",
",",
"String",
"overrideStr",
")",
"{",
"List",
"<",
"String",
">",
"adds",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"String",
"[",
"]",
"overrideIte... | Override blacklist with override string.
@param originList Origin black list
@param overrideStr The override string | [
"Override",
"blacklist",
"with",
"override",
"string",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/codec-sofa-hessian/src/main/java/com/alipay/sofa/rpc/codec/sofahessian/BlackListFileLoader.java#L106-L128 |
130,530 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.collectServer | public void collectServer(RpcServerLookoutModel rpcServerMetricsModel) {
try {
Id methodProviderId = createMethodProviderId(rpcServerMetricsModel);
MixinMetric methodProviderMetric = Lookout.registry().mixinMetric(methodProviderId);
recordCounterAndTimer(methodProviderMetri... | java | public void collectServer(RpcServerLookoutModel rpcServerMetricsModel) {
try {
Id methodProviderId = createMethodProviderId(rpcServerMetricsModel);
MixinMetric methodProviderMetric = Lookout.registry().mixinMetric(methodProviderId);
recordCounterAndTimer(methodProviderMetri... | [
"public",
"void",
"collectServer",
"(",
"RpcServerLookoutModel",
"rpcServerMetricsModel",
")",
"{",
"try",
"{",
"Id",
"methodProviderId",
"=",
"createMethodProviderId",
"(",
"rpcServerMetricsModel",
")",
";",
"MixinMetric",
"methodProviderMetric",
"=",
"Lookout",
".",
"... | Collect the RPC server information.
@param rpcServerMetricsModel server information model | [
"Collect",
"the",
"RPC",
"server",
"information",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L79-L90 |
130,531 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.collectThreadPool | public void collectThreadPool(ServerConfig serverConfig, final ThreadPoolExecutor threadPoolExecutor) {
try {
int coreSize = serverConfig.getCoreThreads();
int maxSize = serverConfig.getMaxThreads();
int queueSize = serverConfig.getQueues();
final ThreadPoolConf... | java | public void collectThreadPool(ServerConfig serverConfig, final ThreadPoolExecutor threadPoolExecutor) {
try {
int coreSize = serverConfig.getCoreThreads();
int maxSize = serverConfig.getMaxThreads();
int queueSize = serverConfig.getQueues();
final ThreadPoolConf... | [
"public",
"void",
"collectThreadPool",
"(",
"ServerConfig",
"serverConfig",
",",
"final",
"ThreadPoolExecutor",
"threadPoolExecutor",
")",
"{",
"try",
"{",
"int",
"coreSize",
"=",
"serverConfig",
".",
"getCoreThreads",
"(",
")",
";",
"int",
"maxSize",
"=",
"server... | Collect the thread pool information
@param serverConfig ServerConfig
@param threadPoolExecutor ThreadPoolExecutor | [
"Collect",
"the",
"thread",
"pool",
"information"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L98-L142 |
130,532 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.removeThreadPool | public void removeThreadPool(ServerConfig serverConfig) {
Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadConfigId(serverConfig));
Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadPoolActiveCountId(serverConfig));
Lookout.registry().removeMetric(rpcLookoutId.removeSe... | java | public void removeThreadPool(ServerConfig serverConfig) {
Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadConfigId(serverConfig));
Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadPoolActiveCountId(serverConfig));
Lookout.registry().removeMetric(rpcLookoutId.removeSe... | [
"public",
"void",
"removeThreadPool",
"(",
"ServerConfig",
"serverConfig",
")",
"{",
"Lookout",
".",
"registry",
"(",
")",
".",
"removeMetric",
"(",
"rpcLookoutId",
".",
"removeServerThreadConfigId",
"(",
"serverConfig",
")",
")",
";",
"Lookout",
".",
"registry",
... | remove the thread pool information
@param serverConfig server config | [
"remove",
"the",
"thread",
"pool",
"information"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L149-L154 |
130,533 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.recordCounterAndTimer | private void recordCounterAndTimer(MixinMetric mixinMetric, RpcAbstractLookoutModel model) {
Counter totalCounter = mixinMetric.counter("total_count");
Timer totalTimer = mixinMetric.timer("total_time");
Long elapsedTime = model.getElapsedTime();
totalCounter.inc();
if (elapsed... | java | private void recordCounterAndTimer(MixinMetric mixinMetric, RpcAbstractLookoutModel model) {
Counter totalCounter = mixinMetric.counter("total_count");
Timer totalTimer = mixinMetric.timer("total_time");
Long elapsedTime = model.getElapsedTime();
totalCounter.inc();
if (elapsed... | [
"private",
"void",
"recordCounterAndTimer",
"(",
"MixinMetric",
"mixinMetric",
",",
"RpcAbstractLookoutModel",
"model",
")",
"{",
"Counter",
"totalCounter",
"=",
"mixinMetric",
".",
"counter",
"(",
"\"total_count\"",
")",
";",
"Timer",
"totalTimer",
"=",
"mixinMetric"... | Record the number of calls and time consuming.
@param mixinMetric MixinMetric
@param model information model | [
"Record",
"the",
"number",
"of",
"calls",
"and",
"time",
"consuming",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L162-L182 |
130,534 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.recordSize | private void recordSize(MixinMetric mixinMetric, RpcClientLookoutModel model) {
Long requestSize = model.getRequestSize();
Long responseSize = model.getResponseSize();
if (requestSize != null) {
DistributionSummary requestSizeDS = mixinMetric.distributionSummary("request_size");
... | java | private void recordSize(MixinMetric mixinMetric, RpcClientLookoutModel model) {
Long requestSize = model.getRequestSize();
Long responseSize = model.getResponseSize();
if (requestSize != null) {
DistributionSummary requestSizeDS = mixinMetric.distributionSummary("request_size");
... | [
"private",
"void",
"recordSize",
"(",
"MixinMetric",
"mixinMetric",
",",
"RpcClientLookoutModel",
"model",
")",
"{",
"Long",
"requestSize",
"=",
"model",
".",
"getRequestSize",
"(",
")",
";",
"Long",
"responseSize",
"=",
"model",
".",
"getResponseSize",
"(",
")"... | Record request size and response size
@param mixinMetric MixinMetric
@param model information model | [
"Record",
"request",
"size",
"and",
"response",
"size"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L190-L204 |
130,535 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.createMethodConsumerId | private Id createMethodConsumerId(RpcClientLookoutModel model) {
Map<String, String> tags = new HashMap<String, String>(6);
tags.put("app", StringUtils.defaultString(model.getApp()));
tags.put("service", StringUtils.defaultString(model.getService()));
tags.put("method", StringUtils.def... | java | private Id createMethodConsumerId(RpcClientLookoutModel model) {
Map<String, String> tags = new HashMap<String, String>(6);
tags.put("app", StringUtils.defaultString(model.getApp()));
tags.put("service", StringUtils.defaultString(model.getService()));
tags.put("method", StringUtils.def... | [
"private",
"Id",
"createMethodConsumerId",
"(",
"RpcClientLookoutModel",
"model",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"tags",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
"6",
")",
";",
"tags",
".",
"put",
"(",
"\"app\""... | Create consumer id
@param model RpcClientLookoutModel
@return Id | [
"Create",
"consumer",
"id"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L212-L224 |
130,536 | alipay/sofa-rpc | extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java | RpcLookout.createMethodProviderId | public Id createMethodProviderId(RpcServerLookoutModel model) {
Map<String, String> tags = new HashMap<String, String>(5);
tags.put("app", StringUtils.defaultString(model.getApp()));
tags.put("service", StringUtils.defaultString(model.getService()));
tags.put("method", StringUtils.defau... | java | public Id createMethodProviderId(RpcServerLookoutModel model) {
Map<String, String> tags = new HashMap<String, String>(5);
tags.put("app", StringUtils.defaultString(model.getApp()));
tags.put("service", StringUtils.defaultString(model.getService()));
tags.put("method", StringUtils.defau... | [
"public",
"Id",
"createMethodProviderId",
"(",
"RpcServerLookoutModel",
"model",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"tags",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
"5",
")",
";",
"tags",
".",
"put",
"(",
"\"app\"",... | Create provider id
@param model RpcServerLookoutModel
@return Id | [
"Create",
"provider",
"id"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/metrics-lookout/src/main/java/com/alipay/sofa/rpc/metrics/lookout/RpcLookout.java#L232-L242 |
130,537 | alipay/sofa-rpc | extension-impl/codec-sofa-hessian/src/main/java/com/alipay/sofa/rpc/codec/sofahessian/SofaHessianSerializer.java | SofaHessianSerializer.getSerializerFactory | protected SerializerFactory getSerializerFactory(boolean multipleClassLoader, boolean generic) {
if (generic) {
return multipleClassLoader ? new GenericMultipleClassLoaderSofaSerializerFactory() :
new GenericSingleClassLoaderSofaSerializerFactory();
} else {
retur... | java | protected SerializerFactory getSerializerFactory(boolean multipleClassLoader, boolean generic) {
if (generic) {
return multipleClassLoader ? new GenericMultipleClassLoaderSofaSerializerFactory() :
new GenericSingleClassLoaderSofaSerializerFactory();
} else {
retur... | [
"protected",
"SerializerFactory",
"getSerializerFactory",
"(",
"boolean",
"multipleClassLoader",
",",
"boolean",
"generic",
")",
"{",
"if",
"(",
"generic",
")",
"{",
"return",
"multipleClassLoader",
"?",
"new",
"GenericMultipleClassLoaderSofaSerializerFactory",
"(",
")",
... | Gets serializer factory.
@param multipleClassLoader the multiple class loader
@param generic the generic
@return the serializer factory | [
"Gets",
"serializer",
"factory",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/codec-sofa-hessian/src/main/java/com/alipay/sofa/rpc/codec/sofahessian/SofaHessianSerializer.java#L118-L126 |
130,538 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/ext/ExtensionLoaderFactory.java | ExtensionLoaderFactory.getExtensionLoader | public static <T> ExtensionLoader<T> getExtensionLoader(Class<T> clazz, ExtensionLoaderListener<T> listener) {
ExtensionLoader<T> loader = LOADER_MAP.get(clazz);
if (loader == null) {
synchronized (ExtensionLoaderFactory.class) {
loader = LOADER_MAP.get(clazz);
... | java | public static <T> ExtensionLoader<T> getExtensionLoader(Class<T> clazz, ExtensionLoaderListener<T> listener) {
ExtensionLoader<T> loader = LOADER_MAP.get(clazz);
if (loader == null) {
synchronized (ExtensionLoaderFactory.class) {
loader = LOADER_MAP.get(clazz);
... | [
"public",
"static",
"<",
"T",
">",
"ExtensionLoader",
"<",
"T",
">",
"getExtensionLoader",
"(",
"Class",
"<",
"T",
">",
"clazz",
",",
"ExtensionLoaderListener",
"<",
"T",
">",
"listener",
")",
"{",
"ExtensionLoader",
"<",
"T",
">",
"loader",
"=",
"LOADER_M... | Get extension loader by extensible class with listener
@param clazz Extensible class
@param listener Listener of ExtensionLoader
@param <T> Class
@return ExtensionLoader of this class | [
"Get",
"extension",
"loader",
"by",
"extensible",
"class",
"with",
"listener"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/ext/ExtensionLoaderFactory.java#L44-L56 |
130,539 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/ext/ExtensionLoaderFactory.java | ExtensionLoaderFactory.getExtensionLoader | public static <T> ExtensionLoader<T> getExtensionLoader(Class<T> clazz) {
return getExtensionLoader(clazz, null);
} | java | public static <T> ExtensionLoader<T> getExtensionLoader(Class<T> clazz) {
return getExtensionLoader(clazz, null);
} | [
"public",
"static",
"<",
"T",
">",
"ExtensionLoader",
"<",
"T",
">",
"getExtensionLoader",
"(",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"return",
"getExtensionLoader",
"(",
"clazz",
",",
"null",
")",
";",
"}"
] | Get extension loader by extensible class without listener
@param clazz Extensible class
@param <T> Class
@return ExtensionLoader of this class | [
"Get",
"extension",
"loader",
"by",
"extensible",
"class",
"without",
"listener"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/ext/ExtensionLoaderFactory.java#L65-L67 |
130,540 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractIdConfig.java | AbstractIdConfig.getId | public String getId() {
if (id == null) {
synchronized (this) {
if (id == null) {
id = "rpc-cfg-" + ID_GENERATOR.getAndIncrement();
}
}
}
return id;
} | java | public String getId() {
if (id == null) {
synchronized (this) {
if (id == null) {
id = "rpc-cfg-" + ID_GENERATOR.getAndIncrement();
}
}
}
return id;
} | [
"public",
"String",
"getId",
"(",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")",
"{",
"id",
"=",
"\"rpc-cfg-\"",
"+",
"ID_GENERATOR",
".",
"getAndIncrement",
"(",
")",
"... | Gets id.
@return the id | [
"Gets",
"id",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractIdConfig.java#L53-L62 |
130,541 | alipay/sofa-rpc | core/common/src/main/java/com/alipay/sofa/rpc/common/utils/HashUtils.java | HashUtils.hash | public static long hash(byte[] digest, int index) {
long f = ((long) (digest[3 + index * 4] & 0xFF) << 24)
| ((long) (digest[2 + index * 4] & 0xFF) << 16)
| ((long) (digest[1 + index * 4] & 0xFF) << 8)
| (digest[index * 4] & 0xFF);
return f & 0xFFFFFFFFL;
} | java | public static long hash(byte[] digest, int index) {
long f = ((long) (digest[3 + index * 4] & 0xFF) << 24)
| ((long) (digest[2 + index * 4] & 0xFF) << 16)
| ((long) (digest[1 + index * 4] & 0xFF) << 8)
| (digest[index * 4] & 0xFF);
return f & 0xFFFFFFFFL;
} | [
"public",
"static",
"long",
"hash",
"(",
"byte",
"[",
"]",
"digest",
",",
"int",
"index",
")",
"{",
"long",
"f",
"=",
"(",
"(",
"long",
")",
"(",
"digest",
"[",
"3",
"+",
"index",
"*",
"4",
"]",
"&",
"0xFF",
")",
"<<",
"24",
")",
"|",
"(",
... | Hash long.
@param digest the digest
@param index the number
@return the long | [
"Hash",
"long",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/common/src/main/java/com/alipay/sofa/rpc/common/utils/HashUtils.java#L57-L63 |
130,542 | alipay/sofa-rpc | extension-impl/registry-mesh/src/main/java/com/alipay/sofa/rpc/registry/mesh/MeshRegistry.java | MeshRegistry.buildApplicationRequest | protected ApplicationInfoRequest buildApplicationRequest(String appName) {
ApplicationInfoRequest applicationInfoRequest = new ApplicationInfoRequest();
applicationInfoRequest.setAppName(appName);
return applicationInfoRequest;
} | java | protected ApplicationInfoRequest buildApplicationRequest(String appName) {
ApplicationInfoRequest applicationInfoRequest = new ApplicationInfoRequest();
applicationInfoRequest.setAppName(appName);
return applicationInfoRequest;
} | [
"protected",
"ApplicationInfoRequest",
"buildApplicationRequest",
"(",
"String",
"appName",
")",
"{",
"ApplicationInfoRequest",
"applicationInfoRequest",
"=",
"new",
"ApplicationInfoRequest",
"(",
")",
";",
"applicationInfoRequest",
".",
"setAppName",
"(",
"appName",
")",
... | can be extended
@param appName
@return | [
"can",
"be",
"extended"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-mesh/src/main/java/com/alipay/sofa/rpc/registry/mesh/MeshRegistry.java#L272-L276 |
130,543 | alipay/sofa-rpc | extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java | ZookeeperRegistry.recoverRegistryData | protected void recoverRegistryData() {
for (ProviderConfig providerConfig : providerUrls.keySet()) {
registerProviderUrls(providerConfig);
}
for (ConsumerConfig consumerConfig : consumerUrls.keySet()) {
subscribeConsumerUrls(consumerConfig);
}
} | java | protected void recoverRegistryData() {
for (ProviderConfig providerConfig : providerUrls.keySet()) {
registerProviderUrls(providerConfig);
}
for (ConsumerConfig consumerConfig : consumerUrls.keySet()) {
subscribeConsumerUrls(consumerConfig);
}
} | [
"protected",
"void",
"recoverRegistryData",
"(",
")",
"{",
"for",
"(",
"ProviderConfig",
"providerConfig",
":",
"providerUrls",
".",
"keySet",
"(",
")",
")",
"{",
"registerProviderUrls",
"(",
"providerConfig",
")",
";",
"}",
"for",
"(",
"ConsumerConfig",
"consum... | recover data when connect with zk again. | [
"recover",
"data",
"when",
"connect",
"with",
"zk",
"again",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java#L253-L263 |
130,544 | alipay/sofa-rpc | core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/SnappyCompressor.java | SnappyCompressor.writeUncompressedLength | private static int writeUncompressedLength(byte[] compressed, int compressedOffset, int uncompressedLength) {
int highBitMask = 0x80;
if (uncompressedLength < (1 << 7) && uncompressedLength >= 0) {
compressed[compressedOffset++] = (byte) (uncompressedLength);
} else if (uncompressedL... | java | private static int writeUncompressedLength(byte[] compressed, int compressedOffset, int uncompressedLength) {
int highBitMask = 0x80;
if (uncompressedLength < (1 << 7) && uncompressedLength >= 0) {
compressed[compressedOffset++] = (byte) (uncompressedLength);
} else if (uncompressedL... | [
"private",
"static",
"int",
"writeUncompressedLength",
"(",
"byte",
"[",
"]",
"compressed",
",",
"int",
"compressedOffset",
",",
"int",
"uncompressedLength",
")",
"{",
"int",
"highBitMask",
"=",
"0x80",
";",
"if",
"(",
"uncompressedLength",
"<",
"(",
"1",
"<<"... | Writes the uncompressed length as variable length integer. | [
"Writes",
"the",
"uncompressed",
"length",
"as",
"variable",
"length",
"integer",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core-impl/codec/src/main/java/com/alipay/sofa/rpc/codec/snappy/SnappyCompressor.java#L471-L495 |
130,545 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/ProviderConfig.java | ProviderConfig.setServer | public ProviderConfig<T> setServer(ServerConfig server) {
if (this.server == null) {
this.server = new ArrayList<ServerConfig>();
}
this.server.add(server);
return this;
} | java | public ProviderConfig<T> setServer(ServerConfig server) {
if (this.server == null) {
this.server = new ArrayList<ServerConfig>();
}
this.server.add(server);
return this;
} | [
"public",
"ProviderConfig",
"<",
"T",
">",
"setServer",
"(",
"ServerConfig",
"server",
")",
"{",
"if",
"(",
"this",
".",
"server",
"==",
"null",
")",
"{",
"this",
".",
"server",
"=",
"new",
"ArrayList",
"<",
"ServerConfig",
">",
"(",
")",
";",
"}",
"... | add server.
@param server ServerConfig
@return the ProviderConfig | [
"add",
"server",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/ProviderConfig.java#L489-L495 |
130,546 | alipay/sofa-rpc | core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AllConnectConnectionHolder.java | AllConnectConnectionHolder.addAlive | protected void addAlive(ProviderInfo providerInfo, ClientTransport transport) {
if (checkState(providerInfo, transport)) {
aliveConnections.put(providerInfo, transport);
}
} | java | protected void addAlive(ProviderInfo providerInfo, ClientTransport transport) {
if (checkState(providerInfo, transport)) {
aliveConnections.put(providerInfo, transport);
}
} | [
"protected",
"void",
"addAlive",
"(",
"ProviderInfo",
"providerInfo",
",",
"ClientTransport",
"transport",
")",
"{",
"if",
"(",
"checkState",
"(",
"providerInfo",
",",
"transport",
")",
")",
"{",
"aliveConnections",
".",
"put",
"(",
"providerInfo",
",",
"transpo... | Add alive.
@param providerInfo the provider
@param transport the transport | [
"Add",
"alive",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AllConnectConnectionHolder.java#L123-L127 |
130,547 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java | RpcConfigs.getEnumValue | public static <T extends Enum<T>> T getEnumValue(String primaryKey, Class<T> enumClazz) {
String val = (String) CFG.get(primaryKey);
if (val == null) {
throw new SofaRpcRuntimeException("Not Found Key: " + primaryKey);
} else {
return Enum.valueOf(enumClazz, val);
... | java | public static <T extends Enum<T>> T getEnumValue(String primaryKey, Class<T> enumClazz) {
String val = (String) CFG.get(primaryKey);
if (val == null) {
throw new SofaRpcRuntimeException("Not Found Key: " + primaryKey);
} else {
return Enum.valueOf(enumClazz, val);
... | [
"public",
"static",
"<",
"T",
"extends",
"Enum",
"<",
"T",
">",
">",
"T",
"getEnumValue",
"(",
"String",
"primaryKey",
",",
"Class",
"<",
"T",
">",
"enumClazz",
")",
"{",
"String",
"val",
"=",
"(",
"String",
")",
"CFG",
".",
"get",
"(",
"primaryKey",... | Gets enum value.
@param <T> the type parameter
@param primaryKey the primary key
@param enumClazz the enum clazz
@return the enum value | [
"Gets",
"enum",
"value",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java#L236-L243 |
130,548 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java | RpcConfigs.getListValue | public static List getListValue(String primaryKey) {
List val = (List) CFG.get(primaryKey);
if (val == null) {
throw new SofaRpcRuntimeException("Not found key: " + primaryKey);
} else {
return val;
}
} | java | public static List getListValue(String primaryKey) {
List val = (List) CFG.get(primaryKey);
if (val == null) {
throw new SofaRpcRuntimeException("Not found key: " + primaryKey);
} else {
return val;
}
} | [
"public",
"static",
"List",
"getListValue",
"(",
"String",
"primaryKey",
")",
"{",
"List",
"val",
"=",
"(",
"List",
")",
"CFG",
".",
"get",
"(",
"primaryKey",
")",
";",
"if",
"(",
"val",
"==",
"null",
")",
"{",
"throw",
"new",
"SofaRpcRuntimeException",
... | Gets list value.
@param primaryKey the primary key
@return the list value | [
"Gets",
"list",
"value",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java#L287-L294 |
130,549 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java | RpcConfigs.getOrDefaultValue | public static <T> T getOrDefaultValue(String primaryKey, T defaultValue) {
Object val = CFG.get(primaryKey);
return val == null ? defaultValue : (T) CompatibleTypeUtils.convert(val, defaultValue.getClass());
} | java | public static <T> T getOrDefaultValue(String primaryKey, T defaultValue) {
Object val = CFG.get(primaryKey);
return val == null ? defaultValue : (T) CompatibleTypeUtils.convert(val, defaultValue.getClass());
} | [
"public",
"static",
"<",
"T",
">",
"T",
"getOrDefaultValue",
"(",
"String",
"primaryKey",
",",
"T",
"defaultValue",
")",
"{",
"Object",
"val",
"=",
"CFG",
".",
"get",
"(",
"primaryKey",
")",
";",
"return",
"val",
"==",
"null",
"?",
"defaultValue",
":",
... | Gets or default value.
@param <T> the type parameter
@param primaryKey the primary key
@param defaultValue the default value
@return the or default value | [
"Gets",
"or",
"default",
"value",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConfigs.java#L304-L307 |
130,550 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java | ProviderInfo.getWeight | public int getWeight() {
ProviderStatus status = getStatus();
if (status == ProviderStatus.WARMING_UP) {
try {
// 还处于预热时间中
Integer warmUpWeight = (Integer) getDynamicAttr(ProviderInfoAttrs.ATTR_WARMUP_WEIGHT);
if (warmUpWeight != null) {
... | java | public int getWeight() {
ProviderStatus status = getStatus();
if (status == ProviderStatus.WARMING_UP) {
try {
// 还处于预热时间中
Integer warmUpWeight = (Integer) getDynamicAttr(ProviderInfoAttrs.ATTR_WARMUP_WEIGHT);
if (warmUpWeight != null) {
... | [
"public",
"int",
"getWeight",
"(",
")",
"{",
"ProviderStatus",
"status",
"=",
"getStatus",
"(",
")",
";",
"if",
"(",
"status",
"==",
"ProviderStatus",
".",
"WARMING_UP",
")",
"{",
"try",
"{",
"// 还处于预热时间中",
"Integer",
"warmUpWeight",
"=",
"(",
"Integer",
"... | Gets weight.
@return the weight | [
"Gets",
"weight",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java#L323-L337 |
130,551 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java | ProviderInfo.getStatus | public ProviderStatus getStatus() {
if (status == ProviderStatus.WARMING_UP) {
if (System.currentTimeMillis() > (Long) getDynamicAttr(ProviderInfoAttrs.ATTR_WARM_UP_END_TIME)) {
// 如果已经过了预热时间,恢复为正常
status = ProviderStatus.AVAILABLE;
setDynamicAttr(Prov... | java | public ProviderStatus getStatus() {
if (status == ProviderStatus.WARMING_UP) {
if (System.currentTimeMillis() > (Long) getDynamicAttr(ProviderInfoAttrs.ATTR_WARM_UP_END_TIME)) {
// 如果已经过了预热时间,恢复为正常
status = ProviderStatus.AVAILABLE;
setDynamicAttr(Prov... | [
"public",
"ProviderStatus",
"getStatus",
"(",
")",
"{",
"if",
"(",
"status",
"==",
"ProviderStatus",
".",
"WARMING_UP",
")",
"{",
"if",
"(",
"System",
".",
"currentTimeMillis",
"(",
")",
">",
"(",
"Long",
")",
"getDynamicAttr",
"(",
"ProviderInfoAttrs",
".",... | Gets status.
@return the status | [
"Gets",
"status",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java#L375-L384 |
130,552 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/filter/FilterChain.java | FilterChain.onAsyncResponse | public void onAsyncResponse(ConsumerConfig config, SofaRequest request, SofaResponse response, Throwable throwable)
throws SofaRpcException {
try {
for (Filter loadedFilter : loadedFilters) {
loadedFilter.onAsyncResponse(config, request, response, throwable);
}
... | java | public void onAsyncResponse(ConsumerConfig config, SofaRequest request, SofaResponse response, Throwable throwable)
throws SofaRpcException {
try {
for (Filter loadedFilter : loadedFilters) {
loadedFilter.onAsyncResponse(config, request, response, throwable);
}
... | [
"public",
"void",
"onAsyncResponse",
"(",
"ConsumerConfig",
"config",
",",
"SofaRequest",
"request",
",",
"SofaResponse",
"response",
",",
"Throwable",
"throwable",
")",
"throws",
"SofaRpcException",
"{",
"try",
"{",
"for",
"(",
"Filter",
"loadedFilter",
":",
"loa... | Do filtering when async respond from server
@param config Consumer config
@param request SofaRequest
@param response SofaResponse
@param throwable Throwable when invoke
@throws SofaRpcException occur error | [
"Do",
"filtering",
"when",
"async",
"respond",
"from",
"server"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/filter/FilterChain.java#L274-L284 |
130,553 | alipay/sofa-rpc | extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/transport/http/HttpTracerUtils.java | HttpTracerUtils.parseTraceKey | public static void parseTraceKey(Map<String, String> tracerMap, String key, String value) {
String lowKey = key.substring(PREFIX.length());
String realKey = TRACER_KEY_MAP.get(lowKey);
tracerMap.put(realKey == null ? lowKey : realKey, value);
} | java | public static void parseTraceKey(Map<String, String> tracerMap, String key, String value) {
String lowKey = key.substring(PREFIX.length());
String realKey = TRACER_KEY_MAP.get(lowKey);
tracerMap.put(realKey == null ? lowKey : realKey, value);
} | [
"public",
"static",
"void",
"parseTraceKey",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"tracerMap",
",",
"String",
"key",
",",
"String",
"value",
")",
"{",
"String",
"lowKey",
"=",
"key",
".",
"substring",
"(",
"PREFIX",
".",
"length",
"(",
")",
"... | Parse tracer key
@param tracerMap tracer map
@param key tracer key
@param value tracer value | [
"Parse",
"tracer",
"key"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/remoting-http/src/main/java/com/alipay/sofa/rpc/transport/http/HttpTracerUtils.java#L61-L65 |
130,554 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java | SofaResponse.getResponseProp | public Object getResponseProp(String key) {
return responseProps == null ? null : responseProps.get(key);
} | java | public Object getResponseProp(String key) {
return responseProps == null ? null : responseProps.get(key);
} | [
"public",
"Object",
"getResponseProp",
"(",
"String",
"key",
")",
"{",
"return",
"responseProps",
"==",
"null",
"?",
"null",
":",
"responseProps",
".",
"get",
"(",
"key",
")",
";",
"}"
] | Gets response prop.
@param key the key
@return the response prop | [
"Gets",
"response",
"prop",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java#L121-L123 |
130,555 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java | SofaResponse.addResponseProp | public void addResponseProp(String key, String value) {
if (responseProps == null) {
responseProps = new HashMap<String, String>(16);
}
if (key != null && value != null) {
responseProps.put(key, value);
}
} | java | public void addResponseProp(String key, String value) {
if (responseProps == null) {
responseProps = new HashMap<String, String>(16);
}
if (key != null && value != null) {
responseProps.put(key, value);
}
} | [
"public",
"void",
"addResponseProp",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"if",
"(",
"responseProps",
"==",
"null",
")",
"{",
"responseProps",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
"16",
")",
";",
"}",
"if",
... | Add response prop.
@param key the key
@param value the value | [
"Add",
"response",
"prop",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java#L131-L138 |
130,556 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java | SofaResponse.removeResponseProp | public void removeResponseProp(String key) {
if (responseProps != null && key != null) {
responseProps.remove(key);
}
} | java | public void removeResponseProp(String key) {
if (responseProps != null && key != null) {
responseProps.remove(key);
}
} | [
"public",
"void",
"removeResponseProp",
"(",
"String",
"key",
")",
"{",
"if",
"(",
"responseProps",
"!=",
"null",
"&&",
"key",
"!=",
"null",
")",
"{",
"responseProps",
".",
"remove",
"(",
"key",
")",
";",
"}",
"}"
] | Remove response props.
@param key the key | [
"Remove",
"response",
"props",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/response/SofaResponse.java#L145-L149 |
130,557 | alipay/sofa-rpc | core-impl/proxy/src/main/java/com/alipay/sofa/rpc/proxy/jdk/JDKProxy.java | JDKProxy.parseInvoker | public static Invoker parseInvoker(Object proxyObject) {
InvocationHandler handler = java.lang.reflect.Proxy.getInvocationHandler(proxyObject);
if (handler instanceof JDKInvocationHandler) {
return ((JDKInvocationHandler) handler).getProxyInvoker();
}
return null;
} | java | public static Invoker parseInvoker(Object proxyObject) {
InvocationHandler handler = java.lang.reflect.Proxy.getInvocationHandler(proxyObject);
if (handler instanceof JDKInvocationHandler) {
return ((JDKInvocationHandler) handler).getProxyInvoker();
}
return null;
} | [
"public",
"static",
"Invoker",
"parseInvoker",
"(",
"Object",
"proxyObject",
")",
"{",
"InvocationHandler",
"handler",
"=",
"java",
".",
"lang",
".",
"reflect",
".",
"Proxy",
".",
"getInvocationHandler",
"(",
"proxyObject",
")",
";",
"if",
"(",
"handler",
"ins... | Parse proxy invoker from proxy object
@param proxyObject Proxy object
@return proxy invoker | [
"Parse",
"proxy",
"invoker",
"from",
"proxy",
"object"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core-impl/proxy/src/main/java/com/alipay/sofa/rpc/proxy/jdk/JDKProxy.java#L54-L60 |
130,558 | alipay/sofa-rpc | extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/InvocationStatDimension.java | InvocationStatDimension.getOriginWeight | public int getOriginWeight() {
if (originWeight == null) {
if (providerInfo == null) {
originWeight = RpcConfigs.getIntValue(RpcOptions.PROVIDER_WEIGHT);
} else {
originWeight = CommonUtils.parseInt(providerInfo.getStaticAttr(ProviderInfoAttrs.ATTR_WEIGHT)... | java | public int getOriginWeight() {
if (originWeight == null) {
if (providerInfo == null) {
originWeight = RpcConfigs.getIntValue(RpcOptions.PROVIDER_WEIGHT);
} else {
originWeight = CommonUtils.parseInt(providerInfo.getStaticAttr(ProviderInfoAttrs.ATTR_WEIGHT)... | [
"public",
"int",
"getOriginWeight",
"(",
")",
"{",
"if",
"(",
"originWeight",
"==",
"null",
")",
"{",
"if",
"(",
"providerInfo",
"==",
"null",
")",
"{",
"originWeight",
"=",
"RpcConfigs",
".",
"getIntValue",
"(",
"RpcOptions",
".",
"PROVIDER_WEIGHT",
")",
... | Gets origin weight.
@return the origin weight | [
"Gets",
"origin",
"weight",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/fault-tolerance/src/main/java/com/alipay/sofa/rpc/client/aft/InvocationStatDimension.java#L113-L123 |
130,559 | alipay/sofa-rpc | extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java | LocalRegistry.notifyConsumer | void notifyConsumer(Map<String, ProviderGroup> newCache) {
Map<String, ProviderGroup> oldCache = memoryCache;
// 比较两个map的差异
MapDifference<String, ProviderGroup> difference =
new MapDifference<String, ProviderGroup>(newCache, oldCache);
// 新的有,旧的没有,通知
Map<String, P... | java | void notifyConsumer(Map<String, ProviderGroup> newCache) {
Map<String, ProviderGroup> oldCache = memoryCache;
// 比较两个map的差异
MapDifference<String, ProviderGroup> difference =
new MapDifference<String, ProviderGroup>(newCache, oldCache);
// 新的有,旧的没有,通知
Map<String, P... | [
"void",
"notifyConsumer",
"(",
"Map",
"<",
"String",
",",
"ProviderGroup",
">",
"newCache",
")",
"{",
"Map",
"<",
"String",
",",
"ProviderGroup",
">",
"oldCache",
"=",
"memoryCache",
";",
"// 比较两个map的差异",
"MapDifference",
"<",
"String",
",",
"ProviderGroup",
"... | Notify consumer.
@param newCache the new cache | [
"Notify",
"consumer",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java#L384-L414 |
130,560 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java | SofaRequest.getRequestProp | public Object getRequestProp(String key) {
return requestProps != null ? requestProps.get(key) : null;
} | java | public Object getRequestProp(String key) {
return requestProps != null ? requestProps.get(key) : null;
} | [
"public",
"Object",
"getRequestProp",
"(",
"String",
"key",
")",
"{",
"return",
"requestProps",
"!=",
"null",
"?",
"requestProps",
".",
"get",
"(",
"key",
")",
":",
"null",
";",
"}"
] | Gets request prop.
@param key the key
@return request prop | [
"Gets",
"request",
"prop",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java#L55-L57 |
130,561 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java | SofaRequest.addRequestProp | public void addRequestProp(String key, Object value) {
if (key == null || value == null) {
return;
}
if (requestProps == null) {
requestProps = new HashMap<String, Object>(16);
}
requestProps.put(key, value);
} | java | public void addRequestProp(String key, Object value) {
if (key == null || value == null) {
return;
}
if (requestProps == null) {
requestProps = new HashMap<String, Object>(16);
}
requestProps.put(key, value);
} | [
"public",
"void",
"addRequestProp",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"key",
"==",
"null",
"||",
"value",
"==",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"requestProps",
"==",
"null",
")",
"{",
"requestProps",
... | Add request prop.
@param key the key
@param value the value | [
"Add",
"request",
"prop",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java#L65-L73 |
130,562 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java | SofaRequest.removeRequestProp | public void removeRequestProp(String key) {
if (key == null) {
return;
}
if (requestProps != null) {
requestProps.remove(key);
}
} | java | public void removeRequestProp(String key) {
if (key == null) {
return;
}
if (requestProps != null) {
requestProps.remove(key);
}
} | [
"public",
"void",
"removeRequestProp",
"(",
"String",
"key",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"requestProps",
"!=",
"null",
")",
"{",
"requestProps",
".",
"remove",
"(",
"key",
")",
";",
"}",
"}"
] | Remove request prop.
@param key the key | [
"Remove",
"request",
"prop",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java#L80-L87 |
130,563 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java | SofaRequest.addRequestProps | public void addRequestProps(Map<String, Object> map) {
if (map == null || map.isEmpty()) {
return;
}
if (requestProps == null) {
requestProps = new HashMap<String, Object>(16);
}
requestProps.putAll(map);
} | java | public void addRequestProps(Map<String, Object> map) {
if (map == null || map.isEmpty()) {
return;
}
if (requestProps == null) {
requestProps = new HashMap<String, Object>(16);
}
requestProps.putAll(map);
} | [
"public",
"void",
"addRequestProps",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
")",
"{",
"if",
"(",
"map",
"==",
"null",
"||",
"map",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"requestProps",
"==",
"null",
")",
... | Add request props.
@param map the map | [
"Add",
"request",
"props",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/core/request/SofaRequest.java#L94-L102 |
130,564 | alipay/sofa-rpc | core/api/src/main/java/com/alipay/sofa/rpc/config/ConsumerConfig.java | ConsumerConfig.getMethodInvokeType | public String getMethodInvokeType(String methodName) {
return (String) getMethodConfigValue(methodName, RpcConstants.CONFIG_KEY_INVOKE_TYPE,
getInvokeType());
} | java | public String getMethodInvokeType(String methodName) {
return (String) getMethodConfigValue(methodName, RpcConstants.CONFIG_KEY_INVOKE_TYPE,
getInvokeType());
} | [
"public",
"String",
"getMethodInvokeType",
"(",
"String",
"methodName",
")",
"{",
"return",
"(",
"String",
")",
"getMethodConfigValue",
"(",
"methodName",
",",
"RpcConstants",
".",
"CONFIG_KEY_INVOKE_TYPE",
",",
"getInvokeType",
"(",
")",
")",
";",
"}"
] | Gets the call type corresponding to the method name
@param methodName the method name
@return the call type | [
"Gets",
"the",
"call",
"type",
"corresponding",
"to",
"the",
"method",
"name"
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/api/src/main/java/com/alipay/sofa/rpc/config/ConsumerConfig.java#L911-L914 |
130,565 | alipay/sofa-rpc | core/common/src/main/java/com/alipay/sofa/rpc/common/utils/ClassUtils.java | ClassUtils.isAssignableFrom | public static boolean isAssignableFrom(Class<?> interfaceClass, Class<?> implementClass) {
if (interfaceClass.isAssignableFrom(implementClass)) {
return true;
}
// 跨ClassLoader的情况
String interfaceName = interfaceClass.getCanonicalName();
return implementClass.getCanon... | java | public static boolean isAssignableFrom(Class<?> interfaceClass, Class<?> implementClass) {
if (interfaceClass.isAssignableFrom(implementClass)) {
return true;
}
// 跨ClassLoader的情况
String interfaceName = interfaceClass.getCanonicalName();
return implementClass.getCanon... | [
"public",
"static",
"boolean",
"isAssignableFrom",
"(",
"Class",
"<",
"?",
">",
"interfaceClass",
",",
"Class",
"<",
"?",
">",
"implementClass",
")",
"{",
"if",
"(",
"interfaceClass",
".",
"isAssignableFrom",
"(",
"implementClass",
")",
")",
"{",
"return",
"... | The isAssignableFrom method which can cross multiple classloader.
@param interfaceClass 接口类
@param implementClass 实现类
@return 是否指定类型的实现类
@see Class#isAssignableFrom(Class) | [
"The",
"isAssignableFrom",
"method",
"which",
"can",
"cross",
"multiple",
"classloader",
"."
] | a31406410291e56696185a29c3ba4bd1f54488fd | https://github.com/alipay/sofa-rpc/blob/a31406410291e56696185a29c3ba4bd1f54488fd/core/common/src/main/java/com/alipay/sofa/rpc/common/utils/ClassUtils.java#L319-L327 |
130,566 | springfox/springfox | springfox-schema/src/main/java/springfox/documentation/schema/Annotations.java | Annotations.findPropertyAnnotation | public static <A extends Annotation> Optional<A> findPropertyAnnotation(
BeanPropertyDefinition beanPropertyDefinition,
Class<A> annotationClass) {
return tryGetFieldAnnotation(beanPropertyDefinition, annotationClass)
.map(Optional::of).orElse(tryGetGetterAnnotation(beanPropertyDefinition, anno... | java | public static <A extends Annotation> Optional<A> findPropertyAnnotation(
BeanPropertyDefinition beanPropertyDefinition,
Class<A> annotationClass) {
return tryGetFieldAnnotation(beanPropertyDefinition, annotationClass)
.map(Optional::of).orElse(tryGetGetterAnnotation(beanPropertyDefinition, anno... | [
"public",
"static",
"<",
"A",
"extends",
"Annotation",
">",
"Optional",
"<",
"A",
">",
"findPropertyAnnotation",
"(",
"BeanPropertyDefinition",
"beanPropertyDefinition",
",",
"Class",
"<",
"A",
">",
"annotationClass",
")",
"{",
"return",
"tryGetFieldAnnotation",
"("... | Finds first annotation of the given type on the given bean property and returns it.
Search precedence is getter, setter, field.
@param beanPropertyDefinition introspected jackson property definition
@param annotationClass class object representing desired annotation
@param <A> type that exten... | [
"Finds",
"first",
"annotation",
"of",
"the",
"given",
"type",
"on",
"the",
"given",
"bean",
"property",
"and",
"returns",
"it",
".",
"Search",
"precedence",
"is",
"getter",
"setter",
"field",
"."
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-schema/src/main/java/springfox/documentation/schema/Annotations.java#L46-L53 |
130,567 | springfox/springfox | springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java | ModelContext.inputParam | public static ModelContext inputParam(
String group,
Type type,
DocumentationType documentationType,
AlternateTypeProvider alternateTypeProvider,
GenericTypeNamingStrategy genericNamingStrategy,
Set<Class> ignorableTypes) {
return new ModelContext(
group,
type,
... | java | public static ModelContext inputParam(
String group,
Type type,
DocumentationType documentationType,
AlternateTypeProvider alternateTypeProvider,
GenericTypeNamingStrategy genericNamingStrategy,
Set<Class> ignorableTypes) {
return new ModelContext(
group,
type,
... | [
"public",
"static",
"ModelContext",
"inputParam",
"(",
"String",
"group",
",",
"Type",
"type",
",",
"DocumentationType",
"documentationType",
",",
"AlternateTypeProvider",
"alternateTypeProvider",
",",
"GenericTypeNamingStrategy",
"genericNamingStrategy",
",",
"Set",
"<",
... | Convenience method to provide an new context for an input parameter
@param group - group name of the docket
@param type - type
@param documentationType - for documentation type
@param alternateTypeProvider - alternate type provider
@param genericNamingStrategy - how generic types s... | [
"Convenience",
"method",
"to",
"provide",
"an",
"new",
"context",
"for",
"an",
"input",
"parameter"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java#L134-L150 |
130,568 | springfox/springfox | springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java | ModelContext.returnValue | public static ModelContext returnValue(
String groupName,
Type type,
DocumentationType documentationType,
AlternateTypeProvider alternateTypeProvider,
GenericTypeNamingStrategy genericNamingStrategy,
Set<Class> ignorableTypes) {
return new ModelContext(
groupName,
... | java | public static ModelContext returnValue(
String groupName,
Type type,
DocumentationType documentationType,
AlternateTypeProvider alternateTypeProvider,
GenericTypeNamingStrategy genericNamingStrategy,
Set<Class> ignorableTypes) {
return new ModelContext(
groupName,
... | [
"public",
"static",
"ModelContext",
"returnValue",
"(",
"String",
"groupName",
",",
"Type",
"type",
",",
"DocumentationType",
"documentationType",
",",
"AlternateTypeProvider",
"alternateTypeProvider",
",",
"GenericTypeNamingStrategy",
"genericNamingStrategy",
",",
"Set",
"... | Convenience method to provide an new context for an return parameter
@param groupName - group name of the docket
@param type - type
@param documentationType - for documentation type
@param alternateTypeProvider - alternate type provider
@param genericNamingStrategy - how generic types... | [
"Convenience",
"method",
"to",
"provide",
"an",
"new",
"context",
"for",
"an",
"return",
"parameter"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java#L164-L180 |
130,569 | springfox/springfox | springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java | ModelContext.hasSeenBefore | public boolean hasSeenBefore(ResolvedType resolvedType) {
return seenTypes.contains(resolvedType)
|| seenTypes.contains(new TypeResolver().resolve(resolvedType.getErasedType()))
|| parentHasSeenBefore(resolvedType);
} | java | public boolean hasSeenBefore(ResolvedType resolvedType) {
return seenTypes.contains(resolvedType)
|| seenTypes.contains(new TypeResolver().resolve(resolvedType.getErasedType()))
|| parentHasSeenBefore(resolvedType);
} | [
"public",
"boolean",
"hasSeenBefore",
"(",
"ResolvedType",
"resolvedType",
")",
"{",
"return",
"seenTypes",
".",
"contains",
"(",
"resolvedType",
")",
"||",
"seenTypes",
".",
"contains",
"(",
"new",
"TypeResolver",
"(",
")",
".",
"resolve",
"(",
"resolvedType",
... | Answers the question, has the given type been processed?
@param resolvedType - type to check
@return true or false | [
"Answers",
"the",
"question",
"has",
"the",
"given",
"type",
"been",
"processed?"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spi/src/main/java/springfox/documentation/spi/schema/contexts/ModelContext.java#L199-L203 |
130,570 | springfox/springfox | springfox-bean-validators/src/main/java/springfox/bean/validators/plugins/schema/NotNullAnnotationPlugin.java | NotNullAnnotationPlugin.apply | @Override
public void apply(ModelPropertyContext context) {
Optional<NotNull> notNull = extractAnnotation(context);
if (notNull.isPresent()) {
context.getBuilder().required(notNull.isPresent());
}
} | java | @Override
public void apply(ModelPropertyContext context) {
Optional<NotNull> notNull = extractAnnotation(context);
if (notNull.isPresent()) {
context.getBuilder().required(notNull.isPresent());
}
} | [
"@",
"Override",
"public",
"void",
"apply",
"(",
"ModelPropertyContext",
"context",
")",
"{",
"Optional",
"<",
"NotNull",
">",
"notNull",
"=",
"extractAnnotation",
"(",
"context",
")",
";",
"if",
"(",
"notNull",
".",
"isPresent",
"(",
")",
")",
"{",
"conte... | read NotNull annotation | [
"read",
"NotNull",
"annotation"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-bean-validators/src/main/java/springfox/bean/validators/plugins/schema/NotNullAnnotationPlugin.java#L50-L56 |
130,571 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java | BuilderDefaults.defaultIfAbsent | public static <T> T defaultIfAbsent(T newValue, T defaultValue) {
return ofNullable(newValue)
.orElse(ofNullable(defaultValue)
.orElse(null));
} | java | public static <T> T defaultIfAbsent(T newValue, T defaultValue) {
return ofNullable(newValue)
.orElse(ofNullable(defaultValue)
.orElse(null));
} | [
"public",
"static",
"<",
"T",
">",
"T",
"defaultIfAbsent",
"(",
"T",
"newValue",
",",
"T",
"defaultValue",
")",
"{",
"return",
"ofNullable",
"(",
"newValue",
")",
".",
"orElse",
"(",
"ofNullable",
"(",
"defaultValue",
")",
".",
"orElse",
"(",
"null",
")"... | Returns this default value if the new value is null
@param newValue - new value
@param defaultValue - default value
@param <T> - Represents any type that is nullable
@return Coalesces the newValue and defaultValue to return a non-null value | [
"Returns",
"this",
"default",
"value",
"if",
"the",
"new",
"value",
"is",
"null"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java#L53-L57 |
130,572 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java | BuilderDefaults.nullToEmptyList | public static <T> List<T> nullToEmptyList(Collection<T> newValue) {
if (newValue == null) {
return new ArrayList<>();
}
return new ArrayList<>(newValue);
} | java | public static <T> List<T> nullToEmptyList(Collection<T> newValue) {
if (newValue == null) {
return new ArrayList<>();
}
return new ArrayList<>(newValue);
} | [
"public",
"static",
"<",
"T",
">",
"List",
"<",
"T",
">",
"nullToEmptyList",
"(",
"Collection",
"<",
"T",
">",
"newValue",
")",
"{",
"if",
"(",
"newValue",
"==",
"null",
")",
"{",
"return",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"}",
"return",
"n... | Returns an empty list if the newValue is null
@param newValue - a list
@param <T> - any type
@return non-null list | [
"Returns",
"an",
"empty",
"list",
"if",
"the",
"newValue",
"is",
"null"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java#L66-L71 |
130,573 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java | BuilderDefaults.nullToEmptySet | public static <T> Set<T> nullToEmptySet(Set<T> newValue) {
if (newValue == null) {
return new HashSet<>();
}
return newValue;
} | java | public static <T> Set<T> nullToEmptySet(Set<T> newValue) {
if (newValue == null) {
return new HashSet<>();
}
return newValue;
} | [
"public",
"static",
"<",
"T",
">",
"Set",
"<",
"T",
">",
"nullToEmptySet",
"(",
"Set",
"<",
"T",
">",
"newValue",
")",
"{",
"if",
"(",
"newValue",
"==",
"null",
")",
"{",
"return",
"new",
"HashSet",
"<>",
"(",
")",
";",
"}",
"return",
"newValue",
... | Returns an empty set if the newValue is null
@param newValue - a set
@param <T> - any type
@return non-null set | [
"Returns",
"an",
"empty",
"set",
"if",
"the",
"newValue",
"is",
"null"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java#L110-L115 |
130,574 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java | BuilderDefaults.emptyToNull | public static AllowableValues emptyToNull(AllowableValues newValue, AllowableValues current) {
if (newValue != null) {
if (newValue instanceof AllowableListValues) {
return defaultIfAbsent(emptyListValuesToNull((AllowableListValues) newValue), current);
} else {
return defaultIfAbsent(ne... | java | public static AllowableValues emptyToNull(AllowableValues newValue, AllowableValues current) {
if (newValue != null) {
if (newValue instanceof AllowableListValues) {
return defaultIfAbsent(emptyListValuesToNull((AllowableListValues) newValue), current);
} else {
return defaultIfAbsent(ne... | [
"public",
"static",
"AllowableValues",
"emptyToNull",
"(",
"AllowableValues",
"newValue",
",",
"AllowableValues",
"current",
")",
"{",
"if",
"(",
"newValue",
"!=",
"null",
")",
"{",
"if",
"(",
"newValue",
"instanceof",
"AllowableListValues",
")",
"{",
"return",
... | Retains current allowable values if then new value is null
@param newValue - new value
@param current - existing values
@return the appropriate value | [
"Retains",
"current",
"allowable",
"values",
"if",
"then",
"new",
"value",
"is",
"null"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/BuilderDefaults.java#L151-L160 |
130,575 | springfox/springfox | springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/Docket.java | Docket.additionalModels | public Docket additionalModels(ResolvedType first, ResolvedType... remaining) {
additionalModels.add(first);
additionalModels.addAll(Arrays.stream(remaining).collect(toSet()));
return this;
} | java | public Docket additionalModels(ResolvedType first, ResolvedType... remaining) {
additionalModels.add(first);
additionalModels.addAll(Arrays.stream(remaining).collect(toSet()));
return this;
} | [
"public",
"Docket",
"additionalModels",
"(",
"ResolvedType",
"first",
",",
"ResolvedType",
"...",
"remaining",
")",
"{",
"additionalModels",
".",
"add",
"(",
"first",
")",
";",
"additionalModels",
".",
"addAll",
"(",
"Arrays",
".",
"stream",
"(",
"remaining",
... | Method to add additional models that are not part of any annotation or are perhaps implicit
@param first - at least one is required
@param remaining - possible collection of more
@return on-going docket
@since 2.4.0 | [
"Method",
"to",
"add",
"additional",
"models",
"that",
"are",
"not",
"part",
"of",
"any",
"annotation",
"or",
"are",
"perhaps",
"implicit"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/Docket.java#L409-L413 |
130,576 | springfox/springfox | springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/Docket.java | Docket.tags | public Docket tags(Tag first, Tag... remaining) {
tags.add(first);
tags.addAll(Arrays.stream(remaining).collect(toSet()));
return this;
} | java | public Docket tags(Tag first, Tag... remaining) {
tags.add(first);
tags.addAll(Arrays.stream(remaining).collect(toSet()));
return this;
} | [
"public",
"Docket",
"tags",
"(",
"Tag",
"first",
",",
"Tag",
"...",
"remaining",
")",
"{",
"tags",
".",
"add",
"(",
"first",
")",
";",
"tags",
".",
"addAll",
"(",
"Arrays",
".",
"stream",
"(",
"remaining",
")",
".",
"collect",
"(",
"toSet",
"(",
")... | Method to add global tags to the docket
@param first - at least one tag is required to use this method
@param remaining - remaining tags
@return this Docket | [
"Method",
"to",
"add",
"global",
"tags",
"to",
"the",
"docket"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/Docket.java#L422-L426 |
130,577 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.produces | public ApiListingBuilder produces(Set<String> mediaTypes) {
if (mediaTypes != null) {
this.produces = new HashSet<>(mediaTypes);
}
return this;
} | java | public ApiListingBuilder produces(Set<String> mediaTypes) {
if (mediaTypes != null) {
this.produces = new HashSet<>(mediaTypes);
}
return this;
} | [
"public",
"ApiListingBuilder",
"produces",
"(",
"Set",
"<",
"String",
">",
"mediaTypes",
")",
"{",
"if",
"(",
"mediaTypes",
"!=",
"null",
")",
"{",
"this",
".",
"produces",
"=",
"new",
"HashSet",
"<>",
"(",
"mediaTypes",
")",
";",
"}",
"return",
"this",
... | Replaces the existing media types with new entries that this documentation produces
@param mediaTypes - new media types
@return this | [
"Replaces",
"the",
"existing",
"media",
"types",
"with",
"new",
"entries",
"that",
"this",
"documentation",
"produces"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L111-L116 |
130,578 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.consumes | public ApiListingBuilder consumes(Set<String> mediaTypes) {
if (mediaTypes != null) {
this.consumes = new HashSet<>(mediaTypes);
}
return this;
} | java | public ApiListingBuilder consumes(Set<String> mediaTypes) {
if (mediaTypes != null) {
this.consumes = new HashSet<>(mediaTypes);
}
return this;
} | [
"public",
"ApiListingBuilder",
"consumes",
"(",
"Set",
"<",
"String",
">",
"mediaTypes",
")",
"{",
"if",
"(",
"mediaTypes",
"!=",
"null",
")",
"{",
"this",
".",
"consumes",
"=",
"new",
"HashSet",
"<>",
"(",
"mediaTypes",
")",
";",
"}",
"return",
"this",
... | Replaces the existing media types with new entries that this documentation consumes
@param mediaTypes - new media types
@return this | [
"Replaces",
"the",
"existing",
"media",
"types",
"with",
"new",
"entries",
"that",
"this",
"documentation",
"consumes"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L124-L129 |
130,579 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.securityReferences | public ApiListingBuilder securityReferences(List<SecurityReference> securityReferences) {
if (securityReferences != null) {
this.securityReferences = new ArrayList<>(securityReferences);
}
return this;
} | java | public ApiListingBuilder securityReferences(List<SecurityReference> securityReferences) {
if (securityReferences != null) {
this.securityReferences = new ArrayList<>(securityReferences);
}
return this;
} | [
"public",
"ApiListingBuilder",
"securityReferences",
"(",
"List",
"<",
"SecurityReference",
">",
"securityReferences",
")",
"{",
"if",
"(",
"securityReferences",
"!=",
"null",
")",
"{",
"this",
".",
"securityReferences",
"=",
"new",
"ArrayList",
"<>",
"(",
"securi... | Updates the references to the security definitions
@param securityReferences - security definition references
@return this | [
"Updates",
"the",
"references",
"to",
"the",
"security",
"definitions"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L183-L188 |
130,580 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.apis | public ApiListingBuilder apis(List<ApiDescription> apis) {
if (apis != null) {
this.apis = apis.stream().sorted(descriptionOrdering).collect(toList());
}
return this;
} | java | public ApiListingBuilder apis(List<ApiDescription> apis) {
if (apis != null) {
this.apis = apis.stream().sorted(descriptionOrdering).collect(toList());
}
return this;
} | [
"public",
"ApiListingBuilder",
"apis",
"(",
"List",
"<",
"ApiDescription",
">",
"apis",
")",
"{",
"if",
"(",
"apis",
"!=",
"null",
")",
"{",
"this",
".",
"apis",
"=",
"apis",
".",
"stream",
"(",
")",
".",
"sorted",
"(",
"descriptionOrdering",
")",
".",... | Updates the apis
@param apis - apis
@return this | [
"Updates",
"the",
"apis"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L196-L201 |
130,581 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.models | public ApiListingBuilder models(Map<String, Model> models) {
this.models.putAll(nullToEmptyMap(models));
return this;
} | java | public ApiListingBuilder models(Map<String, Model> models) {
this.models.putAll(nullToEmptyMap(models));
return this;
} | [
"public",
"ApiListingBuilder",
"models",
"(",
"Map",
"<",
"String",
",",
"Model",
">",
"models",
")",
"{",
"this",
".",
"models",
".",
"putAll",
"(",
"nullToEmptyMap",
"(",
"models",
")",
")",
";",
"return",
"this",
";",
"}"
] | Adds to the models collection
@param models - model entries by name
@return this | [
"Adds",
"to",
"the",
"models",
"collection"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L209-L212 |
130,582 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java | ApiListingBuilder.availableTags | public ApiListingBuilder availableTags(Set<Tag> availableTags) {
this.tagLookup.putAll(nullToEmptySet(availableTags).stream().collect(toMap(Tag::getName, identity())));
return this;
} | java | public ApiListingBuilder availableTags(Set<Tag> availableTags) {
this.tagLookup.putAll(nullToEmptySet(availableTags).stream().collect(toMap(Tag::getName, identity())));
return this;
} | [
"public",
"ApiListingBuilder",
"availableTags",
"(",
"Set",
"<",
"Tag",
">",
"availableTags",
")",
"{",
"this",
".",
"tagLookup",
".",
"putAll",
"(",
"nullToEmptySet",
"(",
"availableTags",
")",
".",
"stream",
"(",
")",
".",
"collect",
"(",
"toMap",
"(",
"... | Globally configured tags
@param availableTags - tags available for services and operations
@return this | [
"Globally",
"configured",
"tags"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiListingBuilder.java#L264-L267 |
130,583 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/PathSelectors.java | PathSelectors.regex | public static Predicate<String> regex(final String pathRegex) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
return input.matches(pathRegex);
}
};
} | java | public static Predicate<String> regex(final String pathRegex) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
return input.matches(pathRegex);
}
};
} | [
"public",
"static",
"Predicate",
"<",
"String",
">",
"regex",
"(",
"final",
"String",
"pathRegex",
")",
"{",
"return",
"new",
"Predicate",
"<",
"String",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"boolean",
"test",
"(",
"String",
"input",
")",
"{",
... | Predicate that evaluates the supplied regular expression
@param pathRegex - regex
@return predicate that matches a particular regex | [
"Predicate",
"that",
"evaluates",
"the",
"supplied",
"regular",
"expression"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/PathSelectors.java#L57-L64 |
130,584 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/PathSelectors.java | PathSelectors.ant | public static Predicate<String> ant(final String antPattern) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
AntPathMatcher matcher = new AntPathMatcher();
return matcher.match(antPattern, input);
}
};
} | java | public static Predicate<String> ant(final String antPattern) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
AntPathMatcher matcher = new AntPathMatcher();
return matcher.match(antPattern, input);
}
};
} | [
"public",
"static",
"Predicate",
"<",
"String",
">",
"ant",
"(",
"final",
"String",
"antPattern",
")",
"{",
"return",
"new",
"Predicate",
"<",
"String",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"boolean",
"test",
"(",
"String",
"input",
")",
"{",
... | Predicate that evaluates the supplied ant pattern
@param antPattern - ant Pattern
@return predicate that matches a particular ant pattern | [
"Predicate",
"that",
"evaluates",
"the",
"supplied",
"ant",
"pattern"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/PathSelectors.java#L72-L80 |
130,585 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ModelBuilder.java | ModelBuilder.properties | public ModelBuilder properties(Map<String, ModelProperty> properties) {
this.properties.putAll(nullToEmptyMap(properties));
return this;
} | java | public ModelBuilder properties(Map<String, ModelProperty> properties) {
this.properties.putAll(nullToEmptyMap(properties));
return this;
} | [
"public",
"ModelBuilder",
"properties",
"(",
"Map",
"<",
"String",
",",
"ModelProperty",
">",
"properties",
")",
"{",
"this",
".",
"properties",
".",
"putAll",
"(",
"nullToEmptyMap",
"(",
"properties",
")",
")",
";",
"return",
"this",
";",
"}"
] | Updates the model properties
@param properties - map of properties by name
@return this | [
"Updates",
"the",
"model",
"properties"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ModelBuilder.java#L89-L92 |
130,586 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ModelBuilder.java | ModelBuilder.subTypes | public ModelBuilder subTypes(List<ModelReference> subTypes) {
if (subTypes != null) {
this.subTypes.addAll(subTypes);
}
return this;
} | java | public ModelBuilder subTypes(List<ModelReference> subTypes) {
if (subTypes != null) {
this.subTypes.addAll(subTypes);
}
return this;
} | [
"public",
"ModelBuilder",
"subTypes",
"(",
"List",
"<",
"ModelReference",
">",
"subTypes",
")",
"{",
"if",
"(",
"subTypes",
"!=",
"null",
")",
"{",
"this",
".",
"subTypes",
".",
"addAll",
"(",
"subTypes",
")",
";",
"}",
"return",
"this",
";",
"}"
] | Updates the subclasses for this model.
@param subTypes - Models inheriting from this model
@return this
@since 2.8.1 We changed the subType to be a model refers | [
"Updates",
"the",
"subclasses",
"for",
"this",
"model",
"."
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ModelBuilder.java#L134-L139 |
130,587 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/DocumentationBuilder.java | DocumentationBuilder.apiListingsByResourceGroupName | public DocumentationBuilder apiListingsByResourceGroupName(Map<String, List<ApiListing>> apiListings) {
nullToEmptyMultimap(apiListings).entrySet().stream().forEachOrdered(entry -> {
List<ApiListing> list;
if (this.apiListings.containsKey(entry.getKey())) {
list = this.apiListings.get(entry.getK... | java | public DocumentationBuilder apiListingsByResourceGroupName(Map<String, List<ApiListing>> apiListings) {
nullToEmptyMultimap(apiListings).entrySet().stream().forEachOrdered(entry -> {
List<ApiListing> list;
if (this.apiListings.containsKey(entry.getKey())) {
list = this.apiListings.get(entry.getK... | [
"public",
"DocumentationBuilder",
"apiListingsByResourceGroupName",
"(",
"Map",
"<",
"String",
",",
"List",
"<",
"ApiListing",
">",
">",
"apiListings",
")",
"{",
"nullToEmptyMultimap",
"(",
"apiListings",
")",
".",
"entrySet",
"(",
")",
".",
"stream",
"(",
")",
... | Updates the map with new entries
@param apiListings - entries to add to the existing documentation
@return this | [
"Updates",
"the",
"map",
"with",
"new",
"entries"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/DocumentationBuilder.java#L68-L81 |
130,588 | springfox/springfox | springfox-spring-integration/src/main/java/springfox/documentation/spring/web/plugins/SpringRestDocsOperationBuilderPlugin.java | SpringRestDocsOperationBuilderPlugin.read | protected Set<ResponseMessage> read(OperationContext context) {
Set<ResponseMessage> ret;
try {
PathMatchingResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
Resource[] resources = resourceResolver.getResources(
"classpath*:"
+ context.getN... | java | protected Set<ResponseMessage> read(OperationContext context) {
Set<ResponseMessage> ret;
try {
PathMatchingResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
Resource[] resources = resourceResolver.getResources(
"classpath*:"
+ context.getN... | [
"protected",
"Set",
"<",
"ResponseMessage",
">",
"read",
"(",
"OperationContext",
"context",
")",
"{",
"Set",
"<",
"ResponseMessage",
">",
"ret",
";",
"try",
"{",
"PathMatchingResourcePatternResolver",
"resourceResolver",
"=",
"new",
"PathMatchingResourcePatternResolver... | Provides response messages with examples for given single operation context.
@param context representing an operation
@return response messages. | [
"Provides",
"response",
"messages",
"with",
"examples",
"for",
"given",
"single",
"operation",
"context",
"."
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spring-integration/src/main/java/springfox/documentation/spring/web/plugins/SpringRestDocsOperationBuilderPlugin.java#L79-L109 |
130,589 | springfox/springfox | springfox-spi/src/main/java/springfox/documentation/spi/service/contexts/SecurityContext.java | SecurityContext.securityForPath | @Deprecated
public List<SecurityReference> securityForPath(String path) {
if (selector.test(path)) {
return securityReferences;
}
return new ArrayList<SecurityReference>();
} | java | @Deprecated
public List<SecurityReference> securityForPath(String path) {
if (selector.test(path)) {
return securityReferences;
}
return new ArrayList<SecurityReference>();
} | [
"@",
"Deprecated",
"public",
"List",
"<",
"SecurityReference",
">",
"securityForPath",
"(",
"String",
"path",
")",
"{",
"if",
"(",
"selector",
".",
"test",
"(",
"path",
")",
")",
"{",
"return",
"securityReferences",
";",
"}",
"return",
"new",
"ArrayList",
... | Use securityForOperation instead
@since 2.8.1
@param path path to secure
@return list of applicable security references
@deprecated {@link SecurityContext#securityForOperation} | [
"Use",
"securityForOperation",
"instead"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-spi/src/main/java/springfox/documentation/spi/service/contexts/SecurityContext.java#L67-L73 |
130,590 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/schema/AlternateTypeRule.java | AlternateTypeRule.alternateFor | public ResolvedType alternateFor(ResolvedType type) {
if (appliesTo(type)) {
if (hasWildcards(original)) {
return replaceWildcardsFrom(WildcardType.collectReplaceables(type, original), alternate);
} else {
return alternate;
}
}
return type;
} | java | public ResolvedType alternateFor(ResolvedType type) {
if (appliesTo(type)) {
if (hasWildcards(original)) {
return replaceWildcardsFrom(WildcardType.collectReplaceables(type, original), alternate);
} else {
return alternate;
}
}
return type;
} | [
"public",
"ResolvedType",
"alternateFor",
"(",
"ResolvedType",
"type",
")",
"{",
"if",
"(",
"appliesTo",
"(",
"type",
")",
")",
"{",
"if",
"(",
"hasWildcards",
"(",
"original",
")",
")",
"{",
"return",
"replaceWildcardsFrom",
"(",
"WildcardType",
".",
"colle... | Provides alternate for supplier type.
@param type the type
@return the alternate for the type | [
"Provides",
"alternate",
"for",
"supplier",
"type",
"."
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/schema/AlternateTypeRule.java#L61-L70 |
130,591 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/schema/AlternateTypeRule.java | AlternateTypeRule.appliesTo | public boolean appliesTo(ResolvedType type) {
return hasWildcards(original)
&& wildcardMatch(type, original)
|| exactMatch(original, type);
} | java | public boolean appliesTo(ResolvedType type) {
return hasWildcards(original)
&& wildcardMatch(type, original)
|| exactMatch(original, type);
} | [
"public",
"boolean",
"appliesTo",
"(",
"ResolvedType",
"type",
")",
"{",
"return",
"hasWildcards",
"(",
"original",
")",
"&&",
"wildcardMatch",
"(",
"type",
",",
"original",
")",
"||",
"exactMatch",
"(",
"original",
",",
"type",
")",
";",
"}"
] | Check if an alternate applies to type.
@param type the source
@return the boolean | [
"Check",
"if",
"an",
"alternate",
"applies",
"to",
"type",
"."
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/schema/AlternateTypeRule.java#L78-L82 |
130,592 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/OperationBuilder.java | OperationBuilder.parameters | public OperationBuilder parameters(final List<Parameter> parameters) {
List<Parameter> source = nullToEmptyList(parameters);
List<Parameter> destination = new ArrayList<>(this.parameters);
ParameterMerger merger = new ParameterMerger(destination, source);
this.parameters = new ArrayList<>(merger.merged(... | java | public OperationBuilder parameters(final List<Parameter> parameters) {
List<Parameter> source = nullToEmptyList(parameters);
List<Parameter> destination = new ArrayList<>(this.parameters);
ParameterMerger merger = new ParameterMerger(destination, source);
this.parameters = new ArrayList<>(merger.merged(... | [
"public",
"OperationBuilder",
"parameters",
"(",
"final",
"List",
"<",
"Parameter",
">",
"parameters",
")",
"{",
"List",
"<",
"Parameter",
">",
"source",
"=",
"nullToEmptyList",
"(",
"parameters",
")",
";",
"List",
"<",
"Parameter",
">",
"destination",
"=",
... | Updates the input parameters this operation needs
@param parameters - input parameter definitions
@return this | [
"Updates",
"the",
"input",
"parameters",
"this",
"operation",
"needs"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/OperationBuilder.java#L197-L203 |
130,593 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/ApiDescriptionBuilder.java | ApiDescriptionBuilder.operations | public ApiDescriptionBuilder operations(List<Operation> operations) {
if (operations != null) {
this.operations = operations.stream().sorted(operationOrdering).collect(toList());
}
return this;
} | java | public ApiDescriptionBuilder operations(List<Operation> operations) {
if (operations != null) {
this.operations = operations.stream().sorted(operationOrdering).collect(toList());
}
return this;
} | [
"public",
"ApiDescriptionBuilder",
"operations",
"(",
"List",
"<",
"Operation",
">",
"operations",
")",
"{",
"if",
"(",
"operations",
"!=",
"null",
")",
"{",
"this",
".",
"operations",
"=",
"operations",
".",
"stream",
"(",
")",
".",
"sorted",
"(",
"operat... | Updates the operations to the api operation
@param operations - operations for each of the http methods for that path
@return this @see springfox.documentation.builders.ApiDescriptionBuilder | [
"Updates",
"the",
"operations",
"to",
"the",
"api",
"operation"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/ApiDescriptionBuilder.java#L75-L80 |
130,594 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java | RequestHandlerSelectors.withMethodAnnotation | public static Predicate<RequestHandler> withMethodAnnotation(final Class<? extends Annotation> annotation) {
return input -> input.isAnnotatedWith(annotation);
} | java | public static Predicate<RequestHandler> withMethodAnnotation(final Class<? extends Annotation> annotation) {
return input -> input.isAnnotatedWith(annotation);
} | [
"public",
"static",
"Predicate",
"<",
"RequestHandler",
">",
"withMethodAnnotation",
"(",
"final",
"Class",
"<",
"?",
"extends",
"Annotation",
">",
"annotation",
")",
"{",
"return",
"input",
"->",
"input",
".",
"isAnnotatedWith",
"(",
"annotation",
")",
";",
"... | Predicate that matches RequestHandler with handlers methods annotated with given annotation
@param annotation - annotation to check
@return this | [
"Predicate",
"that",
"matches",
"RequestHandler",
"with",
"handlers",
"methods",
"annotated",
"with",
"given",
"annotation"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java#L61-L63 |
130,595 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java | RequestHandlerSelectors.withClassAnnotation | public static Predicate<RequestHandler> withClassAnnotation(final Class<? extends Annotation> annotation) {
return input -> declaringClass(input).map(annotationPresent(annotation)).orElse(false);
} | java | public static Predicate<RequestHandler> withClassAnnotation(final Class<? extends Annotation> annotation) {
return input -> declaringClass(input).map(annotationPresent(annotation)).orElse(false);
} | [
"public",
"static",
"Predicate",
"<",
"RequestHandler",
">",
"withClassAnnotation",
"(",
"final",
"Class",
"<",
"?",
"extends",
"Annotation",
">",
"annotation",
")",
"{",
"return",
"input",
"->",
"declaringClass",
"(",
"input",
")",
".",
"map",
"(",
"annotatio... | Predicate that matches RequestHandler with given annotation on the declaring class of the handler method
@param annotation - annotation to check
@return this | [
"Predicate",
"that",
"matches",
"RequestHandler",
"with",
"given",
"annotation",
"on",
"the",
"declaring",
"class",
"of",
"the",
"handler",
"method"
] | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java#L71-L73 |
130,596 | springfox/springfox | springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java | RequestHandlerSelectors.basePackage | public static Predicate<RequestHandler> basePackage(final String basePackage) {
return input -> declaringClass(input).map(handlerPackage(basePackage)).orElse(true);
} | java | public static Predicate<RequestHandler> basePackage(final String basePackage) {
return input -> declaringClass(input).map(handlerPackage(basePackage)).orElse(true);
} | [
"public",
"static",
"Predicate",
"<",
"RequestHandler",
">",
"basePackage",
"(",
"final",
"String",
"basePackage",
")",
"{",
"return",
"input",
"->",
"declaringClass",
"(",
"input",
")",
".",
"map",
"(",
"handlerPackage",
"(",
"basePackage",
")",
")",
".",
"... | Predicate that matches RequestHandler with given base package name for the class of the handler method.
This predicate includes all request handlers matching the provided basePackage
@param basePackage - base package of the classes
@return this | [
"Predicate",
"that",
"matches",
"RequestHandler",
"with",
"given",
"base",
"package",
"name",
"for",
"the",
"class",
"of",
"the",
"handler",
"method",
".",
"This",
"predicate",
"includes",
"all",
"request",
"handlers",
"matching",
"the",
"provided",
"basePackage"
... | e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7 | https://github.com/springfox/springfox/blob/e40e2d6f4b345ffa35cd5c0ca7a12589036acaf7/springfox-core/src/main/java/springfox/documentation/builders/RequestHandlerSelectors.java#L91-L93 |
130,597 | azkaban/azkaban | azkaban-solo-server/src/main/java/azkaban/soloserver/AzkabanSingleServer.java | AzkabanSingleServer.prepareDefaultConf | private static String[] prepareDefaultConf() throws IOException {
final File templateFolder = new File("test/local-conf-templates");
final File localConfFolder = new File("local/conf");
if (!localConfFolder.exists()) {
FileUtils.copyDirectory(templateFolder, localConfFolder.getParentFile());
log... | java | private static String[] prepareDefaultConf() throws IOException {
final File templateFolder = new File("test/local-conf-templates");
final File localConfFolder = new File("local/conf");
if (!localConfFolder.exists()) {
FileUtils.copyDirectory(templateFolder, localConfFolder.getParentFile());
log... | [
"private",
"static",
"String",
"[",
"]",
"prepareDefaultConf",
"(",
")",
"throws",
"IOException",
"{",
"final",
"File",
"templateFolder",
"=",
"new",
"File",
"(",
"\"test/local-conf-templates\"",
")",
";",
"final",
"File",
"localConfFolder",
"=",
"new",
"File",
... | To enable "run out of the box for testing". | [
"To",
"enable",
"run",
"out",
"of",
"the",
"box",
"for",
"testing",
"."
] | d258ea7d6e66807c6eff79c5325d6d3443618dff | https://github.com/azkaban/azkaban/blob/d258ea7d6e66807c6eff79c5325d6d3443618dff/azkaban-solo-server/src/main/java/azkaban/soloserver/AzkabanSingleServer.java#L111-L120 |
130,598 | azkaban/azkaban | azkaban-db/src/main/java/azkaban/db/DatabaseOperator.java | DatabaseOperator.transaction | public <T> T transaction(final SQLTransaction<T> operations) throws SQLException {
Connection conn = null;
try {
conn = this.queryRunner.getDataSource().getConnection();
conn.setAutoCommit(false);
final DatabaseTransOperator transOperator = new DatabaseTransOperator(this.queryRunner,
... | java | public <T> T transaction(final SQLTransaction<T> operations) throws SQLException {
Connection conn = null;
try {
conn = this.queryRunner.getDataSource().getConnection();
conn.setAutoCommit(false);
final DatabaseTransOperator transOperator = new DatabaseTransOperator(this.queryRunner,
... | [
"public",
"<",
"T",
">",
"T",
"transaction",
"(",
"final",
"SQLTransaction",
"<",
"T",
">",
"operations",
")",
"throws",
"SQLException",
"{",
"Connection",
"conn",
"=",
"null",
";",
"try",
"{",
"conn",
"=",
"this",
".",
"queryRunner",
".",
"getDataSource",... | Provide a way to allow users define custom SQL operations without relying on fixed SQL
interface. The common use case is to group a sequence of SQL operations without commit every
time.
@param operations A sequence of DB operations
@param <T> The type of object that the operations returns. Note that T could be null
@r... | [
"Provide",
"a",
"way",
"to",
"allow",
"users",
"define",
"custom",
"SQL",
"operations",
"without",
"relying",
"on",
"fixed",
"SQL",
"interface",
".",
"The",
"common",
"use",
"case",
"is",
"to",
"group",
"a",
"sequence",
"of",
"SQL",
"operations",
"without",
... | d258ea7d6e66807c6eff79c5325d6d3443618dff | https://github.com/azkaban/azkaban/blob/d258ea7d6e66807c6eff79c5325d6d3443618dff/azkaban-db/src/main/java/azkaban/db/DatabaseOperator.java#L88-L108 |
130,599 | azkaban/azkaban | azkaban-common/src/main/java/azkaban/scheduler/TriggerBasedScheduleLoader.java | TriggerBasedScheduleLoader.getBasicTimeChecker | private BasicTimeChecker getBasicTimeChecker(final Map<String, ConditionChecker> checkers) {
for (final ConditionChecker checker : checkers.values()) {
if (checker.getType().equals(BasicTimeChecker.type)) {
return (BasicTimeChecker) checker;
}
}
return null;
} | java | private BasicTimeChecker getBasicTimeChecker(final Map<String, ConditionChecker> checkers) {
for (final ConditionChecker checker : checkers.values()) {
if (checker.getType().equals(BasicTimeChecker.type)) {
return (BasicTimeChecker) checker;
}
}
return null;
} | [
"private",
"BasicTimeChecker",
"getBasicTimeChecker",
"(",
"final",
"Map",
"<",
"String",
",",
"ConditionChecker",
">",
"checkers",
")",
"{",
"for",
"(",
"final",
"ConditionChecker",
"checker",
":",
"checkers",
".",
"values",
"(",
")",
")",
"{",
"if",
"(",
"... | expirecheckers or triggerCheckers only have BasicTimeChecker today. This should be refactored in future. | [
"expirecheckers",
"or",
"triggerCheckers",
"only",
"have",
"BasicTimeChecker",
"today",
".",
"This",
"should",
"be",
"refactored",
"in",
"future",
"."
] | d258ea7d6e66807c6eff79c5325d6d3443618dff | https://github.com/azkaban/azkaban/blob/d258ea7d6e66807c6eff79c5325d6d3443618dff/azkaban-common/src/main/java/azkaban/scheduler/TriggerBasedScheduleLoader.java#L170-L177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.