public class RepoUsage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepoUsage.LicenseMode
Enumeration of the server license modes.
|
static class |
RepoUsage.UsageType
Enumeration of the common usage types
|
Constructor and Description |
---|
RepoUsage(Long lastUpdate,
Long users,
Long documents,
RepoUsage.LicenseMode licenseMode,
Long licenseExpiryDate,
boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getDocuments()
Get the number of documents or null if not known
|
Long |
getLastUpdate()
Get the time (ms since epoch) that the repository usage was last updated.
|
Long |
getLicenseExpiryDate()
Get the server license expiry date.
|
RepoUsage.LicenseMode |
getLicenseMode()
Get the server license mode.
|
Long |
getUsers()
Get the number of users or null if unknown
|
boolean |
isReadOnly()
Get the read-write state of the repository
|
String |
toString() |
public RepoUsage(Long lastUpdate, Long users, Long documents, RepoUsage.LicenseMode licenseMode, Long licenseExpiryDate, boolean readOnly)
lastUpdate
- the time the repository usage was last updatedusers
- the number of users or null if not knowndocuments
- the number of documents or null if not knownlicenseMode
- the server license mode in effect at runtimelicenseExpiryDate
- the date that the license expires or null if it doesn'treadOnly
- true if the server is currently read-onlypublic Long getLastUpdate()
public Long getUsers()
public Long getDocuments()
public RepoUsage.LicenseMode getLicenseMode()
public Long getLicenseExpiryDate()
public boolean isReadOnly()
Copyright © 2005–2017 Alfresco Software. All rights reserved.