Search in sources :

Example 1 with StorageArea

use of nl.uva.vlet.util.bdii.StorageArea in project lobcder by skoulouzis.

the class RegisterSRMSites method initVFS.

private static void initVFS() throws VlException, MalformedURLException, NamingException, Exception {
    vfsClient = new VFSClient();
    VRSContext context = vfsClient.getVRSContext();
    BdiiService bdii = context.getBdiiService();
    srms = bdii.getSRMv22SAsforVO("biomed");
    // 
    debug("srms: " + context.getConfigManager().getBdiiHost());
    for (StorageArea inf : srms) {
        debug("srms: " + inf.getVOStorageLocation());
    }
    JDBCatalogue cat = new JDBCatalogue();
    String resourceURI = "";
    Credential credentials = new Credential();
// cat.registerStorageSite(resourceURI, credentials, -1, -1, -1, -1, null);
}
Also used : VRSContext(nl.uva.vlet.vrs.VRSContext) VFSClient(nl.uva.vlet.vfs.VFSClient) Credential(nl.uva.cs.lobcder.resources.Credential) JDBCatalogue(nl.uva.cs.lobcder.catalogue.JDBCatalogue) StorageArea(nl.uva.vlet.util.bdii.StorageArea) BdiiService(nl.uva.vlet.util.bdii.BdiiService)

Aggregations

JDBCatalogue (nl.uva.cs.lobcder.catalogue.JDBCatalogue)1 Credential (nl.uva.cs.lobcder.resources.Credential)1 BdiiService (nl.uva.vlet.util.bdii.BdiiService)1 StorageArea (nl.uva.vlet.util.bdii.StorageArea)1 VFSClient (nl.uva.vlet.vfs.VFSClient)1 VRSContext (nl.uva.vlet.vrs.VRSContext)1