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, resourcepublic ShardImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
BaseShardgetShards in interface BaseShardWebserviceException - 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
BaseShardsetCurrentShard in interface BaseShardshardId - 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
BaseShardchangeShard in interface BaseSharduuid - the uuidshardId - the shard idWebserviceException - the webservice exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionAccessDeniedException - the access denied exceptionUnknownException - the unknown exceptionCopyright © 2022 Open Knowledge Management System S.L.. All Rights Reserved.