org.gcube.informationsystem.glitebridge.harvester.resource
Class StorageElementHarvester

java.lang.Object
  extended by org.gcube.informationsystem.glitebridge.harvester.resource.StorageElementHarvester

public abstract class StorageElementHarvester
extends java.lang.Object

Author:
Luca Frosini (ISTI-CNR)

Constructor Summary
StorageElementHarvester()
           
 
Method Summary
static Status getStatus(java.lang.String siteName, java.lang.String id)
           
static java.util.List<KStorageElement> harvestDetails(KeyValueCouple<java.lang.String,java.lang.String>... couples)
           
static java.lang.String harvestStorageElementStatus(java.lang.String siteName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageElementHarvester

public StorageElementHarvester()
Method Detail

harvestDetails

public static java.util.List<KStorageElement> harvestDetails(KeyValueCouple<java.lang.String,java.lang.String>... couples)
                                                      throws java.lang.Exception
Parameters:
couples - of key value to apply to baseDN query
Returns:
the List of KStorageElement harvested
Throws:
java.lang.Exception - if fails

harvestStorageElementStatus

public static java.lang.String harvestStorageElementStatus(java.lang.String siteName)
                                                    throws java.lang.Exception
Parameters:
siteName - site Name to harvest the status
Returns:
String
Throws:
java.lang.Exception - if fails

getStatus

public static Status getStatus(java.lang.String siteName,
                               java.lang.String id)
                        throws java.lang.Exception
Parameters:
siteName - site Name to harvest the status
id - Storage Element ID
Returns:
Status
Throws:
java.lang.Exception - if fails