|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageManager
Manages the storage of binary objects and determines whether binary object data is stored on the file system or in the database.
| Method Summary | |
|---|---|
long |
getAttachmentDirectorySize()
Returns the size (in bytes) of the attachment directory on the file system. |
long |
getBinaryBodyDirectorySize()
Returns the size (in bytes) of the documentbody directory on the file system. |
long |
getImageDirectorySize()
Returns the size (in bytes) of the image directory on the file system. |
long |
getMaxFileSystemCacheSize()
Returns the maximum amount of storage (in bytes) that will be used by the file system cache when database binary object mode is enabled. |
boolean |
isDatabaseModeEnabled()
Returns true if binary data such as attachments, images or binary document bodies is stored in the database. |
boolean |
isFileSystemCacheEnabled()
Returns true if the binary object data is stored in the database and object data is cached on the file system in a directory within the jiveHome in order to relieve load on the database. |
void |
setDatabaseModeEnabled(boolean enabled)
Enables or disables storage of binary object data in the database. |
void |
setFileSystemCacheEnabled(boolean enabled)
Enables or disables storage of cached binary object data on the file system when in database mode. |
void |
setMaxFileSystemCacheSize(long maxSize)
Sets the maximum amount of storage (in bytes) that will be used by the file system cache when database binary object mode is enabled. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isDatabaseModeEnabled()
When database mode is enabled, binary data will be cached on the file system in a directory inside the jiveHome directory in order to relieve load on the database.
void setDatabaseModeEnabled(boolean enabled)
throws UnauthorizedException
When database mode is enabled, binary data will be cached on the file system in a directory inside the jiveHome directory in order to relieve load on the database.
enabled - true if binary object data should be stored in the database.
UnauthorizedException - if not a system administrator.boolean isFileSystemCacheEnabled()
void setFileSystemCacheEnabled(boolean enabled)
throws UnauthorizedException
enabled - true if binary object data should be cached on the file system.
UnauthorizedException - if not a system administrator.
long getMaxFileSystemCacheSize()
throws UnauthorizedException
UnauthorizedException - if not a system administrator.
void setMaxFileSystemCacheSize(long maxSize)
throws UnauthorizedException
maxSize - the max size of the file system cache for binary object data (in bytes).
UnauthorizedException - if not a system administrator.
long getAttachmentDirectorySize()
throws UnauthorizedException
The size of the attachment directory is computed asynchronously at system startup. Therefore, when the the size of the directory is not known, this method will return -1.
UnauthorizedException - if not a system administrator.
long getBinaryBodyDirectorySize()
throws UnauthorizedException
The size of the documentbody directory is computed asynchronously at system startup. Therefore, when the the size of the directory is not known, this method will return -1.
UnauthorizedException - if not a system administrator.
long getImageDirectorySize()
throws UnauthorizedException
The size of the image directory is computed asynchronously at system startup. Therefore, when the the size of the directory is not known, this method will return -1.
UnauthorizedException - if not a system administrator.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||