File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
main/java/com/vesoft/nebula/client/storage
test/java/com/vesoft/nebula/client/storage Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,15 @@ public class StorageClient implements Serializable {
5151 private boolean enableSSL = false ;
5252 private SSLParam sslParam = null ;
5353
54+
5455 private String user = null ;
5556 private String password = null ;
5657
5758 private String graphAddress = null ;
5859
5960 // the write list for users with read permission
6061 private Map <String , List <String >> spaceLabelWriteList = null ;
62+
6163 private String version = null ;
6264
6365 /**
@@ -129,6 +131,7 @@ public void setGraphAddress(String graphAddress) {
129131 this .graphAddress = graphAddress ;
130132 }
131133
134+
132135 public StorageClient setVersion (String version ) {
133136 this .version = version ;
134137 return this ;
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ public void testStorageClientWithVersionInWhiteList() {
6060 List <HostAddress > address = Arrays .asList (new HostAddress (ip , 9559 ));
6161 StorageClient storageClient = new StorageClient (address );
6262 try {
63+
6364 storageClient .setGraphAddress ("127.0.0.1:9669" );
6465 storageClient .setUser ("root" );
6566 storageClient .setPassword ("nebula" );
You can’t perform that action at this time.
0 commit comments