Manage Resources for discovered targets and provide methods to retrieve matched Resources.
Public Methods
-
ResourceManager(UCH* uch, string localResDirUri, string resServerAppPath, string docRoot)
- Constructor.
-
ResourceManager(UCH* uch, string localResDirUri, string resserverPath, string docRoot, string userName, string password)
- Constructor.
-
void addResourceDir(string tdUri)
- Parse <ResDir> Element of Target Description and add it in the list of TargetDescriptions.
-
list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
- Return List of matched Resources with 'resPropsList'.
-
void updateDynRes(list<string>* sessionIds, list<string>* eltIds)
- Signals that the set of atomic resources pertaining to a specific socket element has changed.
-
list<list<map<string, list<string>*>*>*> * retrieveResource( list<map<string, list<string>*>*>* resPropList)
- Retrieve all matched Resources from Resource Server.
-
list<map<string, list<string>*>*> * retrieveResource(map<string, list<string>*>* resPropMap)
- Retrieve all matched Resources from Resource Server.
-
RetrievalManager* getRetrievalManager()
- Return the Retrieval Manager Object
-
string retrieveResource(string url)
- Retrieve the resource from Resource Server and save it in cache directory and return that file path.
-
list<string> * clearCache()
- Clear all resources cache
-
void clearAtomicResources(list<string>*deletedLocalUris)
- Clear all Atomic Resources
-
list<string> * clearResourceSheetCache()
- Clear all resource sheet cache
-
list<string> * clearCache(string type)
- Clear all cache
-
list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* owners, list<string>* groups, map<string, list<string>*>* rights, list<string>*resourceUri)
- Call the same method on ResourceManager.
-
list<map<string, list<string>*>*> * getResourceServerResources(map<string, list<string>*>* resourceProps)
- Retrieve only best matched Resource from Resource Server.
-
list<map<string, list<string>*>*> * getResServerResource(map<string, list<string>*>* resourceProps)
- Retrieve only best matched Resource from Local Resource.
-
string convertURI(string uri)
- Call the same method of UCH.
-
list<map<string, void*>*> * getDynRes(string sessionId, list<map<string, string>*>* resProps)
- Get a dynamic atomic resource from the TA.
-
bool isUriContainsResServerAppPath(string uri)
- Check whether URI contains Resource Server Address or not
-
string getUserProfile()
- Get User Profile for logged user.
-
bool addLocalResource(string ucfFileURI)
- Add resource derived by specifies UCF file to the local resources.
Public Members
-
Clear the Resource Map
Documentation
Manage Resources for discovered targets and provide methods to retrieve matched Resources.
ResourceManager(UCH* uch, string localResDirUri, string resServerAppPath, string docRoot)
-
Constructor.
Assign reference of UCH to local variable.
- Parameters:
- uch - an Object of UCH
ResourceManager(UCH* uch, string localResDirUri, string resserverPath, string docRoot, string userName, string password)
-
Constructor.
Assign reference of UCH to local variable.
Instantiate ResourceRetrival class using other parameters.
- Parameters:
- uch - an Object of UCH
resServerUrl - a String value of resServerUrl
cacheDir - a String value of Cache dir path
userName - a String value of userName
password - a String value of password
serverName - a String value of Server Name
serverIP - a String value of Server IP
void addResourceDir(string tdUri)
-
Parse <ResDir> Element of Target Description and add it in the list of TargetDescriptions.
- Parameters:
- tdUri - a String value of Target Description URI(tdUri)
list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
-
Return List of matched Resources with 'resPropsList'.
First find it as Dynamic Resource and it is not found then find from the available Resource Directories.
Return cross indexed List of Matched Resources.
If one or more Resource then make 'NULL' entry for respective Resource in the List.
- Parameters:
- sessionId - a String value of SessionId
resPropsList - a List<Map<String, String>> of Resource Properties
- Returns:
- a List<List<Map<String,Object>>> of resources
void updateDynRes(list<string>* sessionIds, list<string>* eltIds)
-
Signals that the set of atomic resources pertaining to a specific socket element has changed.
- Parameters:
- sessionIds - a List<String> value of sessionIds
eltIds - a List<String> value of eltIds
list<list<map<string, list<string>*>*>*> * retrieveResource( list<map<string, list<string>*>*>* resPropList)
-
Retrieve all matched Resources from Resource Server.
- Parameters:
- resourceProps - an Object of List<Map<String, String>>;
- Returns:
- an Object of List<Map<String, Object>>
list<map<string, list<string>*>*> * retrieveResource(map<string, list<string>*>* resPropMap)
-
Retrieve all matched Resources from Resource Server.
- Parameters:
- resourceProps - an Object of Map<String, String>
- Returns:
- an Object of List<Map<String, Object>>
RetrievalManager* getRetrievalManager()
-
Return the Retrieval Manager Object
- Returns:
- Object of Retrieval Manager.
string retrieveResource(string url)
-
Retrieve the resource from Resource Server and save it in cache directory and return that file path.
- Parameters:
- url - a String value of uri.
- Returns:
- a String value of file path.
list<string> * clearCache()
-
Clear all resources cache
- Returns:
- list of clear resources
void clearAtomicResources(list<string>*deletedLocalUris)
-
Clear all Atomic Resources
- Parameters:
- deletedLocalUris - a list<string>
Clear the Resource Map
-
Clear the Resource Map
list<string> * clearResourceSheetCache()
-
Clear all resource sheet cache
- Returns:
- list<string> of deleted resource sheet
list<string> * clearCache(string type)
-
Clear all cache
- Returns:
- list<string> of cache
list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* owners, list<string>* groups, map<string, list<string>*>* rights, list<string>*resourceUri)
-
Call the same method on ResourceManager.
- Parameters:
- props - an Object of List<Map<String, List<String>>> specifies Resource Properties
owners - an Object of List<String> specifies owners of Resource
groups - an Object of List<String> specifies groups of Resource
rights - an Object of Map<String, List<String>> specifies rights of Resource
resourceUri - a String value of local resource path URI
- Returns:
- an Object of List<Map<String, String>>
list<map<string, list<string>*>*> * getResourceServerResources(map<string, list<string>*>* resourceProps)
-
Retrieve only best matched Resource from Resource Server.
- Parameters:
- resourceProps - an Object of Map<String, String>;
- Returns:
- an Object of List<Map<String, List<String>>>;
list<map<string, list<string>*>*> * getResServerResource(map<string, list<string>*>* resourceProps)
-
Retrieve only best matched Resource from Local Resource. if not found, will fetch from Resource Server.
- Parameters:
- caller - Object
resourceProps - an Object of Map<String, String>;
- Returns:
- an Object of List<Map<String, List<String>>>;
string convertURI(string uri)
-
Call the same method of UCH.
- Parameters:
- uri - a String value of URI
- Returns:
- a String value of converted URI
list<map<string, void*>*> * getDynRes(string sessionId, list<map<string, string>*>* resProps)
-
Get a dynamic atomic resource from the TA.
- Parameters:
- sessionId - a map value of sessionId
resProps - a List<Map<String,Stirng>> value of resProps
- Returns:
- a List<Map<String,Object>> representing Matched Resources
bool isUriContainsResServerAppPath(string uri)
-
Check whether URI contains Resource Server Address or not
- Parameters:
- uri - a String Value of URI
- Returns:
- true if URI contains Resource Server Address else false
string getUserProfile()
-
Get User Profile for logged user.
- Returns:
- an user profile file data
bool addLocalResource(string ucfFileURI)
-
Add resource derived by specifies UCF file to the local resources.
- Parameters:
- ucfFileURI - a String value of UCF file.
- Returns:
- a boolean value specifies whether local resource added successfully or not
- This class has no child classes.
- Author:
- Parikshit Thakur & Team, Trace R&D Center
- Version:
- Revision: 1.0
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.