@Entity public class SystemInformationEntity extends BaseEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemInformationEntity.SystemInformationRole
Representation of the System Role enumeration - required due to OSGi
behaviors with regards to the JPA representation of all entity
artifacts maintained in the same physical bundle.
|
| Constructor and Description |
|---|
SystemInformationEntity() |
SystemInformationEntity(UUID uid,
SystemRole role,
BuildVersion buildVersion,
IpAddress ipAddress,
boolean isSelf)
Creates a new system information entity.
|
| Modifier and Type | Method and Description |
|---|---|
BuildVersion |
getBuildVersion()
Gets the build version.
|
long |
getCoreDataVersion()
Gets the core data version.
|
Date |
getCoreDataVersionTimestamp()
Gets the core data version timestamp.
|
IpAddress |
getIpAddress()
Gets the IP address.
|
long |
getLocalTimeOfContact()
Gets the local time at connection.
|
long |
getRemoteTimeAtContact()
Gets the remote time at connection.
|
SystemRole |
getRole()
Gets the system role.
|
SystemStatus |
getStatus() |
boolean |
isSelf()
Gets the isSelf property.
|
void |
setBuildVersion(BuildVersion buildVersion)
Sets the build version.
|
void |
setCoreDataVersion(long coreDataVersion)
Sets the core data version.
|
void |
setCoreDataVersionTimestamp(Date coreDataVersionTimestamp)
Sets the core data version timestamp.
|
void |
setIpAddress(IpAddress ipAddress)
Set IP address.
|
void |
setIsSelf(boolean isSelf)
Sets the isSelf property.
|
void |
setLocalTimeOfContact(long localTimeOfContact)
Sets the local time at connection.
|
void |
setRemoteTimeAtContact(long remoteTimeAtContact)
Sets the remote time at connection.
|
void |
setRole(SystemRole role)
Sets the system role.
|
void |
setStatus(SystemStatus status)
Sets the systems status.
|
equals, getId, hashCode, toStringpublic SystemInformationEntity()
public SystemInformationEntity(UUID uid, SystemRole role, BuildVersion buildVersion, IpAddress ipAddress, boolean isSelf)
uid - the unique idrole - system role.buildVersion - build version.ipAddress - contact address.isSelf - true to indicate this descriptor represents local system.public void setRole(SystemRole role)
role - system role.public SystemRole getRole()
public void setBuildVersion(BuildVersion buildVersion)
buildVersion - the build version.public BuildVersion getBuildVersion()
public void setIpAddress(IpAddress ipAddress)
ipAddress - IP address.public IpAddress getIpAddress()
public long getCoreDataVersion()
public void setCoreDataVersion(long coreDataVersion)
coreDataVersion - the core data versionpublic Date getCoreDataVersionTimestamp()
public void setCoreDataVersionTimestamp(Date coreDataVersionTimestamp)
coreDataVersionTimestamp - the core data version timestamppublic void setRemoteTimeAtContact(long remoteTimeAtContact)
remoteTimeAtContact - the remote time at connection.public long getRemoteTimeAtContact()
public void setLocalTimeOfContact(long localTimeOfContact)
localTimeOfContact - the local time at connection.public long getLocalTimeOfContact()
public void setIsSelf(boolean isSelf)
isSelf - true if the system information represents the
local system, false otherwise.public boolean isSelf()
true if the system information represents the local
system, false otherwise.public void setStatus(SystemStatus status)
status - statuspublic SystemStatus getStatus()
Copyright © 2014. All Rights Reserved.