|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.fv.uploadtocache.StandardUploadToCacheService
Use the newStandardUploadToCacheService
static factory method(s),
not the StandardUploadToCacheService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
StandardUploadToCacheService.RevaultCachedContentListener
|
Field Summary | |
private static String |
CLASSNAME
|
private static String |
MIRROR_MOUNT_PATH_SEPARATOR
|
private static String |
RESOURCE
|
private static boolean |
REVAULT_CACHEDITEMS_ON_COMMIT
|
private static String |
REVAULT_CACHEDITEMS_QUEUE_NAME
|
private static String |
REVAULT_CACHEDITEMS_TRANSACTION_LISTENER
|
private static ProcessingQueue |
revaultQueue
|
private static String |
UPLOAD_HELPER_CLASS
|
private static String |
UPLOAD_TO_MASTER_CACHE_METHOD
|
private static String |
UPLOAD_TO_REPLICA_CACHE_METHOD
|
private static boolean |
USE_FVITEMS_STORED_PROCEDURE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardUploadToCacheService()
|
Method Summary | |
void |
clientUpdateContent(String docNumber,
String fileName,
CachedContentDescriptor cachedContDescr)
This method is intended for test purposes only. |
private FvItem |
createFvItem(FileFolder actFolder)
|
private Object[] |
createFvItems(FileFolder actFolder,
long numberOfItems)
|
private FvItem |
createLocalFvItem(FileFolder actFolder)
This method only create FvItem and set folder reference, it will not save it to database. |
private MasteredOnReplicaItem |
createLocalMasteredOnReplicaItem(FileFolder actFolder)
This method only create MasteredOnReplicaItem and set folder reference, it will not save it to database. |
private MasteredOnReplicaItem |
createMasteredOnReplicaItem(FileFolder actFolder)
|
private Object[] |
createMasteredOnReplicaItems(FileFolder actFolder,
long numberOfItems)
|
private static ProcessingQueue |
createQueue(String queueName,
boolean removeFailedEntires)
|
private Object[] |
createStoredItems(FileFolder actFolder,
long numberOfItems,
boolean masteredOnReplica)
|
private String |
createURLToCacheContent(Site cacheSite)
|
Vector |
findBackupFileList(String holderId)
Find a list of files related to Content Cache Server needed to backup for the specified ContentHolder with the ID "holderId". |
Vector |
findBackupFileListForSite(String siteName)
Find a list of files related to Content Cache Server needed to backup for the specified site. |
static void |
findStreamAtReplica(HTTPRequest request,
HTTPResponse response)
|
CacheDescriptor |
getCacheDescriptor(int number_of_files)
Supported API: false |
CacheDescriptor |
getCacheDescriptor(int number_of_files,
boolean useMasterCache)
Get CacheDescriptor for the specified number of files for upload to preferred site. |
private Site |
getCacheSite(boolean useMasterCache)
|
String |
getConceptualClassname()
Deprecated. |
static Vault |
getEnabledCacheDesignatedVault(Site site)
|
static FvItem |
getFvItem(long streamId)
|
static Hashtable |
getFvItems(long[] streamIds)
|
private Site |
getLocalSite()
|
static InputStream |
getMasteredItemInputStream(MasteredOnReplicaItem item)
Get the InputStream from replica site corresponding to the MasteredOnReplicaItem "item" Supported API: false |
static MasteredOnReplicaItem |
getMasteredOnReplicaItem(long streamId)
|
static Hashtable |
getMasteredOnReplicaItems(long[] streamIds)
|
private static String |
getSafeFolderPath(String folderPath)
Gets the first path in the folder mount. |
static StandardUploadToCacheService |
newStandardUploadToCacheService()
Default factory for the class. |
private static void |
PP(String s)
|
private static InputStream |
pullStreamFromReplica(String replicaUrl,
long FolderId,
String fileName)
|
private static WTDocument |
queryDocument(String number)
|
private static Site |
querySiteForMasteredOnReplicaItem(MasteredOnReplicaItem item)
|
static void |
registerForRevaulting(ContentHolder holder,
FvItem contentItem)
|
static void |
setMirrorMountPathSeparator(String newSeparator)
Sets a new separator used for mirror mount multiple paths. Default separator is semicolon ( ; ) |
private String |
signURL(String aUrl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String UPLOAD_HELPER_CLASS
private static final String UPLOAD_TO_REPLICA_CACHE_METHOD
private static final String UPLOAD_TO_MASTER_CACHE_METHOD
private static String MIRROR_MOUNT_PATH_SEPARATOR
private static final String REVAULT_CACHEDITEMS_TRANSACTION_LISTENER
private static final String REVAULT_CACHEDITEMS_QUEUE_NAME
private static boolean REVAULT_CACHEDITEMS_ON_COMMIT
private static ProcessingQueue revaultQueue
private static boolean USE_FVITEMS_STORED_PROCEDURE
Constructor Detail |
public StandardUploadToCacheService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static InputStream getMasteredItemInputStream(MasteredOnReplicaItem item) throws WTException
item
-
WTException
public static StandardUploadToCacheService newStandardUploadToCacheService() throws WTException
WTException
public CacheDescriptor getCacheDescriptor(int number_of_files) throws WTException
getCacheDescriptor
in interface UploadToCacheService
number_of_files
-
WTException
public void clientUpdateContent(String docNumber, String fileName, CachedContentDescriptor cachedContDescr) throws WTException, PropertyVetoException
clientUpdateContent
in interface UploadToCacheService
docNumber
- fileName
- cachedContDescr
-
WTException
PropertyVetoException
public Vector findBackupFileListForSite(String siteName) throws WTException
findBackupFileListForSite
in interface UploadToCacheService
siteName
-
WTException
public Vector findBackupFileList(String holderId) throws WTException
findBackupFileList
in interface UploadToCacheService
holderId
-
WTException
public CacheDescriptor getCacheDescriptor(int number_of_files, boolean useMasterCache) throws WTException
getCacheDescriptor
in interface UploadToCacheService
number_of_files
- useMasterCache
-
WTException
private static InputStream pullStreamFromReplica(String replicaUrl, long FolderId, String fileName) throws WTException
WTException
public static void findStreamAtReplica(HTTPRequest request, HTTPResponse response) throws WTException
WTException
private Site getCacheSite(boolean useMasterCache) throws WTException
WTException
private Site getLocalSite() throws WTException
WTException
private String createURLToCacheContent(Site cacheSite) throws WTException
WTException
private MasteredOnReplicaItem createLocalMasteredOnReplicaItem(FileFolder actFolder) throws WTException
WTException
private MasteredOnReplicaItem createMasteredOnReplicaItem(FileFolder actFolder) throws WTException
WTException
private Object[] createMasteredOnReplicaItems(FileFolder actFolder, long numberOfItems) throws WTException
WTException
private Object[] createFvItems(FileFolder actFolder, long numberOfItems) throws WTException
WTException
private Object[] createStoredItems(FileFolder actFolder, long numberOfItems, boolean masteredOnReplica) throws WTException
WTException
private FvItem createLocalFvItem(FileFolder actFolder) throws WTException
WTException
private FvItem createFvItem(FileFolder actFolder) throws WTException
WTException
public static Vault getEnabledCacheDesignatedVault(Site site) throws WTException
WTException
public static MasteredOnReplicaItem getMasteredOnReplicaItem(long streamId) throws WTException
WTException
public static Hashtable getMasteredOnReplicaItems(long[] streamIds) throws WTException
WTException
public static Hashtable getFvItems(long[] streamIds) throws WTException
WTException
public static FvItem getFvItem(long streamId) throws WTException
WTException
private static WTDocument queryDocument(String number) throws WTException
WTException
private static Site querySiteForMasteredOnReplicaItem(MasteredOnReplicaItem item) throws WTException
WTException
private static void PP(String s)
public static void setMirrorMountPathSeparator(String newSeparator)
newSeparator
- a string with the new separatorprivate static String getSafeFolderPath(String folderPath)
folderPath
- folder path as stored in the mount
private String signURL(String aUrl) throws WTException
WTException
public static void registerForRevaulting(ContentHolder holder, FvItem contentItem)
private static ProcessingQueue createQueue(String queueName, boolean removeFailedEntires) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |