public class SystemInformation extends Model<SystemInformation> implements Addressable<IpAddress>
| Constructor and Description |
|---|
SystemInformation(boolean isSelf,
IpAddress address)
Construct a new system descriptor.
|
SystemInformation(Id<SystemInformation,UUID> id,
boolean isSelf,
IpAddress address)
Construct a new system descriptor using the supplied unique
identification.
|
SystemInformation(SystemInformation si)
Construct a deep copy of another SystemInformation object.
|
| Modifier and Type | Method and Description |
|---|---|
IpAddress |
address()
Returns the contact address of the system.
|
long |
coreDataVersion()
Gets the core data version.
|
Date |
coreDataVersionTimestamp()
Gets the core data version timestamp.
|
IpAddress |
getAddress()
Gets the address.
|
boolean |
isSelf()
Returns true if this system information represents the local system.
|
SystemRole |
role()
Returns the role of the system.
|
void |
setAddress(IpAddress address)
Set the contact address of the system.
|
void |
setCoreDataVersion(long coreDataVersion)
Sets the core data version.
|
void |
setCoreDataVersionTimestamp(Date coreDataVersionTimestamp)
Sets the core data version timestamp.
|
void |
setRole(SystemRole role)
Sets the role of the system.
|
void |
setStatus(SystemStatus status)
Sets the
Status for the system. |
void |
setTimeAtLastContact(long remoteContactTime)
Set the current time on the system, as recorded at the time of the last
contact with this system.
|
void |
setTimeAtLastContact(long remoteContactTime,
long localContactTime)
Set the current time on the system, as recorded at the time of the last
contact with this system.
|
void |
setVersion(BuildVersion version)
Set the software version of the system.
|
SystemStatus |
status()
Returns the
Status for the system. |
long |
timeAtLastContact()
Returns the current time on the system, recorded at the time of the last
contact with this system.
|
long |
timeOfLastContact()
Returns the local time of the last contact with the system.
|
long |
timeSkew()
Return the current time-skew in milliseconds relative to this system.
|
BuildVersion |
version()
Returns the software version of the system.
|
equals, getId, hashCode, toStringpublic SystemInformation(boolean isSelf,
IpAddress address)
isSelf - true to indicate this descriptor represents local systemaddress - contact addresspublic SystemInformation(Id<SystemInformation,UUID> id, boolean isSelf, IpAddress address)
isSelf - true to indicate this descriptor represents local systemid - the unique idaddress - contact addressIllegalArgumentException - if unique id is nullpublic SystemInformation(SystemInformation si)
si - a SystemInformation object to copypublic BuildVersion version()
public void setVersion(BuildVersion version)
version - new software versionpublic IpAddress address()
public void setAddress(IpAddress address)
address - new contact addresspublic long coreDataVersion()
public void setCoreDataVersion(long coreDataVersion)
coreDataVersion - the core data versionpublic Date coreDataVersionTimestamp()
public void setCoreDataVersionTimestamp(Date coreDataVersionTimestamp)
coreDataVersionTimestamp - the core data version timestamppublic SystemRole role()
public void setRole(SystemRole role)
role - new system rolepublic long timeAtLastContact()
public long timeOfLastContact()
public void setTimeAtLastContact(long remoteContactTime)
remoteContactTime - time on the remote system at the time of last contactpublic void setTimeAtLastContact(long remoteContactTime,
long localContactTime)
remoteContactTime - time on the remote system at the time of last contactlocalContactTime - time on the local system at the time of last contactpublic long timeSkew()
public boolean isSelf()
true if local systempublic SystemStatus status()
Status for the system.public void setStatus(SystemStatus status)
Status for the system.status - the status to setpublic IpAddress getAddress()
AddressablegetAddress in interface Addressable<IpAddress>Copyright © 2014. All Rights Reserved.