}
private OrderedPair<SHostVO, String> getBucketStorageHost(SBucketVO bucket)
{
SHostVO shost = shostDao.findById(bucket.getShostID());
if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_LOCAL) {
return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
}
if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR ) {
return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
}
MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
if(mount != null) {
return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
}
//return null;
// need to redirect request to other node