Package io.jenkins.plugins.catlight
Class CatlightServiceClientImpl
- java.lang.Object
-
- io.jenkins.plugins.catlight.CatlightServiceClientImpl
-
- All Implemented Interfaces:
CatlightServiceClient
public class CatlightServiceClientImpl extends Object implements CatlightServiceClient
Default implementation of CatLight service client
-
-
Constructor Summary
Constructors Constructor Description CatlightServiceClientImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyAboutEntityChange(String teamIds, String jobUri)
Notify the service about changed job statusvoid
setAcceleratedNotifications(String spaceUri, String teamIds, Boolean notificationsEnabled)
Configure CatLight service to wait for notification instead of using polling
-
-
-
Method Detail
-
notifyAboutEntityChange
public void notifyAboutEntityChange(String teamIds, String jobUri) throws URISyntaxException, IOException, InterruptedException
Description copied from interface:CatlightServiceClient
Notify the service about changed job status- Specified by:
notifyAboutEntityChange
in interfaceCatlightServiceClient
- Parameters:
teamIds
- comma-separated list of team guidsjobUri
- job uri- Throws:
URISyntaxException
IOException
InterruptedException
-
setAcceleratedNotifications
public void setAcceleratedNotifications(String spaceUri, String teamIds, Boolean notificationsEnabled) throws URISyntaxException, IOException, InterruptedException
Description copied from interface:CatlightServiceClient
Configure CatLight service to wait for notification instead of using polling- Specified by:
setAcceleratedNotifications
in interfaceCatlightServiceClient
- Parameters:
spaceUri
- CatLight space uriteamIds
- comma-separated list of team guidsnotificationsEnabled
- enable or disable notification processing- Throws:
URISyntaxException
IOException
InterruptedException
-
-