MCPcopy Index your code
hub / github.com/Shuyun123/seaweedfs-java-client

github.com/Shuyun123/seaweedfs-java-client @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
345 symbols 530 edges 35 files 56 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SeaweedFS Client For Java

Maven Central GitHub Release Apache license

项目更改自weed-client,修复了一下作者原来的部分bug,然后重新打包了。

Quick Start

Maven
<dependency>
    <groupId>net.anumbrella.seaweedfs</groupId>
    <artifactId>seaweedfs-java-client</artifactId>
    <version>0.0.2.RELEASE</version>
</dependency>
Gradle
repositories {
    mavenCentral()
}

dependencies {
    compile 'net.anumbrella.seaweedfs:seaweedfs-java-client:0.0.2.RELEASE'
}
Create a connection manager
FileSource fileSource = new FileSource();
// SeaweedFS master server host
fileSource.setHost("localhost");
// SeaweedFS master server port
fileSource.setPort(9333);
// Set Connection Timeout
fileSource.setConnectionTimeout(5000);
// Startup manager and listens for the change
fileSource.startup();
Create a file operation template
// Template used with connection manager
FileTemplate template = new FileTemplate(fileSource.getConnection());
template.saveFileByStream("filename.doc", someFile);

License

The Apache Software License, Version 2.0

Copyright [2017] [Anumbrella]

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 applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Core symbols most depended-on inside this repo

convertUrlWithScheme
called by 11
src/main/java/net/anumbrella/seaweedfs/util/ConnectionUtil.java
fetchJsonResultByRequest
called by 10
src/main/java/net/anumbrella/seaweedfs/core/Connection.java
buildAssignFileKeyParams
called by 6
src/main/java/net/anumbrella/seaweedfs/core/FileTemplate.java
getLastHeader
called by 6
src/main/java/net/anumbrella/seaweedfs/core/http/HeaderResponse.java
getFid
called by 6
src/main/java/net/anumbrella/seaweedfs/core/content/AssignFileKeyResult.java
getTargetUrl
called by 5
src/main/java/net/anumbrella/seaweedfs/core/FileTemplate.java
convertResponseStatusToException
called by 5
src/main/java/net/anumbrella/seaweedfs/core/VolumeWrapper.java
checkConnection
called by 5
src/main/java/net/anumbrella/seaweedfs/core/MasterWrapper.java

Shape

Method 308
Class 37

Languages

Java100%

Modules by API surface

src/main/java/net/anumbrella/seaweedfs/core/FileSource.java34 symbols
src/main/java/net/anumbrella/seaweedfs/core/FileTemplate.java32 symbols
src/main/java/net/anumbrella/seaweedfs/core/Connection.java29 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/Volume.java22 symbols
src/main/java/net/anumbrella/seaweedfs/core/content/PreAllocateVolumesParams.java14 symbols
src/main/java/net/anumbrella/seaweedfs/core/content/AssignFileKeyParams.java14 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/SystemTopologyStatus.java13 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/DataNode.java12 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/Rack.java10 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/Layout.java10 symbols
src/main/java/net/anumbrella/seaweedfs/core/topology/DataCenter.java10 symbols
src/main/java/net/anumbrella/seaweedfs/core/file/FileHandleStatus.java10 symbols

For agents

$ claude mcp add seaweedfs-java-client \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact