public class MetaClient extends AbstractMetaClient
| Modifier and Type | Field and Description |
|---|---|
static int |
LATEST_SCHEMA_VERSION |
connectionRetry, executionRetry, protocol, timeout, transport| Constructor and Description |
|---|
MetaClient(HostAddress address) |
MetaClient(List<HostAddress> addresses) |
MetaClient(List<HostAddress> addresses,
int connectionRetry,
int executionRetry) |
MetaClient(List<HostAddress> addresses,
int timeout,
int connectionRetry,
int executionRetry) |
MetaClient(List<HostAddress> addresses,
int timeout,
int connectionRetry,
int executionRetry,
boolean enableSSL,
SSLParam sslParam) |
MetaClient(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close transport
|
void |
connect() |
Schema |
getEdge(String spaceName,
String edgeName)
get schema of specific edgeRow
|
List<EdgeItem> |
getEdges(String spaceName)
get all edges of specific space
|
Map<Integer,List<HostAddr>> |
getPartsAlloc(String spaceName)
Get all parts and the address in a space
Store in this.parts
|
SpaceItem |
getSpace(String spaceName)
get one space
|
List<IdName> |
getSpaces()
get all spaces
|
Schema |
getTag(String spaceName,
String tagName)
get schema of specific tag
|
List<TagItem> |
getTags(String spaceName)
get all tags of spaceName
|
Set<HostAddr> |
listHosts()
get all Storaged servers
|
getConnectionRetry, getExecutionRetry, getTimeoutpublic static final int LATEST_SCHEMA_VERSION
public MetaClient(String host, int port) throws UnknownHostException
UnknownHostExceptionpublic MetaClient(HostAddress address) throws UnknownHostException
UnknownHostExceptionpublic MetaClient(List<HostAddress> addresses) throws UnknownHostException
UnknownHostExceptionpublic MetaClient(List<HostAddress> addresses, int connectionRetry, int executionRetry) throws UnknownHostException
UnknownHostExceptionpublic MetaClient(List<HostAddress> addresses, int timeout, int connectionRetry, int executionRetry) throws UnknownHostException
UnknownHostExceptionpublic MetaClient(List<HostAddress> addresses, int timeout, int connectionRetry, int executionRetry, boolean enableSSL, SSLParam sslParam) throws UnknownHostException
UnknownHostExceptionpublic void connect()
throws com.facebook.thrift.TException,
ClientServerIncompatibleException
com.facebook.thrift.TExceptionClientServerIncompatibleExceptionpublic void close()
public List<IdName> getSpaces() throws com.facebook.thrift.TException, ExecuteFailedException
com.facebook.thrift.TExceptionExecuteFailedExceptionpublic SpaceItem getSpace(String spaceName) throws com.facebook.thrift.TException, ExecuteFailedException
spaceName - nebula graph spacecom.facebook.thrift.TExceptionExecuteFailedExceptionpublic List<TagItem> getTags(String spaceName) throws com.facebook.thrift.TException, ExecuteFailedException
spaceName - nebula graph spacecom.facebook.thrift.TExceptionExecuteFailedExceptionpublic Schema getTag(String spaceName, String tagName) throws com.facebook.thrift.TException, ExecuteFailedException
spaceName - nebula graph spacetagName - nebula tag namecom.facebook.thrift.TExceptionExecuteFailedExceptionpublic List<EdgeItem> getEdges(String spaceName) throws com.facebook.thrift.TException, ExecuteFailedException
spaceName - nebula graph spacecom.facebook.thrift.TExceptionExecuteFailedExceptionpublic Schema getEdge(String spaceName, String edgeName) throws com.facebook.thrift.TException, ExecuteFailedException
spaceName - nebula graph spaceedgeName - nebula edgeRow namecom.facebook.thrift.TExceptionExecuteFailedExceptionpublic Map<Integer,List<HostAddr>> getPartsAlloc(String spaceName) throws ExecuteFailedException, com.facebook.thrift.TException
spaceName - Nebula space nameExecuteFailedExceptioncom.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.