@Override public int getPoolRemoveAbandonedTimeoutSeconds() { return commonsDbcp().getRemoveAbandonedTimeout(); }
@Override public ProtobufSystemInfo.Section toProtobuf() { ProtobufSystemInfo.Section.Builder builder = ProtobufSystemInfo.Section.newBuilder(); builder.setName("Compute Engine Database Connection"); builder.addAttributesBuilder().setKey("Pool Initial Size").setLongValue(getPoolInitialSize()).build(); builder.addAttributesBuilder().setKey("Pool Active Connections").setLongValue(getPoolActiveConnections()).build(); builder.addAttributesBuilder().setKey("Pool Idle Connections").setLongValue(getPoolIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Active Connections").setLongValue(getPoolMaxActiveConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Idle Connections").setLongValue(getPoolMaxIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Min Idle Connections").setLongValue(getPoolMinIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Wait (ms)").setLongValue(getPoolMaxWaitMillis()).build(); builder.addAttributesBuilder().setKey("Pool Remove Abandoned").setBooleanValue(getPoolRemoveAbandoned()).build(); builder.addAttributesBuilder().setKey("Pool Remove Abandoned Timeout (sec)").setLongValue(getPoolRemoveAbandonedTimeoutSeconds()).build(); return builder.build(); } }
@Override public ProtobufSystemInfo.Section toProtobuf() { ProtobufSystemInfo.Section.Builder builder = ProtobufSystemInfo.Section.newBuilder(); builder.setName("Compute Engine Database Connection"); builder.addAttributesBuilder().setKey("Pool Initial Size").setLongValue(getPoolInitialSize()).build(); builder.addAttributesBuilder().setKey("Pool Active Connections").setLongValue(getPoolActiveConnections()).build(); builder.addAttributesBuilder().setKey("Pool Idle Connections").setLongValue(getPoolIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Active Connections").setLongValue(getPoolMaxActiveConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Idle Connections").setLongValue(getPoolMaxIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Min Idle Connections").setLongValue(getPoolMinIdleConnections()).build(); builder.addAttributesBuilder().setKey("Pool Max Wait (ms)").setLongValue(getPoolMaxWaitMillis()).build(); builder.addAttributesBuilder().setKey("Pool Remove Abandoned").setBooleanValue(getPoolRemoveAbandoned()).build(); builder.addAttributesBuilder().setKey("Pool Remove Abandoned Timeout (sec)").setLongValue(getPoolRemoveAbandonedTimeoutSeconds()).build(); return builder.build(); } }
@Override public int getPoolInitialSize() { return commonsDbcp().getInitialSize(); }
@Override public boolean getPoolRemoveAbandoned() { return commonsDbcp().getRemoveAbandonedOnBorrow(); }
@Override public int getPoolMaxActiveConnections() { return commonsDbcp().getMaxTotal(); }
@Override public int getPoolIdleConnections() { return commonsDbcp().getNumIdle(); }
@Override public long getPoolMaxWaitMillis() { return commonsDbcp().getMaxWaitMillis(); }
@Override public int getPoolMaxIdleConnections() { return commonsDbcp().getMaxIdle(); }
@Override public int getPoolMinIdleConnections() { return commonsDbcp().getMinIdle(); }
@Override public int getPoolActiveConnections() { return commonsDbcp().getNumActive(); }
@Override public long getPoolMaxWaitMillis() { return commonsDbcp().getMaxWait(); }
@Override public int getPoolIdleConnections() { return commonsDbcp().getNumIdle(); }
@Override public int getPoolMaxIdleConnections() { return commonsDbcp().getMaxIdle(); }
@Override public int getPoolInitialSize() { return commonsDbcp().getInitialSize(); }
@Override public boolean getPoolRemoveAbandoned() { return commonsDbcp().getRemoveAbandoned(); }
@Override public int getPoolActiveConnections() { return commonsDbcp().getNumActive(); }
@Override public int getPoolMaxActiveConnections() { return commonsDbcp().getMaxActive(); }
@Override public int getPoolMinIdleConnections() { return commonsDbcp().getMinIdle(); }
@Override public int getPoolRemoveAbandonedTimeoutSeconds() { return commonsDbcp().getRemoveAbandonedTimeout(); }