Skip to content

Commit

Permalink
Merge branch 'apache:master' into dev-1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Linhao-Qian authored Aug 28, 2024
2 parents 91f7a5e + 5a5a95f commit 7e4152f
Show file tree
Hide file tree
Showing 454 changed files with 58 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public interface Fs extends Closeable {

boolean canRead(FsPath dest) throws IOException;

boolean canRead(FsPath dest, String user) throws IOException;

boolean canWrite(FsPath dest) throws IOException;

boolean exists(FsPath dest) throws IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ public boolean canRead(FsPath dest) throws IOException {
return canAccess(dest, FsAction.READ);
}

@Override
public boolean canRead(FsPath fsPath, String s) throws IOException {
return false;
}

@Override
public boolean canWrite(FsPath dest) throws IOException {
return canAccess(dest, FsAction.WRITE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ public boolean canRead(FsPath dest) throws IOException {
PosixFilePermission.OTHERS_READ);
}

@Override
public boolean canRead(FsPath fsPath, String s) throws IOException {
return false;
}

@Override
public boolean canWrite(FsPath dest) throws IOException {
return can(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ public boolean canRead(FsPath dest) throws IOException {
return true;
}

@Override
public boolean canRead(FsPath fsPath, String s) throws IOException {
return false;
}

@Override
public boolean canWrite(FsPath dest) throws IOException {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ public boolean canRead(FsPath dest) {
return true;
}

@Override
public boolean canRead(FsPath fsPath, String s) throws IOException {
return false;
}

@Override
public boolean canWrite(FsPath dest) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public int compare(Resource r) {

@Override
public String toJson() {
return String.format(" \"cpu\":%s ", cores);
return String.format(" {\"cpu\":%s} ", cores);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public String toJson() {
public String toString() {
return String.format(
"Number of instances(实例数):%d,(RAM)内存:%s ,cpu: %s",
this.getInstances(), this.getMemory(), this.getCores());
this.getInstances(), ByteTimeUtils.bytesToString(this.getMemory()), this.getCores());
}

public long getMemory() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public int compare(Resource r) {
@Override
public String toJson() {
return String.format(
"{\"memory\":%s,\"cpu\":%d}", ByteTimeUtils.bytesToString(this.memory), this.cores);
"{\"memory\":\"%s\",\"cpu\":%d}", ByteTimeUtils.bytesToString(this.memory), this.cores);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean equalsTo(Resource resource) {

@Override
public String toJson() {
return " \"memory\":\"" + ByteTimeUtils.bytesToString(memory) + " ";
return " {\"memory\":\"" + ByteTimeUtils.bytesToString(memory) + "\"} ";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>org.apache.linkis</groupId>
<artifactId>linkis</artifactId>
<version>${revision}</version>
<relativePath>../../../pom.xml</relativePath>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>linkis-bmlserver</artifactId>
Expand Down
34 changes: 0 additions & 34 deletions linkis-public-enhancements/linkis-bml/pom.xml

This file was deleted.

37 changes: 0 additions & 37 deletions linkis-public-enhancements/linkis-context-service/pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>org.apache.linkis</groupId>
<artifactId>linkis</artifactId>
<version>${revision}</version>
<relativePath>../../../pom.xml</relativePath>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>linkis-cs-server</artifactId>
Expand Down
Loading

0 comments on commit 7e4152f

Please sign in to comment.