| org.wso2.esb.registry.ESBRegistry
ESBRegistry | public class ESBRegistry extends AbstractRegistry implements Registry(Code) | | Registry implementation for ESB. This assumes that registry resources can be accessed using file
system or http. Registry meta data are accessed using web services.
|
FILE | final public static int FILE(Code) | | |
HTTP | final public static int HTTP(Code) | | |
HTTPS | final public static int HTTPS(Code) | | |
URL_SEPARATOR_CHAR | final public static char URL_SEPARATOR_CHAR(Code) | | |
ESBRegistry | public ESBRegistry()(Code) | | |
addConfigProperty | public void addConfigProperty(String name, String value)(Code) | | Configure the ESB registry using registry parameters.
root: file:directory - registry is on local host
directory is used to access metadata
root: http/https:location - has to specify one of the following settings
localRegistry - location of the local registry
metadataService - url of the service to access metadata
If none of above parameters are given "registry" folder is taken as the local registry.
Parameters: name - Parameters: value - |
addResource | public void addResource(String parentName, String resourceName, boolean isLeaf) throws Exception(Code) | | Adds a new resource to the registry.
Parameters: parentName - Key of the parent of the new resource Parameters: resourceName - Name of the new resource Parameters: isLeaf - Specifies whether the new resource is a leaf or not. In a file system basedregistry, leaf is a file and non-leaf is a folder. throws: Exception - |
getCachableDuration | public long getCachableDuration()(Code) | | |
getChildren | public RegistryEntry[] getChildren(RegistryEntry entry)(Code) | | Gives the children of the given entry. If the registry is in the same host get the children
(subfolders and files) using the file system. If the registry is in a remote host, get
children using a WS call. Give null or registry entry with "" as the key to list the children
of the root.
Parameters: entry - children of the given entry |
getDescendants | public RegistryEntry[] getDescendants(RegistryEntry entry)(Code) | | |
getRegistryEntry | public RegistryEntry getRegistryEntry(String key)(Code) | | |
getRoot | public String getRoot()(Code) | | Returns the root of the registry. This is always a URL.
Registry root. |
removeResource | public void removeResource(String key)(Code) | | Removes the registry resource identified by the given key. If the key points to a directory,
all its subdirectories and files in those directoris will be deleted. All the database
entries for deleted registry resources will be removed.
Parameters: key - |
updateRegistryEntry | public void updateRegistryEntry(RegistryEntry entry)(Code) | | Updates the metadata of the given registry entry
Parameters: entry - RegistryEntry containing the new metadata |
updateResource | public void updateResource(String key, OMElement value) throws Exception(Code) | | Updates the registry resource pointed by the given key.
Parameters: key - Key of the resource to be updated Parameters: value - New value of the resource throws: Exception - |
|
|