Class ReplicationDomainDB.ReplicaDbDescription
- java.lang.Object
-
- org.opends.server.replication.server.changelog.api.ReplicationDomainDB.ReplicaDbDescription
-
- Enclosing interface:
- ReplicationDomainDB
public static class ReplicationDomainDB.ReplicaDbDescription extends Object
Describes the content of a Replica DB.
-
-
Constructor Summary
Constructors Constructor Description ReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile)
Constructs a new ReplicaDbDescription with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationDomainDB.ReplicaDbFileContent
getNewestFile()
Returns the content of the newest file in the Replica DB.int
getNumberOfFiles()
Returns the number of files in the Replica DB.boolean
isNewestMessageReplicaOfflineMessage()
Checks if the newest message is a replica offline message.
-
-
-
Constructor Detail
-
ReplicaDbDescription
public ReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile)
Constructs a new ReplicaDbDescription with the specified parameters.- Parameters:
numberOfFiles
- the number of files in the Replica DBnewestMessageIsReplicaOfflineMessage
- a flag indicating if the newest message is a replica offline messagenewestFile
- the content of the newest file in the Replica DB
-
-
Method Detail
-
getNumberOfFiles
public int getNumberOfFiles()
Returns the number of files in the Replica DB.- Returns:
- the number of files
-
isNewestMessageReplicaOfflineMessage
public boolean isNewestMessageReplicaOfflineMessage()
Checks if the newest message is a replica offline message.- Returns:
- true if the newest message is a replica offline message, false otherwise
-
getNewestFile
public ReplicationDomainDB.ReplicaDbFileContent getNewestFile()
Returns the content of the newest file in the Replica DB.- Returns:
- the content of the newest file
-
-