Package com.peterphi.carbon
Class CarbonClientImpl
java.lang.Object
com.peterphi.carbon.CarbonClientImpl
- All Implemented Interfaces:
CarbonClient
-
Constructor Summary
-
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)boolean
Perform a health check on the Carbon instancelistJobs()
void
send
(org.jdom2.Element element) Send some XML
-
Constructor Details
-
CarbonClientImpl
-
CarbonClientImpl
-
-
Method Details
-
getEndpoint
- Specified by:
getEndpoint
in interfaceCarbonClient
-
isHealthy
public boolean isHealthy()Description copied from interface:CarbonClient
Perform a health check on the Carbon instance- Specified by:
isHealthy
in interfaceCarbonClient
- Returns:
- true if healthy, otherwise false
-
send
Send some XML- Specified by:
send
in interfaceCarbonClient
- Parameters:
doc
-- Returns:
- Throws:
CarbonException
-
getJob
- Specified by:
getJob
in interfaceCarbonClient
- Throws:
CarbonException
-
getJobDetails
Description copied from interface:CarbonClient
Get detailed information about a job- Specified by:
getJobDetails
in interfaceCarbonClient
- Returns:
- Throws:
CarbonException
-
createJob
- Specified by:
createJob
in interfaceCarbonClient
- Throws:
CarbonException
-
listJobs
- Specified by:
listJobs
in interfaceCarbonClient
- Returns:
- Throws:
CarbonException
-
getProfiles
Description copied from interface:CarbonClient
Retrieve a list of all destination profiles- Specified by:
getProfiles
in interfaceCarbonClient
- Returns:
- Throws:
CarbonException
-
getProfile
Description copied from interface:CarbonClient
Retrieve a profile by name (or GUID)- Specified by:
getProfile
in interfaceCarbonClient
- Parameters:
query
- the profile name (or GUID)- Returns:
- Throws:
CarbonException
-
getVideoFilter
Description copied from interface:CarbonClient
Retrieve a video filter by name (or GUID)- Specified by:
getVideoFilter
in interfaceCarbonClient
- Parameters:
query
- the video filter name (or GUID)- Returns:
-
getVideoFilters
- Specified by:
getVideoFilters
in interfaceCarbonClient
- Throws:
CarbonException
-
removeJob
- Specified by:
removeJob
in interfaceCarbonClient
- Throws:
CarbonException
-