public class ShardImpl extends ClientImpl implements BaseShard, Serializable
Modifier and Type | Method and Description |
---|---|
void |
changeShard(String uuid,
long shardId)
Change shard.
|
List<Shard> |
getShards()
Gets shards.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setCurrentShard(long shardId)
Sets current shard.
|
getClient, resource, resource
public ShardImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
BaseShard
getShards
in interface BaseShard
WebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic void setCurrentShard(long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
BaseShard
setCurrentShard
in interface BaseShard
shardId
- the shard idWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic void changeShard(String uuid, long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
BaseShard
changeShard
in interface BaseShard
uuid
- the uuidshardId
- the shard idWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.