1 23 package com.sun.enterprise.resource; 24 25 26 import javax.transaction.Transaction ; 27 import com.sun.enterprise.connectors.ConnectorConnectionPool; 28 29 32 public interface ResourcePool { 33 34 public ResourceHandle getResource(ResourceSpec spec, 37 ResourceAllocator alloc, 38 Transaction tran) throws PoolingException; 39 41 public void resourceClosed(ResourceHandle resource); 42 43 public void resourceErrorOccurred(ResourceHandle resource); 44 45 public void addResource(ResourceSpec spec, 46 ResourceHandle resource); 47 48 public void resourceEnlisted(Transaction tran, ResourceHandle resource); 49 50 public void transactionCompleted(Transaction tran, int status); 51 52 public void resizePool(boolean forced); 53 54 public void emptyPool(); 57 58 59 public void reconfigPoolProperties( ConnectorConnectionPool ccp ) 61 throws PoolingException; 62 63 public void disableMonitoring(); 65 public void setMonitoringEnabledHigh(); 66 public void setMonitoringEnabledLow(); 67 public boolean isMonitoringEnabled(); 68 69 public void cancelResizerTask(); 71 72 public void switchOnMatching(); 73 74 public String getPoolName(); 75 76 public void emptyFreeConnectionsInPool(); 77 78 87 public int getMaxPoolSize(); 88 89 97 public int getSteadyPoolSize(); 98 99 108 public void setMaxPoolSize( int size ); 109 110 118 public void setSteadyPoolSize( int size ); 119 120 132 public void setSelfManaged( boolean selfManaged ); 133 } 134 135 136 | Popular Tags |