public interface SystemInformationService extends Observable<SystemInformationListener>
Modifier and Type | Method and Description |
---|---|
void |
consolidateCoreDataVersion(long sourceSystemCoreDataVersion)
Consolidates the core data version with an up to date system.
|
void |
coreDataChanged()
Notify that core data has changed and thus core data version needs to
be updated.
|
Collection<SystemInformation> |
getActiveSystems()
Gets all known active systems.
|
SystemInformation |
getSystem()
Gets the local system information.
|
SystemInformation |
getSystem(Id<SystemInformation,UUID> id)
Get the system information with the specified unique id.
|
Collection<SystemInformation> |
getSystems()
Gets all known systems.
|
boolean |
isConfigurationSafe()
Is the system safe to change configuration without risk of losing
changes across team members?
|
boolean |
isMajorityCluster()
Check cluster majority.
|
SystemInformation |
setSelfIp(IpAddress ip)
Deprecated.
|
register, unregister
SystemInformation getSystem()
SystemInformation getSystem(Id<SystemInformation,UUID> id)
id
- system idCollection<SystemInformation> getSystems()
Collection<SystemInformation> getActiveSystems()
void coreDataChanged()
void consolidateCoreDataVersion(long sourceSystemCoreDataVersion)
sourceSystemCoreDataVersion
- core data version of the system that
is up to date and thus the data has been synchronized withboolean isMajorityCluster()
true
if current cluster members form absolute majority of
configured cluster, false
otherwiseboolean isConfigurationSafe()
true
if configuration changes are safe,
false
otherwise@Deprecated SystemInformation setSelfIp(IpAddress ip)
ip
- the new IP addressIllegalArgumentException
- if the ip
is not a valid
IP address on the system, or if the system is teamedNullPointerException
- if any of the arguments are nullCopyright © 2015. All Rights Reserved.