|
Sonic Management API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sonicsw.ma.mgmtapi.config.impl.AbstractMgmtBeanFactory
public abstract class AbstractMgmtBeanFactory
| Constructor Summary | |
|---|---|
AbstractMgmtBeanFactory()
|
|
| Method Summary | |
|---|---|
void |
commit()
Commit all changes that have been made to the beans and saved. |
void |
connect(IDirectoryFileSystemService dsProxy)
Connect to the domain using the specified directory service interface |
void |
connect(java.lang.String domain,
java.lang.String url,
java.lang.String user,
java.lang.String password)
Connect to the domain using the specfied connection parameters. |
void |
connect(com.sonicsw.mx.config.TxnConfigServerUtility csu)
|
IMgmtBeanBase |
createBeanObject(com.sonicsw.mx.config.IConfigBean bean)
|
void |
createFolder(java.lang.String path)
Create a folder at the specified path. |
void |
createFolder(java.lang.String path,
java.util.Map attributes)
Create a folder at the specified path and assocatiate the attributes with the folder. |
java.lang.String |
createUniqueName()
Return a name that is unique across all beans. |
void |
deleteBean(IMgmtBeanBase bean)
Delete the specified bean from the DS. |
void |
deleteBeans(IMgmtBeanBase[] beans)
Delete the specified beans from the DS. |
void |
deleteFolder(java.lang.String path)
Delete the specified folder. |
void |
deleteFolderPath(java.lang.String path)
Recursively delete all folders and configurations under the specified path, including the path folder itself. |
void |
disconnect()
Disconnect from the domain |
boolean |
doesConfigurationNameExist(java.lang.String name,
java.lang.String folder)
Check if a configuration with the specified name already exists in the specified folder |
java.lang.String |
exportContainerBootConfiguration(IMgmtBeanBase bean,
java.lang.String domainName)
Generate the container boot configuration for the specified container bean. |
java.lang.String |
exportDSBootConfiguration(IMgmtBeanBase bean)
Generate the ds boot configuration for the specified bean. |
void |
flush()
Flush the config server of all modified and unmodified beans. |
IMgmtBeanBase |
getBean(java.lang.String viewPath)
Get the specified bean from the DS. |
com.sonicsw.mx.config.IConfigServer |
getConfigServer()
This method fetches the Config Server reference from the wrapped Config Server utility. |
com.sonicsw.mx.config.ConfigServerUtility |
getConfigServerUtility()
Get the ConfigServerUtility which is a wrapper around the Config Server to provide additional functionality such as import / export. |
java.util.List |
getConfigurationNames(java.lang.String parentFolder)
Get a list of all the configurations elements under the specified parent folder. |
java.lang.String[] |
getConfigurations(java.lang.String parentFolder)
Generates a java.lang.String array of all the configurations under the specified parent folder. |
java.lang.String |
getDomain()
Get the domain name for the underlying connection |
java.util.List |
getFolderNames(java.lang.String parent)
Get a list of all the folders under the specified parent folder. |
java.lang.String[] |
getFolders(java.lang.String parentFolder)
Generates a java.lang.String array of all the folders under the specified parent folder. |
java.util.List |
list(java.lang.String path)
Lists all the folders and elements names under the specified path. |
java.util.List |
listConfigElements(java.lang.String type)
List all configurations of a specified type e.g. |
java.util.List |
listFolderElements(java.lang.String type)
|
java.util.List |
listFolders(java.lang.String parentFolder)
Return list of folders names under specified path |
java.util.List |
loadBeansInDirectory(java.lang.String dsPath)
Loads the beans found under a DS path. |
java.lang.Class |
lookupReference(java.lang.String type,
java.lang.String version)
|
java.lang.Object |
lookupValue(com.sonicsw.mx.config.IConfigBean bean,
java.lang.Object key)
|
java.lang.Object |
lookupValue(java.lang.String type,
java.lang.String version,
java.lang.Object key)
|
boolean |
pathExists(java.lang.String path)
Check if a specified path exists. |
void |
rollback()
Rollback changes made to the underlying config beans. |
void |
saveBean(IMgmtBeanBase bean)
Save the specified bean to the DS. |
void |
saveBeans(IMgmtBeanBase[] beans)
Save the specified beans to the DS. |
void |
setFolderMetaAttributes(java.lang.String path,
java.util.Map attributes)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMgmtBeanFactory()
| Method Detail |
|---|
public void commit()
throws MgmtException
MgmtException
public void connect(IDirectoryFileSystemService dsProxy)
throws MgmtException
dsProxy -
MgmtException
public void connect(java.lang.String domain,
java.lang.String url,
java.lang.String user,
java.lang.String password)
throws MgmtException
domain - url - user - password -
MgmtExceptionpublic void connect(com.sonicsw.mx.config.TxnConfigServerUtility csu)
public IMgmtBeanBase createBeanObject(com.sonicsw.mx.config.IConfigBean bean)
throws MgmtException
MgmtException
public void createFolder(java.lang.String path)
throws MgmtException
path -
MgmtException
public void createFolder(java.lang.String path,
java.util.Map attributes)
throws MgmtException
path - The path to the new folder.attributes - Meta attributes to associate with this folder.
MgmtExceptionpublic java.lang.String createUniqueName()
public void deleteBean(IMgmtBeanBase bean)
throws MgmtException
MgmtException
public void deleteBeans(IMgmtBeanBase[] beans)
throws MgmtException
beans -
MgmtException
public void deleteFolder(java.lang.String path)
throws MgmtException
path -
MgmtException
public void deleteFolderPath(java.lang.String path)
throws MgmtException
path -
MgmtException
public void disconnect()
throws com.sonicsw.mx.config.ConfigServiceException
com.sonicsw.mx.config.ConfigServiceException
public boolean doesConfigurationNameExist(java.lang.String name,
java.lang.String folder)
name - parentFolder -
public java.lang.String exportContainerBootConfiguration(IMgmtBeanBase bean,
java.lang.String domainName)
throws MgmtException
MgmtException
public java.lang.String exportDSBootConfiguration(IMgmtBeanBase bean)
throws MgmtException
MgmtException
public void flush()
throws MgmtException
MgmtException
public IMgmtBeanBase getBean(java.lang.String viewPath)
throws MgmtException
MgmtExceptionpublic com.sonicsw.mx.config.IConfigServer getConfigServer()
public com.sonicsw.mx.config.ConfigServerUtility getConfigServerUtility()
public java.util.List getConfigurationNames(java.lang.String parentFolder)
throws MgmtException
parent - The parent folder under which to find all
available child configurations.
MgmtException - When an error occurs building the list of
configurations.
public java.lang.String[] getConfigurations(java.lang.String parentFolder)
throws MgmtException
parent - The parent folder under all available child
configurations will be found.
MgmtException - If a failure occurspublic java.lang.String getDomain()
public java.util.List getFolderNames(java.lang.String parent)
throws MgmtException
parent - The parent folder under all available child
folders will be returned.
MgmtException - If a failure occurs
public java.lang.String[] getFolders(java.lang.String parentFolder)
throws MgmtException
parent - The parent folder under all available child
folders will be found.
MgmtException - If a failure occurs
public java.util.List list(java.lang.String path)
throws MgmtException
MgmtException
public java.util.List listConfigElements(java.lang.String type)
throws MgmtException
type - The type e.g. MQ_BROKER
MgmtException
public java.util.List listFolderElements(java.lang.String type)
throws MgmtException
MgmtException
public java.util.List listFolders(java.lang.String parentFolder)
throws MgmtException
MgmtException
public java.util.List loadBeansInDirectory(java.lang.String dsPath)
throws MgmtException
dsPath - The DS path to where in the DS the config elements are kept
MgmtException - If an error/load failure occurs
public java.lang.Class lookupReference(java.lang.String type,
java.lang.String version)
public java.lang.Object lookupValue(com.sonicsw.mx.config.IConfigBean bean,
java.lang.Object key)
public java.lang.Object lookupValue(java.lang.String type,
java.lang.String version,
java.lang.Object key)
public boolean pathExists(java.lang.String path)
path -
public void rollback()
throws MgmtException
MgmtException
public void saveBean(IMgmtBeanBase bean)
throws MgmtException
bean - The bean to be stored in the DS
MgmtException - If an error/save failure occurs
public void saveBeans(IMgmtBeanBase[] beans)
throws MgmtException
bean - The bean(s) to be stored in the DS
MgmtException - If an error/save failure occurs
public void setFolderMetaAttributes(java.lang.String path,
java.util.Map attributes)
throws MgmtException
MgmtException
|
Sonic Management API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||