public class RepoUsage
extends java.lang.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(java.lang.Long lastUpdate,
java.lang.Long users,
java.lang.Long documents,
RepoUsage.LicenseMode licenseMode,
java.lang.Long licenseExpiryDate,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getDocuments()
Get the number of documents or null if not known
|
java.lang.Long |
getLastUpdate()
Get the time (ms since epoch) that the repository usage was last updated.
|
java.lang.Long |
getLicenseExpiryDate()
Get the server license expiry date.
|
RepoUsage.LicenseMode |
getLicenseMode()
Get the server license mode.
|
java.lang.Long |
getUsers()
Get the number of users or null if unknown
|
boolean |
isReadOnly()
Get the read-write state of the repository
|
java.lang.String |
toString() |
public RepoUsage(java.lang.Long lastUpdate,
java.lang.Long users,
java.lang.Long documents,
RepoUsage.LicenseMode licenseMode,
java.lang.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 boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Long getLastUpdate()
public java.lang.Long getUsers()
public java.lang.Long getDocuments()
public RepoUsage.LicenseMode getLicenseMode()
public java.lang.Long getLicenseExpiryDate()
public boolean isReadOnly()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.