eu.scape_project.watch.adaptor.c3po.client
Interface C3POClientInterface

All Known Implementing Classes:
C3POClient, C3PODummyClient

public interface C3POClientInterface

A simple client interface to the c3po content profiler tool. It allows the client application to query c3po and fetch content profiles.

Author:
Petar Petrov

Method Summary
 List<String> getCollectionIdentifiers()
          Fetches the current content profile identifiers stored in the c3po instance.
 InputStream pollJobResult(String uuid)
          Retrieves an input stream with the results of the job for the given uuid, or null if the job is not yet finished or unknown.
 String submitCollectionProfileJob(String identifier, List<String> properties)
          Submits a new profile creation job to c3po.
 

Method Detail

getCollectionIdentifiers

List<String> getCollectionIdentifiers()
Fetches the current content profile identifiers stored in the c3po instance.

Returns:
a list of collection identifiers

submitCollectionProfileJob

String submitCollectionProfileJob(String identifier,
                                  List<String> properties)
Submits a new profile creation job to c3po.

Parameters:
identifier - the collection identifier
properties - the properties that are of interest
Returns:
a string representing the uuid of the job or null if 404.

pollJobResult

InputStream pollJobResult(String uuid)
Retrieves an input stream with the results of the job for the given uuid, or null if the job is not yet finished or unknown.

Parameters:
uuid - the job id.
Returns:
the InputStream holding the profile.


Copyright © 2012. All Rights Reserved.