eu.scape_project.watch.adaptor.c3po.client
Class C3POClient
java.lang.Object
eu.scape_project.watch.adaptor.c3po.client.C3POClient
- All Implemented Interfaces:
- C3POClientInterface
public class C3POClient
- extends Object
- implements C3POClientInterface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C3POClient
public C3POClient(String url)
C3POClient
public C3POClient(String url,
int port)
getCollectionIdentifiers
public List<String> getCollectionIdentifiers()
- Description copied from interface:
C3POClientInterface
- Fetches the current content profile identifiers stored in the c3po
instance.
- Specified by:
getCollectionIdentifiers
in interface C3POClientInterface
- Returns:
- a list of collection identifiers
submitCollectionProfileJob
public String submitCollectionProfileJob(String identifier,
List<String> properties)
- Description copied from interface:
C3POClientInterface
- Submits a new profile creation job to c3po.
- Specified by:
submitCollectionProfileJob
in interface C3POClientInterface
- Parameters:
identifier
- the collection identifierproperties
- the properties that are of interest
- Returns:
- a string representing the uuid of the job or null if 404.
pollJobResult
public InputStream pollJobResult(String uuid)
- Description copied from interface:
C3POClientInterface
- 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.
- Specified by:
pollJobResult
in interface C3POClientInterface
- Parameters:
uuid
- the job id.
- Returns:
- the InputStream holding the profile.
getApiEndpoint
public String getApiEndpoint()
setApiEndpoint
public void setApiEndpoint(String apiEndpoint)
getPort
public int getPort()
setPort
public void setPort(int port)
Copyright © 2012. All Rights Reserved.