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/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpStatelessNettyServer.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpStatelessNettyServer.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.CommandExecutor; import com.taobao.arthas.mcp.server.protoco...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpStatelessRequestHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpStatelessRequestHandler.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; import com.taobao.arthas.mcp.server.session.ArthasCommandContext; import java.util.concurrent.CompletableFuture; /** * Handler for MCP requests in a stateless server. */ public interface McpStateles...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpRequestHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpRequestHandler.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; import com.taobao.arthas.mcp.server.session.ArthasCommandContext; import java.util.concurrent.CompletableFuture; /** * Handles MCP requests from clients using CompletableFuture for async operations. ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpTransportContext.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpTransportContext.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; public interface McpTransportContext { String KEY = "MCP_TRANSPORT_CONTEXT"; McpTransportContext EMPTY = new DefaultMcpTransportContext(); Object get(String key); void put(String key, Object val...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpNettyServerExchange.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpNettyServerExchange.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; import com.fasterxml.jackson.core.type.TypeReference; import com.taobao.arthas.mcp.server.protocol.spec.McpError; import com.taobao.arthas.mcp.server.protocol.spec.McpSchema; import com.taobao.arthas.mc...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpTransportContextExtractor.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpTransportContextExtractor.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; /** * Interface for extracting transport context from server requests. * This allows inspection of HTTP transport level metadata during request processing. * * @param <T> the type of server request ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/DefaultMcpStatelessServerHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/DefaultMcpStatelessServerHandler.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server; import com.taobao.arthas.mcp.server.CommandExecutor; import com.taobao.arthas.mcp.server.protocol.spec.McpError; import com.taobao.arthas.mcp.server.protocol.spec.McpSchema; import com.taobao.arthas.mcp...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/store/InMemoryEventStore.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/store/InMemoryEventStore.java
package com.taobao.arthas.mcp.server.protocol.server.store; import com.taobao.arthas.mcp.server.protocol.spec.EventStore; import com.taobao.arthas.mcp.server.protocol.spec.McpSchema; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/transport/NettyStreamableServerTransportProvider.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/transport/NettyStreamableServerTransportProvider.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server.transport; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.protocol.server.McpTransportContextExtractor; import com.taobao.arthas.mcp.server.protocol.server.handle...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/transport/NettyStatelessServerTransport.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/transport/NettyStatelessServerTransport.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server.transport; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.protocol.server.McpStatelessServerHandler; import com.taobao.arthas.mcp.server.protocol.server.McpTransp...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpStreamableHttpRequestHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpStreamableHttpRequestHandler.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server.handler; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.util.McpAuthExtractor; import com.taobao.arthas.mcp....
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
true
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpHttpRequestHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpHttpRequestHandler.java
package com.taobao.arthas.mcp.server.protocol.server.handler; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.protocol.config.McpServerProperties.ServerProtocol; import com.taobao.arthas.mcp.server.protocol.server.McpTransportContextExtractor; import com.taobao.arthas.mcp.server...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpStatelessHttpRequestHandler.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/handler/McpStatelessHttpRequestHandler.java
/* * Copyright 2024-2024 the original author or authors. */ package com.taobao.arthas.mcp.server.protocol.server.handler; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.util.McpAuthExtractor; import com.taobao.arthas.mcp.server.protocol.server.DefaultMcpTransportContext; imp...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/config/McpServerProperties.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/config/McpServerProperties.java
package com.taobao.arthas.mcp.server.protocol.config; import com.fasterxml.jackson.databind.ObjectMapper; import java.time.Duration; import java.util.HashMap; import java.util.Map; /** * MCP Server Configuration Properties * Used to manage all configuration items for MCP server. * * @author Yeaury */ public cla...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/DefaultToolCallbackProvider.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/DefaultToolCallbackProvider.java
package com.taobao.arthas.mcp.server.tool; import com.taobao.arthas.mcp.server.tool.annotation.Tool; import com.taobao.arthas.mcp.server.tool.definition.ToolDefinition; import com.taobao.arthas.mcp.server.tool.definition.ToolDefinitions; import com.taobao.arthas.mcp.server.tool.execution.DefaultToolCallResultConverter...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolCallback.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolCallback.java
package com.taobao.arthas.mcp.server.tool; import com.taobao.arthas.mcp.server.tool.definition.ToolDefinition; /** * Define the basic behavior of the tool */ public interface ToolCallback { ToolDefinition getToolDefinition(); String call(String toolInput); String call(String toolInput, ToolContext to...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/DefaultToolCallback.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/DefaultToolCallback.java
package com.taobao.arthas.mcp.server.tool; import com.fasterxml.jackson.core.type.TypeReference; import com.taobao.arthas.mcp.server.tool.definition.ToolDefinition; import com.taobao.arthas.mcp.server.tool.execution.ToolCallResultConverter; import com.taobao.arthas.mcp.server.tool.execution.ToolExecutionException; imp...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolContext.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolContext.java
package com.taobao.arthas.mcp.server.tool; import java.util.Collections; import java.util.Map; public final class ToolContext { private final Map<String, Object> context; public ToolContext(Map<String, Object> context) { this.context = Collections.unmodifiableMap(context); } public Map<String, Object> getCon...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolCallbackProvider.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/ToolCallbackProvider.java
package com.taobao.arthas.mcp.server.tool; public interface ToolCallbackProvider { ToolCallback[] getToolCallbacks(); }
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/util/JsonSchemaGenerator.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/util/JsonSchemaGenerator.java
package com.taobao.arthas.mcp.server.tool.util; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/definition/ToolDefinitions.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/definition/ToolDefinitions.java
package com.taobao.arthas.mcp.server.tool.definition; import com.taobao.arthas.mcp.server.tool.annotation.Tool; import com.taobao.arthas.mcp.server.tool.util.JsonSchemaGenerator; import com.taobao.arthas.mcp.server.util.Assert; import java.lang.reflect.Method; public class ToolDefinitions { public static ToolDefin...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/definition/ToolDefinition.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/definition/ToolDefinition.java
package com.taobao.arthas.mcp.server.tool.definition; import com.taobao.arthas.mcp.server.protocol.spec.McpSchema; public class ToolDefinition { private String name; private String description; private McpSchema.JsonSchema inputSchema; private boolean streamable; public ToolDefinition(String n...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/DefaultToolCallResultConverter.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/DefaultToolCallResultConverter.java
package com.taobao.arthas.mcp.server.tool.execution; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.taobao.arthas.mcp.server.util.JsonParser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.imageio.ImageIO; import java.aw...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/DefaultToolExecutionExceptionProcessor.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/DefaultToolExecutionExceptionProcessor.java
package com.taobao.arthas.mcp.server.tool.execution; import com.taobao.arthas.mcp.server.util.Assert; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Default implementation of {@link ToolExecutionExceptionProcessor}. */ public class DefaultToolExecutionExceptionProcessor implements ToolExecutionExcep...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolExecutionException.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolExecutionException.java
package com.taobao.arthas.mcp.server.tool.execution; import com.taobao.arthas.mcp.server.tool.definition.ToolDefinition; /** * An exception thrown when a tool execution fails. */ public class ToolExecutionException extends RuntimeException { private final ToolDefinition toolDefinition; public ToolExecutionExcep...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolExecutionExceptionProcessor.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolExecutionExceptionProcessor.java
package com.taobao.arthas.mcp.server.tool.execution; /** * A functional interface to process a {@link ToolExecutionException} by either converting * the error message to a String that can be sent back to the AI model or throwing an * exception to be handled by the caller. */ @FunctionalInterface public interface T...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolCallResultConverter.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/execution/ToolCallResultConverter.java
package com.taobao.arthas.mcp.server.tool.execution; import java.lang.reflect.Type; /** * A functional interface to convert tool call results to a String that can be sent back * to the AI model. */ @FunctionalInterface public interface ToolCallResultConverter { /** * Given an Object returned by a tool, convert...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/annotation/ToolParam.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/annotation/ToolParam.java
package com.taobao.arthas.mcp.server.tool.annotation; import java.lang.annotation.*; @Target({ ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ToolParam { /** * Whether the tool argument is required. */ boolean required(...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/annotation/Tool.java
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/tool/annotation/Tool.java
package com.taobao.arthas.mcp.server.tool.annotation; import java.lang.annotation.*; @Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Tool { String name() default ""; String description() default ""; boolean streamable() defa...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/URITest.java
tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/URITest.java
package com.alibaba.arthas.tunnel.server; import java.net.URI; import java.net.URISyntaxException; import org.assertj.core.api.Assertions; import org.junit.Test; import org.springframework.web.util.UriComponentsBuilder; import com.alibaba.arthas.tunnel.common.MethodConstants; import com.alibaba.arthas.tunnel.common....
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/app/ArthasTunnelApplicationTest.java
tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/app/ArthasTunnelApplicationTest.java
package com.alibaba.arthas.tunnel.server.app; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * * @author hengyunabc 2021-07-12 * */ @RunWith(SpringJUnit4ClassRunner.cl...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/utils/HttpUtilsTest.java
tunnel-server/src/test/java/com/alibaba/arthas/tunnel/server/utils/HttpUtilsTest.java
package com.alibaba.arthas.tunnel.server.utils; import org.assertj.core.api.Assertions; import org.junit.Test; import org.mockito.Mockito; import io.netty.handler.codec.http.HttpHeaders; /** * * @author hengyunabc 2021-02-26 * */ public class HttpUtilsTest { @Test public void test1() { HttpHead...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelSocketServerInitializer.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelSocketServerInitializer.java
package com.alibaba.arthas.tunnel.server; import com.taobao.arthas.common.ArthasConstants; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.socket.SocketChannel; import io.netty.handler.codec.http.HttpObjectAggregator; import io.netty.handler.codec.http.Http...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/RelayHandler.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/RelayHandler.java
package com.alibaba.arthas.tunnel.server; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; impor...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelServer.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelServer.java
package com.alibaba.arthas.tunnel.server; import java.util.Map; import java.util.Map.Entry; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com....
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/ClientConnectionInfo.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/ClientConnectionInfo.java
package com.alibaba.arthas.tunnel.server; import com.fasterxml.jackson.annotation.JsonIgnore; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.util.concurrent.Promise; /** * * @author hengyunabc 2019-08-27 * */ public class ClientConnectionInfo { @JsonIgnore ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/ChannelUtils.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/ChannelUtils.java
package com.alibaba.arthas.tunnel.server; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import io.netty.channel.ChannelFutureListener; public final class ChannelUtils { /** * Closes the specified channel after all queued write requests are flushed. */ public static void closeOnF...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelSocketFrameHandler.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/TunnelSocketFrameHandler.java
package com.alibaba.arthas.tunnel.server; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.URI; import java.net.URISyntaxException; import java.net.URLDecoder; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.concur...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/AgentInfo.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/AgentInfo.java
package com.alibaba.arthas.tunnel.server; import com.fasterxml.jackson.annotation.JsonIgnore; import io.netty.channel.ChannelHandlerContext; /** * * @author hengyunabc 2019-08-27 * */ public class AgentInfo { @JsonIgnore private ChannelHandlerContext channelHandlerContext; private String host; ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/AgentClusterInfo.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/AgentClusterInfo.java
package com.alibaba.arthas.tunnel.server; /** * @author hengyunabc 2020-10-30 * */ public class AgentClusterInfo { /** * agent本身以哪个ip连接到 tunnel server */ private String host; private int port; private String arthasVersion; /** * agent 连接到的 tunnel server 的ip 和 port */ pri...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/WebSecurityConfig.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/WebSecurityConfig.java
package com.alibaba.arthas.tunnel.server.app; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.bui...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/ArthasTunnelApplication.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/ArthasTunnelApplication.java
package com.alibaba.arthas.tunnel.server.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; @SpringBootApplication(scanBasePackages = { "com.alibaba.arthas.tunnel.server.app", "...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java
package com.alibaba.arthas.tunnel.server.app.configuration; import java.util.ArrayList; import java.util.List; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import com.alibaba.arthas.tunnel.server.utils.InetAddressUtil; import com.taobao....
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/TunnelClusterStoreConfiguration.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/TunnelClusterStoreConfiguration.java
package com.alibaba.arthas.tunnel.server.app.configuration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration; import org.springframework.boot.autoconfigure.conditio...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/EmbeddedRedisConfiguration.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/EmbeddedRedisConfiguration.java
package com.alibaba.arthas.tunnel.server.app.configuration; import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.cont...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/TunnelServerConfiguration.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/TunnelServerConfiguration.java
package com.alibaba.arthas.tunnel.server.app.configuration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.da...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java
package com.alibaba.arthas.tunnel.server.app.web; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import or...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/ProxyController.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/ProxyController.java
package com.alibaba.arthas.tunnel.server.app.web; import java.net.URI; import java.util.Map.Entry; import java.util.Optional; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import javax.servlet.http.HttpServletRequest; import org.ap...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/StatController.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/StatController.java
package com.alibaba.arthas.tunnel.server.app.web; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Req...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/ClusterController.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/ClusterController.java
package com.alibaba.arthas.tunnel.server.app.web; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind....
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/utils/HttpUtils.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/utils/HttpUtils.java
package com.alibaba.arthas.tunnel.server.utils; import io.netty.handler.codec.http.HttpHeaders; /** * * @author hengyunabc 2021-02-26 * */ public class HttpUtils { public static String findClientIP(HttpHeaders headers) { String hostStr = headers.get("X-Forwarded-For"); if (hostStr == null) {...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/utils/InetAddressUtil.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/utils/InetAddressUtil.java
package com.alibaba.arthas.tunnel.server.utils; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Enumeration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author hengyunabc 2020-10-27 * */ public class InetAddressUtil { private final static Logger logger =...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/InMemoryClusterStore.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/InMemoryClusterStore.java
package com.alibaba.arthas.tunnel.server.cluster; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframewor...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/TunnelClusterStore.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/TunnelClusterStore.java
package com.alibaba.arthas.tunnel.server.cluster; import java.util.Collection; import java.util.Map; import java.util.concurrent.TimeUnit; import com.alibaba.arthas.tunnel.server.AgentClusterInfo; /** * 保存agentId连接到哪个具体的 tunnel server,集群部署时使用 * * @author hengyunabc 2020-10-27 * */ public interface TunnelCluste...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/RedisTunnelClusterStore.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/cluster/RedisTunnelClusterStore.java
package com.alibaba.arthas.tunnel.server.cluster; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import org.slf4j.Logger...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/endpoint/ArthasEndPointAutoconfiguration.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/endpoint/ArthasEndPointAutoconfiguration.java
package com.alibaba.arthas.tunnel.server.endpoint; import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.context.properties.EnableConfigurationProperties;...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/endpoint/ArthasEndpoint.java
tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/endpoint/ArthasEndpoint.java
package com.alibaba.arthas.tunnel.server.endpoint; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; import com...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/test/java/com/alibaba/arthas/spring/StringUtilsTest.java
arthas-spring-boot-starter/src/test/java/com/alibaba/arthas/spring/StringUtilsTest.java
package com.alibaba.arthas.spring; import java.util.HashMap; import java.util.Map; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; /** * * @author hengyunabc 2020-06-24 * */ public class StringUtilsTest { @Test public void test() { Map<String, String> map = new HashMap<String, St...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/it/arthas-spring-boot3-starter-example/src/test/java/com/example/arthasspringboot3starterexample/ArthasSpringBoot3StarterExampleApplicationTests.java
arthas-spring-boot-starter/src/it/arthas-spring-boot3-starter-example/src/test/java/com/example/arthasspringboot3starterexample/ArthasSpringBoot3StarterExampleApplicationTests.java
package com.example.arthasspringbootstarterexample3; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ArthasSpringBoot3StarterExampleApplicationTests { @Test void contextLoads() { } }
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/it/arthas-spring-boot3-starter-example/src/main/java/com/example/arthasspringboot3starterexample/ArthasSpringBoot3StarterExampleApplication.java
arthas-spring-boot-starter/src/it/arthas-spring-boot3-starter-example/src/main/java/com/example/arthasspringboot3starterexample/ArthasSpringBoot3StarterExampleApplication.java
package com.example.arthasspringboot3starterexample; import java.util.concurrent.TimeUnit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ArthasSpringBoot3StarterExampleApplication { public static void main...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/it/arthas-spring-boot-starter-example/src/test/java/com/example/arthasspringbootstarterexample/ArthasSpringBootStarterExampleApplicationTests.java
arthas-spring-boot-starter/src/it/arthas-spring-boot-starter-example/src/test/java/com/example/arthasspringbootstarterexample/ArthasSpringBootStarterExampleApplicationTests.java
package com.example.arthasspringbootstarterexample; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ArthasSpringBootStarterExampleApplicationTests { @Test void contextLoads() { } }
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/it/arthas-spring-boot-starter-example/src/main/java/com/example/arthasspringbootstarterexample/ArthasSpringBootStarterExampleApplication.java
arthas-spring-boot-starter/src/it/arthas-spring-boot-starter-example/src/main/java/com/example/arthasspringbootstarterexample/ArthasSpringBootStarterExampleApplication.java
package com.example.arthasspringbootstarterexample; import java.util.concurrent.TimeUnit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ArthasSpringBootStarterExampleApplication { public static void main(S...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/StringUtils.java
arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/StringUtils.java
package com.alibaba.arthas.spring; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; /** * * @author hengyunabc 2020-06-24 * */ public class StringUtils { public static Map<String, String> removeDashKey(Map<String, String> map) { Map<String, String> result = new HashMap<String, Stri...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java
arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java
package com.alibaba.arthas.spring; import java.util.Map; import org.springframework.boot.context.properties.ConfigurationProperties; /** * * @author hengyunabc 2020-06-23 * */ @ConfigurationProperties(prefix = "arthas") public class ArthasProperties { private String ip; private int telnetPort; private int ht...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasConfiguration.java
arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasConfiguration.java
package com.alibaba.arthas.spring; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframewo...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/endpoints/ArthasEndPointAutoConfiguration.java
arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/endpoints/ArthasEndPointAutoConfiguration.java
package com.alibaba.arthas.spring.endpoints; import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import o...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/endpoints/ArthasEndPoint.java
arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/endpoints/ArthasEndPoint.java
package com.alibaba.arthas.spring.endpoints; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; import com.taoba...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/ExecutingCommand.java
common/src/main/java/com/taobao/arthas/common/ExecutingCommand.java
package com.taobao.arthas.common; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * A class for executing on the command line and returning the result of * execution. * * @author alessandro...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/ArthasConstants.java
common/src/main/java/com/taobao/arthas/common/ArthasConstants.java
package com.taobao.arthas.common; /** * * @author hengyunabc 2020-09-02 * */ public class ArthasConstants { /** * local address in VM communication * * @see io.netty.channel.local.LocalAddress * @see io.netty.channel.local.LocalChannel */ public static final String NETTY_LOCAL_AD...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/ReflectUtils.java
common/src/main/java/com/taobao/arthas/common/ReflectUtils.java
package com.taobao.arthas.common; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles.Lookup; import java.lang.reflec...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/OSUtils.java
common/src/main/java/com/taobao/arthas/common/OSUtils.java
package com.taobao.arthas.common; import java.io.File; import java.util.Locale; /** * * @author hengyunabc 2018-11-08 * */ public class OSUtils { private static final String OPERATING_SYSTEM_NAME = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); private static final String OPERATING_SYSTEM_ARCH...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/FileUtils.java
common/src/main/java/com/taobao/arthas/common/FileUtils.java
package com.taobao.arthas.common; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; /** * * @see org.apache.commons.io.FileUtils * @author hengyunabc 2020-05-03 * */ public class FileUtils { public static File getTempD...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/IOUtils.java
common/src/main/java/com/taobao/arthas/common/IOUtils.java
package com.taobao.arthas.common; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import ja...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/PidUtils.java
common/src/main/java/com/taobao/arthas/common/PidUtils.java
package com.taobao.arthas.common; import java.lang.management.ManagementFactory; /** * * @author hengyunabc 2019-02-16 * */ public class PidUtils { private static String PID = "-1"; private static long pid = -1; private static String MAIN_CLASS = ""; static { // https://stackoverflow.com...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/UnsafeUtils.java
common/src/main/java/com/taobao/arthas/common/UnsafeUtils.java
package com.taobao.arthas.common; import java.lang.invoke.MethodHandles; import java.lang.reflect.Field; import sun.misc.Unsafe; /** * * @author hengyunabc 2023-09-21 * */ public class UnsafeUtils { public static final Unsafe UNSAFE; private static MethodHandles.Lookup IMPL_LOOKUP; static { ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/JavaVersionUtils.java
common/src/main/java/com/taobao/arthas/common/JavaVersionUtils.java
package com.taobao.arthas.common; import java.util.Properties; /** * * @author hengyunabc 2018-11-21 * */ public class JavaVersionUtils { private static final String VERSION_PROP_NAME = "java.specification.version"; private static final String JAVA_VERSION_STR = System.getProperty(VERSION_PROP_NAME); ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/PlatformEnum.java
common/src/main/java/com/taobao/arthas/common/PlatformEnum.java
package com.taobao.arthas.common; /** * Enum of supported operating systems. * */ public enum PlatformEnum { /** * Microsoft Windows */ WINDOWS, /** * A flavor of Linux */ LINUX, /** * macOS (OS X) */ MACOSX, UNKNOWN }
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/VmToolUtils.java
common/src/main/java/com/taobao/arthas/common/VmToolUtils.java
package com.taobao.arthas.common; /** * * @author hengyunabc 2021-04-27 * */ public class VmToolUtils { private static String libName = null; static { if (OSUtils.isMac()) { libName = "libArthasJniLibrary.dylib"; } if (OSUtils.isLinux()) { if (OSUtils.isArm3...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/Pair.java
common/src/main/java/com/taobao/arthas/common/Pair.java
package com.taobao.arthas.common; public class Pair<X, Y> { private final X x; private final Y y; public Pair(X x, Y y) { this.x = x; this.y = y; } public X getFirst() { return x; } public Y getSecond() { return y; } public static <A, B> Pair<A, B...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/UsageRender.java
common/src/main/java/com/taobao/arthas/common/UsageRender.java
package com.taobao.arthas.common; /** * * @author hengyunabc 2018-11-22 * */ public class UsageRender { private UsageRender() { } public static String render(String usage) { if (AnsiLog.enableColor()) { StringBuilder sb = new StringBuilder(1024); String lines[] = usage...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/SocketUtils.java
common/src/main/java/com/taobao/arthas/common/SocketUtils.java
package com.taobao.arthas.common; import java.net.InetAddress; import java.net.ServerSocket; import java.util.List; import java.util.Random; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.con...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/AnsiLog.java
common/src/main/java/com/taobao/arthas/common/AnsiLog.java
package com.taobao.arthas.common; import java.util.logging.Level; import java.util.regex.Matcher; /** * * <pre> * FINEST -> TRACE * FINER -> DEBUG * FINE -> DEBUG * CONFIG -> INFO * INFO -> INFO * WARNING -> WARN * SEVERE -> ERROR * </pre> * * @see org.slf4j.bridge.SLF4JBridgeHandler * @author...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/ReflectException.java
common/src/main/java/com/taobao/arthas/common/ReflectException.java
package com.taobao.arthas.common; public class ReflectException extends RuntimeException { private static final long serialVersionUID = 1L; private Throwable cause; public ReflectException(Throwable cause) { super(cause != null ? cause.getClass().getName() + "-->" + cause.getMessage() : ""); ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/concurrent/ConcurrentWeakKeyHashMap.java
common/src/main/java/com/taobao/arthas/common/concurrent/ConcurrentWeakKeyHashMap.java
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
true
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/common/src/main/java/com/taobao/arthas/common/concurrent/ReusableIterator.java
common/src/main/java/com/taobao/arthas/common/concurrent/ReusableIterator.java
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/spy/src/main/java/java/arthas/SpyAPI.java
spy/src/main/java/java/arthas/SpyAPI.java
package java.arthas; /** * <pre> * 一个adviceId 是什么呢? 就是一个trace/monitor/watch命令能对应上的一个id,比如一个类某个函数,它的 enter/end/exception 统一是一个id,分配完了就不会再分配。 * * 同样一个method,如果它trace之后,也会有一个 adviceId, 这个method里的所有invoke都是统一处理,认为是一个 adviceId 。 但如果有匹配到不同的 invoke的怎么分配?? * 好像有点难了。。 * * 其实就是把所有可以插入的地方都分类好,那么怎么分类呢?? 或者是叫同一种匹配,就是同一种的 ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/boot/src/test/java/com/taobao/arthas/boot/DownloadUtilsTest.java
boot/src/test/java/com/taobao/arthas/boot/DownloadUtilsTest.java
package com.taobao.arthas.boot; import java.io.File; import java.io.IOException; import java.util.List; import java.util.TimeZone; import java.util.concurrent.TimeUnit; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; public class DownloadUtilsTest { ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java
boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java
package com.taobao.arthas.boot; import static com.taobao.arthas.boot.ProcessUtils.STATUS_EXEC_ERROR; import static com.taobao.arthas.boot.ProcessUtils.STATUS_EXEC_TIMEOUT; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import ...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java
boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java
package com.taobao.arthas.boot; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Collections; import ja...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false
alibaba/arthas
https://github.com/alibaba/arthas/blob/17eb3c17e764728e6bf2cf3a37d56620e8835fd0/boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java
boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java
package com.taobao.arthas.boot; import java.io.BufferedInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.tex...
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/GlobalOptionsTest.java
core/src/test/java/com/taobao/arthas/core/GlobalOptionsTest.java
package com.taobao.arthas.core; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import ognl.OgnlRuntime; class GlobalOptionsTest { @Test void test() { GlobalOptions.updateOnglStrict(true); Assertions.assertThat(OgnlRuntime.getUseStricterInvocationValue()).isTrue();...
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/ArthasCheckUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/ArthasCheckUtilsTest.java
package com.taobao.arthas.core.util; import org.junit.Assert; import org.junit.Test; /** * @author earayu */ public class ArthasCheckUtilsTest { @Test public void testIsIn(){ Assert.assertTrue(ArthasCheckUtils.isIn(1,1,2,3)); Assert.assertFalse(ArthasCheckUtils.isIn(1,2,3,4)); Asser...
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/DateUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/DateUtilsTest.java
package com.taobao.arthas.core.util; import org.junit.Assert; import org.junit.Test; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; /** * * @author brijeshprasad89 * */ public class DateUtilsTest { @Test public void testFormatDateTimeWithCorrectFormat() { DateTimeForm...
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/TypeRenderUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/TypeRenderUtilsTest.java
package com.taobao.arthas.core.util; import org.assertj.core.api.Assertions; import org.junit.Test; import com.taobao.arthas.common.JavaVersionUtils; import java.io.Serializable; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; ...
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/FileUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/FileUtilsTest.java
package com.taobao.arthas.core.util; import com.taobao.arthas.core.testtool.TestUtils; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import java.io.File; import java.io.FileOutputStream; import java.io.IOExcepti...
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/ArrayUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/ArrayUtilsTest.java
package com.taobao.arthas.core.util; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; /** * @author earayu */ public class ArrayUtilsTest { @Rule public ExpectedException thrown = ExpectedException.none(); @Test public void testEmptyL...
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/StringUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/StringUtilsTest.java
package com.taobao.arthas.core.util; import org.junit.Assert; import org.junit.rules.ExpectedException; import org.junit.Rule; import org.junit.Test; import java.util.ArrayList; import java.util.Collection; import java.util.TreeMap; import java.util.TreeSet; import java.util.Properties; /** * @author bohrqiu 2018-09...
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/DecompilerTest.java
core/src/test/java/com/taobao/arthas/core/util/DecompilerTest.java
package com.taobao.arthas.core.util; import java.io.File; import org.assertj.core.api.Assertions; import org.junit.Test; /** * * @author hengyunabc 2021-02-09 * */ public class DecompilerTest { @Test public void test() { String dir = this.getClass().getProtectionDomain().getCodeSource().getLoca...
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/IPUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/IPUtilsTest.java
package com.taobao.arthas.core.util; import static org.junit.Assert.assertEquals; import org.junit.Test; public class IPUtilsTest { @Test public void testZeroIPv4() { String zero = "0.0.0.0"; assertEquals(true, IPUtils.isAllZeroIP(zero)); } @Test public void testZeroIPv6() {...
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/TokenUtilsTest.java
core/src/test/java/com/taobao/arthas/core/util/TokenUtilsTest.java
package com.taobao.arthas.core.util; import com.taobao.arthas.core.shell.cli.CliToken; import com.taobao.arthas.core.shell.cli.impl.CliTokenImpl; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * @author earayu */ public class Toke...
java
Apache-2.0
17eb3c17e764728e6bf2cf3a37d56620e8835fd0
2026-01-04T14:45:57.082411Z
false