org.gcube.application.framework.vremanagement.vremanagement
Interface ISInfoI

All Known Implementing Classes:
ISInfo

public interface ISInfoI

Author:
valia

Method Summary
 void addExternalRIToVRE(java.io.File file)
           
 void addGHNToScope(java.lang.String url)
          Adds a GHN to the active VRE
 void addRIToScope(java.lang.String url, java.lang.String className, java.lang.String name)
          Adds a service to the active VRE
 boolean existsGHN(java.lang.String namePort)
           
 GCUBECollection getCollection(GCUBEScope scope, java.lang.String collectionID)
           
 java.util.List<RPDocument> getCollectionIndices(GCUBEScope scope, java.lang.String collectionID)
           
 java.util.List<GCUBECollection> getCollections(GCUBEScope scope)
           
 java.util.List<RPDocument> getIndices(GCUBEScope scope, java.lang.String mcollectionID)
          Return all indices associated with a given metadata collection.
 java.util.List<GCUBEMCollection> getMCollections(GCUBEScope scope, java.lang.String collectionID)
           
 java.util.List<RPDocument> getWS(java.lang.String type)
           
 java.util.List<RPDocument> getXMLIndices(GCUBEScope scope, java.lang.String mcollectionID)
           
 java.util.List<XMLResult> queryIS(java.lang.String query)
           
 void removeExternalRIToVRE(java.lang.String id)
           
 void removeGHNToScope(java.lang.String url)
           
 

Method Detail

queryIS

java.util.List<XMLResult> queryIS(java.lang.String query)
Parameters:
query - an XQuery to be submitted on IS
Returns:
a list of XMLResults that represent resources form IS (like RIs, Generic Resources, Collections, etc)

getWS

java.util.List<RPDocument> getWS(java.lang.String type)
Parameters:
type - the of the WSs to be retrieved
Returns:
a list of RPDocuments

addGHNToScope

void addGHNToScope(java.lang.String url)
Adds a GHN to the active VRE

Parameters:
url - the GHN url

addRIToScope

void addRIToScope(java.lang.String url,
                  java.lang.String className,
                  java.lang.String name)
Adds a service to the active VRE

Parameters:
url - the Running Instance url
className - the name of the class where the RI will belong
name - the name of teh service it provides

existsGHN

boolean existsGHN(java.lang.String namePort)
Parameters:
namePort - GHN name:port
Returns:
true if GHN exists, otherwise false

removeExternalRIToVRE

void removeExternalRIToVRE(java.lang.String id)
Parameters:
id - the id of the external running instance to be removed

addExternalRIToVRE

void addExternalRIToVRE(java.io.File file)
Parameters:
file - the file that contains the external running instance to be added

removeGHNToScope

void removeGHNToScope(java.lang.String url)
Parameters:
url - server:port of the GHN to be removed

getCollections

java.util.List<GCUBECollection> getCollections(GCUBEScope scope)
                                               throws java.lang.Exception
Parameters:
scope - the scope of the collections.
Returns:
a list of collections profile.
Throws:
java.lang.Exception

getMCollections

java.util.List<GCUBEMCollection> getMCollections(GCUBEScope scope,
                                                 java.lang.String collectionID)
                                                 throws java.lang.Exception
Parameters:
scope - the scope of the metadata collections.
collectionID - the associated collection.
Returns:
a list of metadata collections profile.
Throws:
java.lang.Exception

getXMLIndices

java.util.List<RPDocument> getXMLIndices(GCUBEScope scope,
                                         java.lang.String mcollectionID)
                                         throws java.lang.Exception
Parameters:
scope - the indices scope.
mcollectionID - the metadata collection id.
Returns:
a list of Resource document.
Throws:
java.lang.Exception

getIndices

java.util.List<RPDocument> getIndices(GCUBEScope scope,
                                      java.lang.String mcollectionID)
                                      throws java.lang.Exception
Return all indices associated with a given metadata collection.

Parameters:
scope - the indices scope.
mcollectionID - the metadata collection id.
Returns:
a list of Resource document.
Throws:
java.lang.Exception

getCollectionIndices

java.util.List<RPDocument> getCollectionIndices(GCUBEScope scope,
                                                java.lang.String collectionID)
                                                throws java.lang.Exception
Parameters:
scope - the indices scope.
collectionID - the collection id.
Returns:
a list of Resource document.
Throws:
java.lang.Exception

getCollection

GCUBECollection getCollection(GCUBEScope scope,
                              java.lang.String collectionID)
                              throws java.lang.Exception
Parameters:
scope - the collection scope.
collectionID - the collection id.
Returns:
a collection profile.
Throws:
java.lang.Exception