Package org.glassfish.jdbc.admin.cli
Class JDBCConnectionPoolManager
- java.lang.Object
-
- org.glassfish.jdbc.admin.cli.JDBCConnectionPoolManager
-
- All Implemented Interfaces:
ResourceManager
@Service(name="jdbc-connection-pool") public class JDBCConnectionPoolManager extends Object implements ResourceManager
- Author:
- Prashanth Abbagani
-
-
Constructor Summary
Constructors Constructor Description JDBCConnectionPoolManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceStatuscreate(Resources resources, HashMap attributes, Properties properties, String target)creates the resource as a child to the resources providedResourcecreateConfigBean(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 configurationResourceStatusdelete(Iterable<Server> servers, Iterable<Cluster> clusters, Resources resources, String cascade, String poolName)StringgetResourceType()returns the resource-typevoidsetAttributes(HashMap attrList)
-
-
-
Method Detail
-
getResourceType
public String getResourceType()
Description copied from interface:ResourceManagerreturns the resource-type- Specified by:
getResourceTypein interfaceResourceManager- Returns:
- resource-type
-
create
public ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
Description copied from interface:ResourceManagercreates the resource as a child to the resources provided- Specified by:
createin interfaceResourceManager- Parameters:
resources- parent for the resource to be createdattributes- resource configurationproperties- propertiestarget- target- Returns:
- ResourceStatus indicating the status of resource creation
- Throws:
Exception- when unable to create the resource
-
setAttributes
public void setAttributes(HashMap attrList)
-
delete
public ResourceStatus delete(Iterable<Server> servers, Iterable<Cluster> clusters, Resources resources, String cascade, String poolName) throws Exception
- Throws:
Exception
-
createConfigBean
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
Description copied from interface:ResourceManagercreates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configuration- Specified by:
createConfigBeanin interfaceResourceManager- Parameters:
resources- parent for the resource to be createdattributes- attributes of the resourceproperties- properties of the resourcevalidate- indicate whether config validation is required or not- Returns:
- Config-Bean equivalent of the resource
- Throws:
Exception- when unable to create config-bean-equivalent
-
-