|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceSelector
This service is responsible for managing where the data is persisted locally, remotely or not persisted at all.
| Nested Class Summary | |
|---|---|
static class |
ServiceSelector.Target
|
| Method Summary | |
|---|---|
ServiceSelector.Target |
getTarget()
Returns the active target. |
boolean |
isHostAvailable()
Returns true if host plugin is available. |
void |
setClientAvailable(boolean available)
Sets the client availability. |
void |
setTarget(ServiceSelector.Target target)
Sets the target to use if available. |
| Method Detail |
|---|
ServiceSelector.Target getTarget()
Note that this might differ from the target set by
setTarget(com.atlassian.mywork.service.ServiceSelector.Target)
for example when configured to use ServiceSelector.Target.REMOTE but the remote
host is not available.
void setTarget(ServiceSelector.Target target)
target - the target to use if availablevoid setClientAvailable(boolean available)
available - true if ServiceSelector.Target.REMOTE target can be usedboolean isHostAvailable()
ServiceSelector.Target.LOCAL can be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||