org.gcube.data.tml.clients
Class AdminAPI

java.lang.Object
  extended by org.gcube.data.tml.clients.AdminAPI

public class AdminAPI
extends Object

Administrative operations over remote collection managers.

Author:
Fabio Simeoni

Constructor Summary
AdminAPI()
           
 
Method Summary
static Future<?> deleteReader(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
           
static List<Future<org.apache.axis.message.addressing.EndpointReferenceType>> deleteReaders(String sourceId)
           
static List<Future<?>> deleteServices(String sourceId, URL address)
          Deletes readers and writer services for a given source at a given address.
static Future<?> deleteWriter(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
           
static List<Future<org.apache.axis.message.addressing.EndpointReferenceType>> deleteWriters(String sourceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminAPI

public AdminAPI()
Method Detail

deleteReader

public static Future<?> deleteReader(org.apache.axis.message.addressing.EndpointReferenceType endpoint)

deleteWriter

public static Future<?> deleteWriter(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
                              throws IllegalArgumentException
Throws:
IllegalArgumentException

deleteServices

public static List<Future<?>> deleteServices(String sourceId,
                                             URL address)
                                      throws Exception
Deletes readers and writer services for a given source at a given address.

Parameters:
sourceId - the identifier of the source
address - the address
Returns:
a two-element list of Future outcomes of the operation (ReaderResource and WriterResource)
Throws:
Exception - if the operation fails due to a local error

deleteReaders

public static List<Future<org.apache.axis.message.addressing.EndpointReferenceType>> deleteReaders(String sourceId)
                                                                                            throws org.gcube.common.clients.DiscoveryException
Throws:
org.gcube.common.clients.DiscoveryException

deleteWriters

public static List<Future<org.apache.axis.message.addressing.EndpointReferenceType>> deleteWriters(String sourceId)
                                                                                            throws org.gcube.common.clients.DiscoveryException
Throws:
org.gcube.common.clients.DiscoveryException


Copyright © 2012. All Rights Reserved.