use of com.pspace.ifs.ksan.objmanager.ObjManagerUtil in project ksan by infinistor.
the class GetAttr method getObjects.
void getObjects() {
Metadata mt;
try {
ObjManagerUtil obmu = new ObjManagerUtil();
if (!ObjectPath.isEmpty())
mt = obmu.getObjectWithPath(bucketName, ObjectPath);
else
mt = obmu.getObject(bucketName, objId);
displayMeta(mt);
} catch (ResourceNotFoundException ex) {
displayNothing();
} catch (Exception ex) {
Logger.getLogger(GetAttr.class.getName()).log(Level.SEVERE, null, ex);
}
}
use of com.pspace.ifs.ksan.objmanager.ObjManagerUtil in project ksan by infinistor.
the class GetObjectMetadata method getObjects.
private int getObjects() {
Metadata mt1;
try {
ObjManagerUtil obmu = new ObjManagerUtil();
mt1 = obmu.getObjectWithPath(mt.getBucket(), mt.getPath());
message = mt1.toString();
return 1;
} catch (ResourceNotFoundException ex) {
message = displayNoInformation();
return 0;
} catch (Exception ex) {
message = dispalyError();
}
return -1;
}
Aggregations