PoolInternal
conf = new Configuration(PoolInternal.
pool_dynamic_location(), PoolInternal.PO_RDWR);
conf = new Configuration(PoolInternal.
pool_dynamic_location(), PoolInternal.PO_RDONLY);
PoolInternal.PO_RDWR);
if ((elem = PoolInternal.pool_component_to_elem(_conf.getConf(),
return (PoolInternal.pool_component_info(_conf.getConf(),
if (PoolInternal.pool_conf_open(getConf(), location,
perms) != PoolInternal.PO_SUCCESS) {
PoolInternal.pool_conf_close(getConf());
return (PoolInternal.pool_conf_location(getConf()));
return (PoolInternal.pool_conf_status(getConf()));
if (PoolInternal.pool_conf_remove(getConf()) !=
PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_conf_rollback(getConf()) !=
PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_conf_commit(getConf(), active) !=
PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_conf_export(getConf(), location, format)
!= PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_conf_validate(getConf(), level)
!= PoolInternal.PO_SUCCESS)
return (PoolInternal.pool_conf_update(getConf()));
if ((aPool = PoolInternal.pool_create(getConf(), name)) == 0) {
PoolInternal.pool_destroy(getConf(), aPool.getPool());
if ((aPool = PoolInternal.pool_get_pool(getConf(), name)) ==
if ((aPool = PoolInternal.pool_get_pool(getConf(), name)) ==
if ((pools = PoolInternal.pool_query_pools(getConf(), values))
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
if ((aResource = PoolInternal.pool_resource_create(getConf(),
PoolInternal.pool_resource_destroy(getConf(),
if ((res = PoolInternal.pool_get_resource(getConf(), type,
if ((res = PoolInternal.pool_get_resource(getConf(), type,
if ((resources = PoolInternal.pool_query_resources(getConf(),
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
if ((components = PoolInternal.pool_query_components(getConf(),
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
if (PoolInternal.pool_get_property(getConf(),
typeVal.getValue()) == PoolInternal.POC_INVAL)
if (PoolInternal.pool_get_property(getConf(),
PoolInternal.POC_INVAL)
if ((components = PoolInternal.pool_query_components(getConf(),
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
return (PoolInternal.pool_conf_info(_conf.getConf(), deep));
if ((elem = PoolInternal.pool_conf_to_elem(getConf())) == 0)
if (((_this = PoolInternal.pool_conf_alloc())) == 0)
PoolInternal.pool_conf_free(_this);
if (PoolInternal.pool_get_property(_conf.getConf(), proxy, name,
value.getValue()) == PoolInternal.POC_INVAL) {
if (PoolInternal.pool_put_property(_conf.getConf(), getElem(),
name, value.getValue()) != PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_rm_property(_conf.getConf(), getElem(),
name) != PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_get_property(_conf.getConf(), getElem(),
name, value.getValue()) == PoolInternal.POC_INVAL) {
if ((resources = PoolInternal.pool_query_pool_resources(
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
return (PoolInternal.pool_info(_conf.getConf(), getPool(),
if ((elem = PoolInternal.pool_to_elem(_conf.getConf(),
if (PoolInternal.pool_associate(_conf.getConf(), getPool(),
res.getResource()) != PoolInternal.PO_SUCCESS)
if (PoolInternal.pool_dissociate(_conf.getConf(), getPool(),
res.getResource()) != PoolInternal.PO_SUCCESS)
PoolInternal.init();
private final int errorCode = PoolInternal.pool_error();
super(description(PoolInternal.pool_error()));
StringBuffer sb = new StringBuffer(PoolInternal.pool_strerror(
if (errorCode == PoolInternal.POE_SYSTEM)
sb.append(": " + PoolInternal.pool_strerror_sys());
if (PoolInternal.pool_resource_xtransfer(_conf.getConf(),
PoolInternal.PO_SUCCESS)
if ((components = PoolInternal.pool_query_resource_components(
if (PoolInternal.pool_error() ==
PoolInternal.POE_INVALID_SEARCH)
return (PoolInternal.pool_resource_info(_conf.getConf(),
if ((elem = PoolInternal.pool_resource_to_elem(_conf.getConf(),
if (PoolInternal.pool_resource_transfer(_conf.getConf(),
PoolInternal.PO_SUCCESS)
PoolInternal.pool_value_free(_this);
PoolInternal.pool_value_set_name(_this, name);
PoolInternal.pool_value_set_int64(_this, value);
PoolInternal.pool_value_set_uint64(_this, value);
if (PoolInternal.pool_value_set_string(_this, value) !=
PoolInternal.PO_SUCCESS)
PoolInternal.pool_value_set_bool(_this, (short)1);
PoolInternal.pool_value_set_bool(_this, (short)0);
PoolInternal.pool_value_set_double(_this, value);
return (PoolInternal.pool_value_get_name(_this));
return (PoolInternal.pool_value_get_type(_this));
int type = PoolInternal.pool_value_get_type(_this);
if (type == PoolInternal.POC_INT ||
type == PoolInternal.POC_UINT)
if (type == PoolInternal.POC_STRING)
if (type == PoolInternal.POC_BOOL)
if (type == PoolInternal.POC_DOUBLE)
if ((_this = PoolInternal.pool_value_alloc()) == 0)