Class EventSubscriptionsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.EventSubscriptionsServiceImpl
-
- All Implemented Interfaces:
Service
,EventSubscriptionsService
public class EventSubscriptionsServiceImpl extends ServiceImpl implements EventSubscriptionsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.EventSubscriptionsService
EventSubscriptionsService.AddRequest, EventSubscriptionsService.AddResponse, EventSubscriptionsService.ListRequest, EventSubscriptionsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description EventSubscriptionsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSubscriptionsService.AddRequest
add()
Add a new event-subscription to the system.EventSubscriptionService
eventSubscriptionService(String id)
Reference to the service that manages a specific event-subscription.EventSubscriptionsService.ListRequest
list()
List the event-subscriptions for the provided user.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
EventSubscriptionsServiceImpl
public EventSubscriptionsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public EventSubscriptionsService.AddRequest add()
Description copied from interface:EventSubscriptionsService
Add a new event-subscription to the system. An event-subscription is always added in the context of a user. For example, to add new event-subscription for `host_high_cpu_use` for user `123`, and have the notification sent to the e-mail address: `[email protected]`, send a request like this: .... POST /ovirt-engine/api/users/123/eventsubscriptions .... With a request body like this: [source,xml] ----host_high_cpu_use [email protected]- Specified by:
add
in interfaceEventSubscriptionsService
-
list
public EventSubscriptionsService.ListRequest list()
Description copied from interface:EventSubscriptionsService
List the event-subscriptions for the provided user. For example to list event-subscriptions for user `123`: .... GET /ovirt-engine/api/users/123/event-subscriptions .... [source,xml] ----host_install_failed smtp [email protected] vm_paused smtp [email protected] - Specified by:
list
in interfaceEventSubscriptionsService
-
eventSubscriptionService
public EventSubscriptionService eventSubscriptionService(String id)
Description copied from interface:EventSubscriptionsService
Reference to the service that manages a specific event-subscription.- Specified by:
eventSubscriptionService
in interfaceEventSubscriptionsService
-
service
public Service service(String path)
Description copied from interface:EventSubscriptionsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceEventSubscriptionsService
-
-