Package com.peterphi.carbon
Class CarbonClientImpl
java.lang.Object
com.peterphi.carbon.CarbonClientImpl
- All Implemented Interfaces:
CarbonClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJob(CarbonProject project) getJobDetails(String guid) Get detailed information about a jobgetProfile(String query) Retrieve a profile by name (or GUID)Retrieve a list of all destination profilesgetVideoFilter(String query) Retrieve a video filter by name (or GUID)booleanPerform a health check on the Carbon instancelistJobs()voidsend(org.jdom2.Element element) Send some XML
-
Constructor Details
-
CarbonClientImpl
-
CarbonClientImpl
-
-
Method Details
-
getEndpoint
- Specified by:
getEndpointin interfaceCarbonClient
-
isHealthy
public boolean isHealthy()Description copied from interface:CarbonClientPerform a health check on the Carbon instance- Specified by:
isHealthyin interfaceCarbonClient- Returns:
- true if healthy, otherwise false
-
send
Send some XML- Specified by:
sendin interfaceCarbonClient- Parameters:
doc-- Returns:
- Throws:
CarbonException
-
getJob
- Specified by:
getJobin interfaceCarbonClient- Throws:
CarbonException
-
getJobDetails
Description copied from interface:CarbonClientGet detailed information about a job- Specified by:
getJobDetailsin interfaceCarbonClient- Returns:
- Throws:
CarbonException
-
createJob
- Specified by:
createJobin interfaceCarbonClient- Throws:
CarbonException
-
listJobs
- Specified by:
listJobsin interfaceCarbonClient- Returns:
- Throws:
CarbonException
-
getProfiles
Description copied from interface:CarbonClientRetrieve a list of all destination profiles- Specified by:
getProfilesin interfaceCarbonClient- Returns:
- Throws:
CarbonException
-
getProfile
Description copied from interface:CarbonClientRetrieve a profile by name (or GUID)- Specified by:
getProfilein interfaceCarbonClient- Parameters:
query- the profile name (or GUID)- Returns:
- Throws:
CarbonException
-
getVideoFilter
Description copied from interface:CarbonClientRetrieve a video filter by name (or GUID)- Specified by:
getVideoFilterin interfaceCarbonClient- Parameters:
query- the video filter name (or GUID)- Returns:
-
getVideoFilters
- Specified by:
getVideoFiltersin interfaceCarbonClient- Throws:
CarbonException
-
removeJob
- Specified by:
removeJobin interfaceCarbonClient- Throws:
CarbonException
-