@Service(name="jdbc-connection-pool") public class JDBCConnectionPoolManager extends Object implements ResourceManager
| Constructor and Description |
|---|
JDBCConnectionPoolManager() |
| Modifier and Type | Method and Description |
|---|---|
ResourceStatus |
create(Resources resources,
HashMap attributes,
Properties properties,
String target)
creates the resource as a child to the resources provided
|
Resource |
createConfigBean(Resources resources,
HashMap attributes,
Properties properties,
boolean validate)
creates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configuration |
ResourceStatus |
delete(Iterable<Server> servers,
Iterable<Cluster> clusters,
Resources resources,
String cascade,
String poolName) |
String |
getResourceType()
returns the resource-type
|
void |
setAttributes(HashMap attrList) |
public String getResourceType()
ResourceManagergetResourceType in interface ResourceManagerpublic ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
ResourceManagercreate in interface ResourceManagerresources - parent for the resource to be createdattributes - resource configurationproperties - propertiestarget - targetException - when unable to create the resourcepublic void setAttributes(HashMap attrList)
public ResourceStatus delete(Iterable<Server> servers, Iterable<Cluster> clusters, Resources resources, String cascade, String poolName) throws Exception
Exceptionpublic Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
ResourceManagercreateConfigBean in interface ResourceManagerresources - parent for the resource to be createdattributes - attributes of the resourceproperties - properties of the resourcevalidate - indicate whether config validation is required or notException - when unable to create config-bean-equivalentCopyright © 2019. All rights reserved.