public interface TeamConfigurationService
| Modifier and Type | Method and Description |
|---|---|
List<TeamActionStatus<Boolean>> |
create(TeamConfig<SystemConfigReq> teamConfig,
boolean externalRequest)
Creates a team.
|
List<TeamActionStatus<Boolean>> |
destroy(boolean externalRequest)
Destroys/deletes a team.
|
TeamConfig<SystemConfigReq> |
get()
Gets cached team configuration
|
TeamConfig<SystemConfigRsp> |
getStatus(boolean externalRequest)
Gets team status from all reachable nodes
|
void |
triggerElection()
Trigger leader election.
|
List<TeamActionStatus<Boolean>> create(TeamConfig<SystemConfigReq> teamConfig, boolean externalRequest) throws DuplicateDataException, IllegalArgumentException, CreateException
teamConfig - team configurationexternalRequest - true if the request was initiated by the
user and thus it has to be propagated to all the members in the
team (external request); false if the request comes from
another member which is propagating the action (internal
request).TeamActionStatus listDuplicateDataException - if a team exists with the same
configurationIllegalArgumentException - if the team configuration is invalidCreateException - general exception to denote creation failuresList<TeamActionStatus<Boolean>> destroy(boolean externalRequest) throws NotFoundException
externalRequest - true if the request was initiated by the
user and thus it has to be propagated to all the members in the
team (external request); false if the request comes from
another member which is propagating the action (internal
request).TeamActionStatus listNotFoundException - if the team does not existTeamConfig<SystemConfigReq> get() throws NotFoundException
NotFoundException - if get failsTeamConfig<SystemConfigRsp> getStatus(boolean externalRequest) throws NotFoundException
externalRequest - true if the request was initiated by the
user and thus it has to be propagated to all the members in the
team (external request); false if the request comes from
another member which is propagating the action (internal
request).NotFoundException - if get failsvoid triggerElection()
throws NotFoundException
NotFoundException - if the team does not existCopyright © 2014. All Rights Reserved.