public class AdminFactory.AdminImpl extends Object implements Admin
Admin.Cache, Admin.SchemaObjectType, Admin.TranlatorPropertyType| Constructor and Description |
|---|
AdminImpl(org.jboss.as.controller.client.ModelControllerClient connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataRoleMapping(String vdbName,
int vdbVersion,
String dataRole,
String mappedRoleName) |
void |
addDataRoleMapping(String vdbName,
String vdbVersion,
String dataRole,
String mappedRoleName) |
void |
addSource(String vdbName,
int vdbVersion,
String modelName,
String sourceName,
String translatorName,
String dsName) |
void |
addSource(String vdbName,
String vdbVersion,
String modelName,
String sourceName,
String translatorName,
String dsName) |
org.jboss.dmr.ModelNode |
buildUndeployRequest(String name,
boolean force) |
void |
cancelRequest(String sessionId,
long executionId) |
void |
changeVDBConnectionType(String vdbName,
int vdbVersion,
VDB.ConnectionType type) |
void |
changeVDBConnectionType(String vdbName,
String vdbVersion,
VDB.ConnectionType type) |
void |
clearCache(String cacheType) |
void |
clearCache(String cacheType,
String vdbName,
int vdbVersion) |
void |
clearCache(String cacheType,
String vdbName,
String vdbVersion) |
void |
close() |
void |
createDataSource(String deploymentName,
String templateName,
Properties properties)
Use this method to create JDBC driver based connection, XA-datasource or Resource Adapter.
|
void |
deleteDataSource(String deployedName) |
void |
deploy(String deployName,
InputStream vdb) |
void |
deploy(String deployName,
InputStream vdb,
boolean persist) |
void |
flush() |
Collection<? extends CacheStatistics> |
getCacheStats(String cacheType) |
Collection<String> |
getCacheTypes() |
Properties |
getDataSource(String deployedName) |
Collection<String> |
getDataSourceNames()
/subsystem=datasources:read-children-names(child-type=data-source)
/subsystem=resource-adapters/resource-adapter={rar-file}:read-resource
|
Set<String> |
getDataSourceTemplateNames() |
List<String> |
getDeployments() |
Collection<? extends EngineStatistics> |
getEngineStats() |
Set<String> |
getInstalledJDBCDrivers() |
String |
getProfileName() |
String |
getQueryPlan(String sessionId,
long executionId) |
Collection<? extends Request> |
getRequests() |
Collection<? extends Request> |
getRequestsForSession(String sessionId) |
String |
getSchema(String vdbName,
int vdbVersion,
String modelName,
EnumSet<Admin.SchemaObjectType> allowedTypes,
String typeNamePattern) |
String |
getSchema(String vdbName,
String vdbVersion,
String modelName,
EnumSet<Admin.SchemaObjectType> allowedTypes,
String typeNamePattern) |
Collection<? extends Session> |
getSessions() |
Collection<PropertyDefinition> |
getTemplatePropertyDefinitions(String templateName)
pattern on CLI
/subsystem=datasources/data-source=foo:read-resource-description
|
Collection<? extends Transaction> |
getTransactions() |
Translator |
getTranslator(String deployedName) |
Collection<? extends PropertyDefinition> |
getTranslatorPropertyDefinitions(String translatorName)
Deprecated.
|
Collection<? extends PropertyDefinition> |
getTranslatorPropertyDefinitions(String translatorName,
Admin.TranlatorPropertyType type) |
Collection<? extends Translator> |
getTranslators() |
VDB |
getVDB(String vdbName,
int vdbVersion) |
VDB |
getVDB(String vdbName,
String vdbVersion) |
List<? extends VDB> |
getVDBs() |
Collection<? extends WorkerPoolStatistics> |
getWorkerPoolStats() |
void |
markDataSourceAvailable(String jndiName) |
void |
removeDataRoleMapping(String vdbName,
int vdbVersion,
String dataRole,
String mappedRoleName) |
void |
removeDataRoleMapping(String vdbName,
String vdbVersion,
String dataRole,
String mappedRoleName) |
void |
removeSource(String vdbName,
int vdbVersion,
String modelName,
String sourceName) |
void |
removeSource(String vdbName,
String vdbVersion,
String modelName,
String sourceName) |
void |
restart() |
void |
restartVDB(String vdbName,
int vdbVersion,
String... models) |
void |
restartVDB(String vdbName,
String vdbVersion,
String... models) |
void |
setAnyAuthenticatedForDataRole(String vdbName,
int vdbVersion,
String dataRole,
boolean anyAuthenticated) |
void |
setAnyAuthenticatedForDataRole(String vdbName,
String vdbVersion,
String dataRole,
boolean anyAuthenticated) |
void |
setProfileName(String name) |
void |
terminateSession(String sessionId) |
void |
terminateTransaction(String transactionId) |
void |
undeploy(String deployedName) |
void |
undeploy(String deployedName,
boolean force) |
void |
updateSource(String vdbName,
int vdbVersion,
String sourceName,
String translatorName,
String dsName) |
void |
updateSource(String vdbName,
String vdbVersion,
String sourceName,
String translatorName,
String dsName) |
public AdminImpl(org.jboss.as.controller.client.ModelControllerClient connection)
public void setProfileName(String name)
setProfileName in interface Adminpublic void clearCache(String cacheType) throws AdminException
clearCache in interface AdminAdminExceptionpublic void clearCache(String cacheType, String vdbName, String vdbVersion) throws AdminException
clearCache in interface AdminAdminExceptionpublic Set<String> getInstalledJDBCDrivers() throws AdminException
AdminExceptionpublic String getProfileName()
public void createDataSource(String deploymentName, String templateName, Properties properties) throws AdminException
createDataSource in interface AdmindeploymentName - This becomes the pool name, as well as the jndi name of the sourcetemplateName - type of source. See getDataSourceNames for all available types.properties - All properties needed to create a data source, like connection-url, user, password
to see all the properties use getTemplatePropertyDefinitions to retrieve the full listAdminExceptionpublic Properties getDataSource(String deployedName) throws AdminException
getDataSource in interface AdminAdminExceptionpublic void deleteDataSource(String deployedName) throws AdminException
deleteDataSource in interface AdminAdminExceptionpublic void undeploy(String deployedName) throws AdminException
undeploy in interface AdminAdminExceptionpublic void undeploy(String deployedName, boolean force) throws AdminException
AdminExceptionpublic org.jboss.dmr.ModelNode buildUndeployRequest(String name, boolean force) throws org.jboss.as.cli.operation.OperationFormatException
org.jboss.as.cli.operation.OperationFormatExceptionpublic void deploy(String deployName, InputStream vdb) throws AdminException
deploy in interface AdminAdminExceptionpublic void deploy(String deployName, InputStream vdb, boolean persist) throws AdminException
deploy in interface AdminAdminExceptionpublic Collection<? extends CacheStatistics> getCacheStats(String cacheType) throws AdminException
getCacheStats in interface AdminAdminExceptionpublic Collection<? extends EngineStatistics> getEngineStats() throws AdminException
getEngineStats in interface AdminAdminExceptionpublic Collection<String> getCacheTypes() throws AdminException
getCacheTypes in interface AdminAdminExceptionpublic Collection<String> getDataSourceNames() throws AdminException
getDataSourceNames in interface AdminAdminExceptionAdmin.getDataSourceNames()public List<String> getDeployments()
getDeployments in interface Adminpublic Set<String> getDataSourceTemplateNames() throws AdminException
getDataSourceTemplateNames in interface AdminAdminExceptionpublic Collection<? extends WorkerPoolStatistics> getWorkerPoolStats() throws AdminException
getWorkerPoolStats in interface AdminAdminExceptionpublic void cancelRequest(String sessionId, long executionId) throws AdminException
cancelRequest in interface AdminAdminExceptionpublic Collection<? extends Request> getRequests() throws AdminException
getRequests in interface AdminAdminExceptionpublic Collection<? extends Request> getRequestsForSession(String sessionId) throws AdminException
getRequestsForSession in interface AdminAdminExceptionpublic Collection<? extends Session> getSessions() throws AdminException
getSessions in interface AdminAdminExceptionpublic Collection<PropertyDefinition> getTemplatePropertyDefinitions(String templateName) throws AdminException
getTemplatePropertyDefinitions in interface AdminAdminException@Deprecated public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName) throws AdminException
getTranslatorPropertyDefinitions in interface AdminAdminExceptionpublic Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type) throws AdminException
getTranslatorPropertyDefinitions in interface AdminAdminExceptionpublic Collection<? extends Transaction> getTransactions() throws AdminException
getTransactions in interface AdminAdminExceptionpublic void terminateSession(String sessionId) throws AdminException
terminateSession in interface AdminAdminExceptionpublic void terminateTransaction(String transactionId) throws AdminException
terminateTransaction in interface AdminAdminExceptionpublic Translator getTranslator(String deployedName) throws AdminException
getTranslator in interface AdminAdminExceptionpublic Collection<? extends Translator> getTranslators() throws AdminException
getTranslators in interface AdminAdminExceptionpublic VDB getVDB(String vdbName, String vdbVersion) throws AdminException
getVDB in interface AdminAdminExceptionpublic List<? extends VDB> getVDBs() throws AdminException
getVDBs in interface AdminAdminExceptionpublic void addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
addDataRoleMapping in interface AdminAdminExceptionpublic void clearCache(String cacheType, String vdbName, int vdbVersion) throws AdminException
clearCache in interface AdminAdminExceptionpublic void addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
addDataRoleMapping in interface AdminAdminExceptionpublic void removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
removeDataRoleMapping in interface AdminAdminExceptionpublic void setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
setAnyAuthenticatedForDataRole in interface AdminAdminExceptionpublic void changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type) throws AdminException
changeVDBConnectionType in interface AdminAdminExceptionpublic void updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
updateSource in interface AdminAdminExceptionpublic void addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
addSource in interface AdminAdminExceptionpublic VDB getVDB(String vdbName, int vdbVersion) throws AdminException
getVDB in interface AdminAdminExceptionpublic void removeSource(String vdbName, int vdbVersion, String modelName, String sourceName) throws AdminException
removeSource in interface AdminAdminExceptionpublic void restartVDB(String vdbName, int vdbVersion, String... models) throws AdminException
restartVDB in interface AdminAdminExceptionpublic String getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
getSchema in interface AdminAdminExceptionpublic void removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
removeDataRoleMapping in interface AdminAdminExceptionpublic void setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
setAnyAuthenticatedForDataRole in interface AdminAdminExceptionpublic void changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type) throws AdminException
changeVDBConnectionType in interface AdminAdminExceptionpublic void updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
updateSource in interface AdminAdminExceptionpublic void addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
addSource in interface AdminAdminExceptionpublic void removeSource(String vdbName, String vdbVersion, String modelName, String sourceName) throws AdminException
removeSource in interface AdminAdminExceptionpublic void markDataSourceAvailable(String jndiName) throws AdminException
markDataSourceAvailable in interface AdminAdminExceptionpublic void restartVDB(String vdbName, String vdbVersion, String... models) throws AdminException
restartVDB in interface AdminAdminExceptionpublic String getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
getSchema in interface AdminAdminExceptionpublic String getQueryPlan(String sessionId, long executionId) throws AdminException
getQueryPlan in interface AdminAdminExceptionpublic void flush()
Copyright © 2019 JBoss by Red Hat. All rights reserved.