repo stringclasses 1k
values | file_url stringlengths 96 373 | file_path stringlengths 11 294 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 6
values | commit_sha stringclasses 1k
values | retrieved_at stringdate 2026-01-04 14:45:56 2026-01-04 18:30:23 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/LogUtilTest.java | core/src/test/java/com/taobao/arthas/core/util/LogUtilTest.java | package com.taobao.arthas.core.util;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Iterator;
import java.util.Properties;
import org.assertj.core.api.Assertions;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Tempor... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/LongStackTest.java | core/src/test/java/com/taobao/arthas/core/util/LongStackTest.java | package com.taobao.arthas.core.util;
import org.junit.Assert;
import org.junit.Test;
/**
*
* @author hengyunabc 2019-11-20
*
*/
public class LongStackTest {
@Test
public void test() {
long[] stack = new long[101];
ThreadLocalWatch.push(stack, 1);
ThreadLocalWatch.push(stack, 2);... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/matcher/RegexMatcherTest.java | core/src/test/java/com/taobao/arthas/core/util/matcher/RegexMatcherTest.java | package com.taobao.arthas.core.util.matcher;
import org.junit.Assert;
import org.junit.Test;
/**
* @author earayu
*/
public class RegexMatcherTest {
@Test
public void testMatchingWithNullInputs(){
Assert.assertFalse(new RegexMatcher(null).matching(null));
Assert.assertFalse(new RegexMatcher... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/matcher/FalseMatcherTest.java | core/src/test/java/com/taobao/arthas/core/util/matcher/FalseMatcherTest.java | package com.taobao.arthas.core.util.matcher;
import org.junit.Assert;
import org.junit.Test;
/**
* @author earayu
*/
public class FalseMatcherTest {
@Test
public void testMatching(){
Assert.assertFalse(new FalseMatcher<String>().matching(null));
Assert.assertFalse(new FalseMatcher<Integer>(... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/matcher/EqualsMatcherTest.java | core/src/test/java/com/taobao/arthas/core/util/matcher/EqualsMatcherTest.java | package com.taobao.arthas.core.util.matcher;
import org.junit.Assert;
import org.junit.Test;
/**
* @author earayu
*/
public class EqualsMatcherTest {
@Test
public void testMatching(){
Assert.assertTrue(new EqualsMatcher<String>(null).matching(null));
Assert.assertTrue(new EqualsMatcher<Stri... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/matcher/WildcardMatcherTest.java | core/src/test/java/com/taobao/arthas/core/util/matcher/WildcardMatcherTest.java | package com.taobao.arthas.core.util.matcher;
import org.junit.Assert;
import org.junit.Test;
/**
* @author earayu
*/
public class WildcardMatcherTest {
@Test
public void testMatching(){
Assert.assertFalse(new WildcardMatcher(null).matching(null));
Assert.assertFalse(new WildcardMatcher(null... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/util/matcher/TrueMatcherTest.java | core/src/test/java/com/taobao/arthas/core/util/matcher/TrueMatcherTest.java | package com.taobao.arthas.core.util.matcher;
import org.junit.Assert;
import org.junit.Test;
/**
* @author earayu
*/
public class TrueMatcherTest {
@Test
public void testMatching(){
Assert.assertTrue(new TrueMatcher<String>().matching(null));
Assert.assertTrue(new TrueMatcher<Integer>().mat... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/env/ArthasEnvironmentTest.java | core/src/test/java/com/taobao/arthas/core/env/ArthasEnvironmentTest.java | package com.taobao.arthas.core.env;
import java.util.Properties;
import org.assertj.core.api.Assertions;
import org.junit.Test;
/**
*
* @author hengyunabc 2019-12-27
*
*/
public class ArthasEnvironmentTest {
@Test
public void test() {
ArthasEnvironment arthasEnvironment = new ArthasEnvironment(... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/advisor/SpyImplTest.java | core/src/test/java/com/taobao/arthas/core/advisor/SpyImplTest.java | package com.taobao.arthas.core.advisor;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import com.taobao.arthas.core.util.StringUtils;
/**
*
* @author hengyunabc 2021-07-14
*
*/
public class SpyImplTest {
@Test
public void testSplitMethodInfo() throws Throwable {
Assertions.asse... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/advisor/EnhancerTest.java | core/src/test/java/com/taobao/arthas/core/advisor/EnhancerTest.java | package com.taobao.arthas.core.advisor;
import java.arthas.SpyAPI;
import java.lang.instrument.Instrumentation;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.mockito.Mockito;
import com.alibaba.bytekit.utils.AsmUtils;
import com.alibaba.bytekit.utils.Decompiler;
import com.alibaba.deps.or... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/klass100/ClassLoaderCommandUrlClassesTest.java | core/src/test/java/com/taobao/arthas/core/command/klass100/ClassLoaderCommandUrlClassesTest.java | package com.taobao.arthas.core.command.klass100;
import org.junit.Assert;
import org.junit.Test;
public class ClassLoaderCommandUrlClassesTest {
@Test
public void testGuessJarNameForNestedJarUrl() {
String url = "jar:file:/app.jar!/BOOT-INF/lib/spring-core-5.3.0.jar!/";
Assert.assertEquals("s... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/basic1000/GrepCommandTest.java | core/src/test/java/com/taobao/arthas/core/command/basic1000/GrepCommandTest.java | package com.taobao.arthas.core.command.basic1000;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.taobao.middleware.cli.CLI;
import com.taobao.middleware.cli.CommandLine;
import com.taobao.middleware.cli.annotations.CLIConfigurator;
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/express/OgnlTest.java | core/src/test/java/com/taobao/arthas/core/command/express/OgnlTest.java | package com.taobao.arthas.core.command.express;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.taobao.arthas.core.advisor.Advice;
import ognl.OgnlException;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* https://github.com/alibaba/arthas/issues/2954
*/
publ... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/express/FlowContext.java | core/src/test/java/com/taobao/arthas/core/command/express/FlowContext.java | package com.taobao.arthas.core.command.express;
public class FlowContext {
private FlowAttribute flowAttribute = new FlowAttribute();
public FlowAttribute getFlowAttribute() {
return this.flowAttribute ;
}
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/express/OgnlExpressTest.java | core/src/test/java/com/taobao/arthas/core/command/express/OgnlExpressTest.java | package com.taobao.arthas.core.command.express;
import org.junit.Assert;
import org.junit.Test;
public class OgnlExpressTest {
@Test
public void testValidOgnlExpr1() throws ExpressException {
Express unpooledExpress = ExpressFactory.unpooledExpress(OgnlExpressTest.class.getClassLoader());
Ass... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/command/express/FlowAttribute.java | core/src/test/java/com/taobao/arthas/core/command/express/FlowAttribute.java | package com.taobao.arthas.core.command.express;
public class FlowAttribute {
private String bxApp = "aaa";
public String getBxApp() {
return this.bxApp ;
}
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/bytecode/TestHelper.java | core/src/test/java/com/taobao/arthas/core/bytecode/TestHelper.java | package com.taobao.arthas.core.bytecode;
import java.io.File;
import java.io.IOException;
import java.lang.instrument.Instrumentation;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.JarFile;
import org.zeroturnaround.zip.ZipUtil;
import com.alibaba.deps.org.objectweb.asm.tree.ClassNode;
impo... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/view/ObjectViewTest.java | core/src/test/java/com/taobao/arthas/core/view/ObjectViewTest.java | package com.taobao.arthas.core.view;
import com.taobao.arthas.core.GlobalOptions;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
/**
* @author ralf0131 2018-07-... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/security/SecurityAuthenticatorImplTest.java | core/src/test/java/com/taobao/arthas/core/security/SecurityAuthenticatorImplTest.java | package com.taobao.arthas.core.security;
import java.security.Principal;
import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;
import org.assertj.core.api.Assertions;
import org.junit.Test;
/**
*
* @author hengyunabc 2021-03-04
*
*/
public class SecurityAuthenticatorImplTest {
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/server/ArthasBootstrapTest.java | core/src/test/java/com/taobao/arthas/core/server/ArthasBootstrapTest.java | package com.taobao.arthas.core.server;
import static org.assertj.core.api.Assertions.assertThat;
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Field;
import org.jboss.modules.ModuleClassLoader;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import com.alibaba.byt... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/ErrorProperties.java | core/src/test/java/com/taobao/arthas/core/config/ErrorProperties.java | package com.taobao.arthas.core.config;
public class ErrorProperties {
/**
* Path of the error controller.
*/
// @Value("${error.path:/error}")
private String path = "/error";
/**
* When to include a "stacktrace" attribute.
*/
private IncludeStacktrace includeStacktrace = IncludeStacktrace.NEVER;
publi... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/Ssl.java | core/src/test/java/com/taobao/arthas/core/config/Ssl.java | package com.taobao.arthas.core.config;
import java.util.Arrays;
public class Ssl {
String protocol;
boolean enabled;
Boolean testBoolean;
Long testLong;
Double testDouble;
String[] ciphers;
public String[] getCiphers() {
return ciphers;
}
public void setCiphers(String[] ciphers) {
this.ciphers = c... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/Server.java | core/src/test/java/com/taobao/arthas/core/config/Server.java | package com.taobao.arthas.core.config;
import java.net.InetAddress;
@Config(prefix = "server")
public class Server {
int port;
String host;
InetAddress address;
boolean flag;
@NestedConfig
Ssl ssl;
@NestedConfig
ErrorProperties error;
public InetAddress getAddress() {
return address;
}
public void... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/SystemObject.java | core/src/test/java/com/taobao/arthas/core/config/SystemObject.java | package com.taobao.arthas.core.config;
@Config(prefix = "system.test")
public class SystemObject {
String systemKey;
int systemIngeger;
String nonSystemKey;
public String getSystemKey() {
return systemKey;
}
public void setSystemKey(String systemKey) {
this.systemKey = syste... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/PropertiesInjectUtilTest.java | core/src/test/java/com/taobao/arthas/core/config/PropertiesInjectUtilTest.java | package com.taobao.arthas.core.config;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
import com.taobao.arthas.core.config.ErrorProperties.IncludeStacktrace;
import com.taobao.arthas.core.env.ArthasEnvironment;
import co... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/ServerPropertiesTest.java | core/src/test/java/com/taobao/arthas/core/config/ServerPropertiesTest.java | package com.taobao.arthas.core.config;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
import com.taobao.arthas.core.config.ErrorProperties.IncludeStacktrace;
import com.taobao.arthas.core.env.ArthasEnvironment;
import co... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/config/ServerProperties.java | core/src/test/java/com/taobao/arthas/core/config/ServerProperties.java | package com.taobao.arthas.core.config;
import java.net.InetAddress;
@Config(prefix = "server")
public class ServerProperties {
/**
* Server HTTP port.
*/
private Integer port;
/**
* Network address to which the server should bind to.
*/
private InetAddress address;
/**
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java | core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/shell/command/internal/GrepHandlerTest.java | core/src/test/java/com/taobao/arthas/core/shell/command/internal/GrepHandlerTest.java | package com.taobao.arthas.core.shell.command.internal;
import org.junit.Assert;
import org.junit.Test;
public class GrepHandlerTest {
@Test
public void test4grep_ABC() { // -A -B -C
Object[][] samples = new Object[][] { { "ABC\n1\n2\n3\n4\nc", "ABC", 0, 4, "ABC\n1\n2\n3\n4" },
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/shell/cli/impl/CliTokenImplTest.java | core/src/test/java/com/taobao/arthas/core/shell/cli/impl/CliTokenImplTest.java | package com.taobao.arthas.core.shell.cli.impl;
import com.taobao.arthas.core.shell.cli.CliToken;
import org.junit.Assert;
import org.junit.Test;
import java.util.Iterator;
import java.util.List;
public class CliTokenImplTest {
/**
* supported:
* <p>
* case1:
* thread| grep xxx
* [thread... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/test/java/com/taobao/arthas/core/mcp/tool/function/basic1000/ViewFileToolTest.java | core/src/test/java/com/taobao/arthas/core/mcp/tool/function/basic1000/ViewFileToolTest.java | package com.taobao.arthas.core.mcp.tool.function.basic1000;
import com.fasterxml.jackson.core.type.TypeReference;
import com.taobao.arthas.mcp.server.tool.ToolContext;
import com.taobao.arthas.mcp.server.util.JsonParser;
import org.junit.*;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.lang... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/GlobalOptions.java | core/src/main/java/com/taobao/arthas/core/GlobalOptions.java | package com.taobao.arthas.core;
import java.lang.reflect.Field;
import com.taobao.arthas.common.JavaVersionUtils;
import com.taobao.arthas.common.UnsafeUtils;
import ognl.OgnlRuntime;
/**
* 全局开关
* Created by vlinux on 15/6/4.
*/
public class GlobalOptions {
public static final String STRICT_MESSAGE = "By def... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/Arthas.java | core/src/main/java/com/taobao/arthas/core/Arthas.java | package com.taobao.arthas.core;
import com.sun.tools.attach.VirtualMachine;
import com.sun.tools.attach.VirtualMachineDescriptor;
import com.taobao.arthas.common.AnsiLog;
import com.taobao.arthas.common.ArthasConstants;
import com.taobao.arthas.common.JavaVersionUtils;
import com.taobao.arthas.core.config.Configure;
i... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/Option.java | core/src/main/java/com/taobao/arthas/core/Option.java | package com.taobao.arthas.core;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Arthas全局选项
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Option {
/*
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/UserStatUtil.java | core/src/main/java/com/taobao/arthas/core/util/UserStatUtil.java | package com.taobao.arthas.core.util;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFacto... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/IPUtils.java | core/src/main/java/com/taobao/arthas/core/util/IPUtils.java | package com.taobao.arthas.core.util;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
/**
* @author weipeng2k 2015-01-30 15:06:47
*/
public class IPUtils {
private static final String WINDOWS = "windows";
private static final String OS_NAME = "os.name";
/**
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ObjectUtils.java | core/src/main/java/com/taobao/arthas/core/util/ObjectUtils.java | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.taobao.arthas.core.util;
import java.lang.reflect.Array;
import java.util.Arrays;
public abstract class ObjectUtils {
private static final int INITIAL_HASH = 7;
private static final int MULTIP... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java | core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java | package com.taobao.arthas.core.util;
import com.alibaba.arthas.deps.org.slf4j.Logger;
import com.alibaba.arthas.deps.org.slf4j.LoggerFactory;
import com.taobao.arthas.common.PidUtils;
import com.taobao.arthas.core.shell.ShellServerOptions;
import com.taobao.text.Color;
import com.taobao.text.Decoration;
import com.tao... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ResultUtils.java | core/src/main/java/com/taobao/arthas/core/util/ResultUtils.java | package com.taobao.arthas.core.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* 命令结果处理工具类
* @author gongdewei 2020/5/18
*/
public class ResultUtils {
/**
* 分页处理class列表,转换为className列表
* @param classes
* @param pageSize
* @param handler
*/
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/StringUtils.java | core/src/main/java/com/taobao/arthas/core/util/StringUtils.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/TypeRenderUtils.java | core/src/main/java/com/taobao/arthas/core/util/TypeRenderUtils.java | package com.taobao.arthas.core.util;
import com.taobao.arthas.core.command.model.ClassDetailVO;
import com.taobao.arthas.core.command.model.ClassVO;
import com.taobao.arthas.core.command.model.FieldVO;
import com.taobao.arthas.core.command.model.ObjectVO;
import com.taobao.arthas.core.view.ObjectView;
import com.taoba... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java | core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java | package com.taobao.arthas.core.util;
import static com.taobao.text.ui.Element.label;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.security.CodeSource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.alibaba.deps.org.objectweb.asm.Type;
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/FileUtils.java | core/src/main/java/com/taobao/arthas/core/util/FileUtils.java | package com.taobao.arthas.core.util;
/**
* Copied from {@link org.apache.commons.io.FileUtils}
* @author ralf0131 2016-12-28 11:46.
*/
import io.termd.core.util.Helper;
import java.io.*;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import com.tao... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/IOUtils.java | core/src/main/java/com/taobao/arthas/core/util/IOUtils.java | package com.taobao.arthas.core.util;
/**
* Copied from {@link org.apache.commons.io.IOUtils}
* @author ralf0131 2016-12-28 11:41.
*/
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputSt... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/TokenUtils.java | core/src/main/java/com/taobao/arthas/core/util/TokenUtils.java | package com.taobao.arthas.core.util;
import java.util.List;
import com.taobao.arthas.core.shell.cli.CliToken;
/**
* tokenizer helper
*
* @author gehui 2017-07-27 11:39:56
*/
public class TokenUtils {
/**
* find the first text token
*/
public static CliToken findFirstTextToken(List<CliToken> to... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/DateUtils.java | core/src/main/java/com/taobao/arthas/core/util/DateUtils.java | package com.taobao.arthas.core.util;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
/**
* @author diecui1202 on 2017/10/25.
*/
public final class D... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/LogUtil.java | core/src/main/java/com/taobao/arthas/core/util/LogUtil.java | package com.taobao.arthas.core.util;
import java.io.File;
import java.util.Iterator;
import com.alibaba.arthas.deps.ch.qos.logback.classic.LoggerContext;
import com.alibaba.arthas.deps.ch.qos.logback.classic.joran.JoranConfigurator;
import com.alibaba.arthas.deps.ch.qos.logback.classic.spi.ILoggingEvent;
import com.a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ThreadLocalWatch.java | core/src/main/java/com/taobao/arthas/core/util/ThreadLocalWatch.java | package com.taobao.arthas.core.util;
/**
* 简单的调用计时器。
*
* @author vlinux 16/6/1.
* @author hengyunabc 2016-10-31
*/
public class ThreadLocalWatch {
/**
* 用 long[] 做一个固定大小的 ring stack,避免把 ArthasClassLoader 加载的对象塞到业务线程的 ThreadLocalMap 里,
* 从而在 stop/detach 后导致 ArthasClassLoader 无法被 GC 回收。
*
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/HttpUtils.java | core/src/main/java/com/taobao/arthas/core/util/HttpUtils.java | package com.taobao.arthas.core.util;
import io.netty.handler.codec.http.*;
import io.netty.handler.codec.http.cookie.Cookie;
import io.netty.handler.codec.http.cookie.ServerCookieEncoder;
import java.io.UnsupportedEncodingException;
import java.util.Set;
/**
* @author gongdewei 2020/3/31
*/
public class HttpUtils ... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/Decompiler.java | core/src/main/java/com/taobao/arthas/core/util/Decompiler.java | package com.taobao.arthas.core.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NavigableMap;
import java.util.TreeMap;
import org.benf.cfr.reader.api.CfrDriver;
i... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java | core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java | package com.taobao.arthas.core.util;
import com.taobao.arthas.core.command.model.BlockingLockInfo;
import com.taobao.arthas.core.command.model.BusyThreadInfo;
import com.taobao.arthas.core.command.model.StackModel;
import com.taobao.arthas.core.command.model.ThreadNode;
import com.taobao.arthas.core.command.model.Thre... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ArrayUtils.java | core/src/main/java/com/taobao/arthas/core/util/ArrayUtils.java | package com.taobao.arthas.core.util;
/**
* @author ralf0131 2016-12-28 14:57.
*/
public class ArrayUtils {
/**
* An empty immutable {@code long} array.
*/
public static final long[] EMPTY_LONG_ARRAY = new long[0];
/**
* <p>Converts an array of object Longs to primitives.</p>
*
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/NetUtils.java | core/src/main/java/com/taobao/arthas/core/util/NetUtils.java | package com.taobao.arthas.core.util;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.taobao.arthas.common.IOUtils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ClassLoaderUtils.java | core/src/main/java/com/taobao/arthas/core/util/ClassLoaderUtils.java | package com.taobao.arthas.core.util;
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Field;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.alibaba.arthas.deps.org.slf4j.Logger;
imp... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/ArthasCheckUtils.java | core/src/main/java/com/taobao/arthas/core/util/ArthasCheckUtils.java | package com.taobao.arthas.core.util;
/**
* Utils for checks
* Created by vlinux on 15/5/19.
*/
public class ArthasCheckUtils {
/**
* check whether a component is in an Array<br/>
*
* @param e component
* @param s array
* @param <E> component type
* @return <br/>
* (1,1,2,... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/CommandUtils.java | core/src/main/java/com/taobao/arthas/core/util/CommandUtils.java | package com.taobao.arthas.core.util;
import com.taobao.arthas.core.shell.command.CommandProcess;
import com.taobao.arthas.core.shell.command.ExitStatus;
/**
* Command Process util
*/
public class CommandUtils {
/**
* check exit status and end command processing
* @param process CommandProcess instanc... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/Constants.java | core/src/main/java/com/taobao/arthas/core/util/Constants.java | package com.taobao.arthas.core.util;
import java.io.File;
import com.taobao.arthas.common.PidUtils;
import com.taobao.arthas.core.view.Ansi;
/**
* @author ralf0131 2016-12-28 16:20.
*/
public class Constants {
private Constants() {
}
/**
* 中断提示
*/
public static final String Q_OR_CTRL_C_... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/InstrumentationUtils.java | core/src/main/java/com/taobao/arthas/core/util/InstrumentationUtils.java | package com.taobao.arthas.core.util;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.Instrumentation;
import java.util.Collection;
import java.util.Set;
import com.alibaba.arthas.deps.org.slf4j.Logger;
import com.alibaba.arthas.deps.org.slf4j.LoggerFactory;
/**
*
* @author hengyunabc... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/SearchUtils.java | core/src/main/java/com/taobao/arthas/core/util/SearchUtils.java | package com.taobao.arthas.core.util;
import com.taobao.arthas.core.GlobalOptions;
import com.taobao.arthas.core.util.matcher.Matcher;
import com.taobao.arthas.core.util.matcher.RegexMatcher;
import com.taobao.arthas.core.util.matcher.WildcardMatcher;
import java.lang.instrument.Instrumentation;
import java.util.Colle... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/EqualsMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/EqualsMatcher.java | package com.taobao.arthas.core.util.matcher;
import com.taobao.arthas.core.util.ArthasCheckUtils;
/**
* 字符串全匹配
* @author ralf0131 2017-01-06 13:18.
*/
public class EqualsMatcher<T> implements Matcher<T> {
private final T pattern;
public EqualsMatcher(T pattern) {
this.pattern = pattern;
}
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/FalseMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/FalseMatcher.java | package com.taobao.arthas.core.util.matcher;
/**
* @author ralf0131 2017-01-06 13:33.
*/
public class FalseMatcher<T> implements Matcher<T> {
/**
* always return false
* @param target
* @return true/false
*/
@Override
public boolean matching(T target) {
return false;
}
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/RegexMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/RegexMatcher.java | package com.taobao.arthas.core.util.matcher;
/**
* regex matcher
* @author ralf0131 2017-01-06 13:16.
*/
public class RegexMatcher implements Matcher<String> {
private final String pattern;
public RegexMatcher(String pattern) {
this.pattern = pattern;
}
@Override
public boolean matchi... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/TrueMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/TrueMatcher.java | package com.taobao.arthas.core.util.matcher;
/**
* @author ralf0131 2017-01-06 13:48.
*/
public final class TrueMatcher<T> implements Matcher<T> {
/**
* always return true
* @param target
* @return
*/
@Override
public boolean matching(T target) {
return true;
}
} | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/Matcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/Matcher.java | package com.taobao.arthas.core.util.matcher;
/**
* 匹配器
* Created by vlinux on 15/5/17.
*/
public interface Matcher<T> {
/**
* 是否匹配
*
* @param target 目标字符串
* @return 目标字符串是否匹配表达式
*/
boolean matching(T target);
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/WildcardMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/WildcardMatcher.java | package com.taobao.arthas.core.util.matcher;
/**
* wildcard matcher
* @author ralf0131 2017-01-06 13:17.
*/
public class WildcardMatcher implements Matcher<String> {
private final String pattern;
private static final Character ASTERISK = '*';
private static final Character QUESTION_MARK = '?';
pri... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/matcher/GroupMatcher.java | core/src/main/java/com/taobao/arthas/core/util/matcher/GroupMatcher.java | package com.taobao.arthas.core.util.matcher;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
/**
* @author ralf0131 2017-01-06 13:29.
*/
public interface GroupMatcher<T> extends Matcher<T> {
/**
* 追加匹配器
*
* @param matcher 匹配器
*/
void add(Matcher<T> matc... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/affect/EnhancerAffect.java | core/src/main/java/com/taobao/arthas/core/util/affect/EnhancerAffect.java | package com.taobao.arthas.core.util.affect;
import com.taobao.arthas.core.GlobalOptions;
import com.taobao.arthas.core.util.ClassLoaderUtils;
import java.io.File;
import java.lang.instrument.ClassFileTransformer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurre... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/affect/RowAffect.java | core/src/main/java/com/taobao/arthas/core/util/affect/RowAffect.java | package com.taobao.arthas.core.util.affect;
import java.util.concurrent.atomic.AtomicInteger;
/**
* 行记录影响反馈
* Created by vlinux on 15/5/21.
*/
public final class RowAffect extends Affect {
private final AtomicInteger rCnt = new AtomicInteger();
public RowAffect() {
}
public RowAffect(int rCnt) {... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/affect/Affect.java | core/src/main/java/com/taobao/arthas/core/util/affect/Affect.java | package com.taobao.arthas.core.util.affect;
import static java.lang.System.currentTimeMillis;
/**
* 影响反馈
* Created by vlinux on 15/5/21.
* @author diecui1202 on 2017/10/26
*/
public class Affect {
private final long start = currentTimeMillis();
/**
* 影响耗时(ms)
*
* @return 获取耗时(ms)
*/
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/metrics/SumRateCounter.java | core/src/main/java/com/taobao/arthas/core/util/metrics/SumRateCounter.java | package com.taobao.arthas.core.util.metrics;
/**
* <pre>
* 统计传入的数据是总数的速率。
* 比如传入的数据是所有请求的数量,5秒数据为:
* 267, 457, 635, 894, 1398
* 则统计的平均速率是:( (457-267) + (635-457) + (894-635) + (1398-894) ) / 4 = 282
* </pre>
*
* @author hengyunabc 2015年12月18日 下午3:40:26
*
*/
public class SumRateCounter {
RateCounter rat... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/metrics/RateCounter.java | core/src/main/java/com/taobao/arthas/core/util/metrics/RateCounter.java | package com.taobao.arthas.core.util.metrics;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicLongArray;
import java.util.concurrent.ThreadLocalRandom;
/**
* <pre>
* 统计平均速率,比如统计5秒内的平均速率。
* 5秒的数据是:234, 345,124,366,235,
* 则速率是 (234+345+124+366+235)/5 = 260
*
* </pre>
*
* @... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/collection/GaStack.java | core/src/main/java/com/taobao/arthas/core/util/collection/GaStack.java | package com.taobao.arthas.core.util.collection;
/**
* 堆栈
* Created by vlinux on 15/6/21.
* @param <E>
*/
public interface GaStack<E> {
E pop();
void push(E e);
E peek();
boolean isEmpty();
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/collection/ThreadUnsafeFixGaStack.java | core/src/main/java/com/taobao/arthas/core/util/collection/ThreadUnsafeFixGaStack.java | package com.taobao.arthas.core.util.collection;
import java.util.NoSuchElementException;
/**
* 线程不安全固定栈深的堆栈实现<br/>
* 固定堆栈深度的实现能比JDK自带的堆栈实现提高10倍的性能.
* Created by vlinux on 15/6/21.
* @param <E>
*/
public class ThreadUnsafeFixGaStack<E> implements GaStack<E> {
private final static int EMPTY_INDEX = -1;
pr... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/collection/ThreadUnsafeGaStack.java | core/src/main/java/com/taobao/arthas/core/util/collection/ThreadUnsafeGaStack.java | package com.taobao.arthas.core.util.collection;
import com.alibaba.arthas.deps.org.slf4j.Logger;
import com.alibaba.arthas.deps.org.slf4j.LoggerFactory;
import java.util.NoSuchElementException;
import static java.lang.System.arraycopy;
/**
* 线程不安全不固定栈深的堆栈实现<br/>
* 比默认的实现带来3倍的性能提升
* Created by vlinux on 15/6/21.
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/reflect/FieldUtils.java | core/src/main/java/com/taobao/arthas/core/util/reflect/FieldUtils.java | package com.taobao.arthas.core.util.reflect;
import com.taobao.arthas.core.util.StringUtils;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
imp... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/reflect/ArthasReflectUtils.java | core/src/main/java/com/taobao/arthas/core/util/reflect/ArthasReflectUtils.java | package com.taobao.arthas.core.util.reflect;
import com.taobao.arthas.core.util.ArthasCheckUtils;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.JarURLConne... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/util/usage/StyledUsageFormatter.java | core/src/main/java/com/taobao/arthas/core/util/usage/StyledUsageFormatter.java | package com.taobao.arthas.core.util.usage;
import com.taobao.middleware.cli.Argument;
import com.taobao.middleware.cli.CLI;
import com.taobao.middleware.cli.Option;
import com.taobao.middleware.cli.UsageMessageFormatter;
import com.taobao.text.Color;
import com.taobao.text.Decoration;
import com.taobao.text.Style;
imp... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/MissingRequiredPropertiesException.java | core/src/main/java/com/taobao/arthas/core/env/MissingRequiredPropertiesException.java | /*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/AbstractPropertyResolver.java | core/src/main/java/com/taobao/arthas/core/env/AbstractPropertyResolver.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/package-info.java | core/src/main/java/com/taobao/arthas/core/env/package-info.java |
/**
* from org.springframework.core.env
*/
package com.taobao.arthas.core.env; | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/ArthasEnvironment.java | core/src/main/java/com/taobao/arthas/core/env/ArthasEnvironment.java | package com.taobao.arthas.core.env;
import java.security.AccessControlException;
import java.util.Map;
/**
*
* @author hengyunabc 2019-12-27
*
*/
public class ArthasEnvironment implements Environment {
/** System environment property source name: {@value}. */
public static final String SYSTEM_ENVIRONMENT... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/ConfigurablePropertyResolver.java | core/src/main/java/com/taobao/arthas/core/env/ConfigurablePropertyResolver.java | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/SystemPropertyUtils.java | core/src/main/java/com/taobao/arthas/core/env/SystemPropertyUtils.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertyPlaceholderHelper.java | core/src/main/java/com/taobao/arthas/core/env/PropertyPlaceholderHelper.java | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/MutablePropertySources.java | core/src/main/java/com/taobao/arthas/core/env/MutablePropertySources.java | /*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/EnumerablePropertySource.java | core/src/main/java/com/taobao/arthas/core/env/EnumerablePropertySource.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/ReadOnlySystemAttributesMap.java | core/src/main/java/com/taobao/arthas/core/env/ReadOnlySystemAttributesMap.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertiesPropertySource.java | core/src/main/java/com/taobao/arthas/core/env/PropertiesPropertySource.java | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/Environment.java | core/src/main/java/com/taobao/arthas/core/env/Environment.java | package com.taobao.arthas.core.env;
public interface Environment extends PropertyResolver {
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertySource.java | core/src/main/java/com/taobao/arthas/core/env/PropertySource.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertySourcesPropertyResolver.java | core/src/main/java/com/taobao/arthas/core/env/PropertySourcesPropertyResolver.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/SystemEnvironmentPropertySource.java | core/src/main/java/com/taobao/arthas/core/env/SystemEnvironmentPropertySource.java | /*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertyResolver.java | core/src/main/java/com/taobao/arthas/core/env/PropertyResolver.java | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/PropertySources.java | core/src/main/java/com/taobao/arthas/core/env/PropertySources.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/ConversionService.java | core/src/main/java/com/taobao/arthas/core/env/ConversionService.java | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/MapPropertySource.java | core/src/main/java/com/taobao/arthas/core/env/MapPropertySource.java | /*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/convert/StringToInetAddressConverter.java | core/src/main/java/com/taobao/arthas/core/env/convert/StringToInetAddressConverter.java | package com.taobao.arthas.core.env.convert;
import java.net.InetAddress;
import java.net.UnknownHostException;
public class StringToInetAddressConverter implements Converter<String, InetAddress> {
@Override
public InetAddress convert(String source, Class<InetAddress> targetType) {
try {
r... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/convert/ConvertiblePair.java | core/src/main/java/com/taobao/arthas/core/env/convert/ConvertiblePair.java | package com.taobao.arthas.core.env.convert;
/**
* Holder for a source-to-target class pair.
*/
public final class ConvertiblePair {
private final Class<?> sourceType;
private final Class<?> targetType;
/**
* Create a new source-to-target pair.
*
* @param sourceType the source type
... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/convert/StringToIntegerConverter.java | core/src/main/java/com/taobao/arthas/core/env/convert/StringToIntegerConverter.java |
package com.taobao.arthas.core.env.convert;
final class StringToIntegerConverter implements Converter<String, Integer> {
@Override
public Integer convert(String source, Class<Integer> targetType) {
return Integer.parseInt(source);
}
}
| java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
alibaba/arthas | https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/core/src/main/java/com/taobao/arthas/core/env/convert/StringToArrayConverter.java | core/src/main/java/com/taobao/arthas/core/env/convert/StringToArrayConverter.java |
package com.taobao.arthas.core.env.convert;
import java.lang.reflect.Array;
import com.taobao.arthas.core.env.ConversionService;
import com.taobao.arthas.core.util.StringUtils;
final class StringToArrayConverter<T> implements Converter<String, T[]> {
private ConversionService conversionService;
public Str... | java | Apache-2.0 | 17eb3c17e764728e6bf2cf3a37d56620e8835fd0 | 2026-01-04T14:45:57.082411Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.