Class FenceAgentsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.FenceAgentsServiceImpl
-
- All Implemented Interfaces:
Service
,FenceAgentsService
public class FenceAgentsServiceImpl extends ServiceImpl implements FenceAgentsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.FenceAgentsService
FenceAgentsService.AddRequest, FenceAgentsService.AddResponse, FenceAgentsService.ListRequest, FenceAgentsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description FenceAgentsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FenceAgentsService.AddRequest
add()
Add a new fencing-agent to the host.FenceAgentService
agentService(String id)
Reference to service that manages a specific fence agent for this host.FenceAgentsService.ListRequest
list()
Returns the list of fencing agents configured for the host.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
-
FenceAgentsServiceImpl
public FenceAgentsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public FenceAgentsService.AddRequest add()
Description copied from interface:FenceAgentsService
Add a new fencing-agent to the host. [source] ---- POST /ovirt-engine/api/hosts/123/fenceagents You should consult the /usr/sbin/fence_manual page for the legal parameters to [name1=value1, name2=value2,...] in the options field. If any parameter in options appears by name that means that it is mandatory. For example in slot=7[,name1=value1, name2=value2,...] slot is mandatory. ---- apc, bladecenter, wti fencing agent/s sample request: [source,xml]apc 1 192.168.1.101 user xxx 9 slot=7[,name1=value1, name2=value2,...] apc_snmp 1 192.168.1.101 user xxx 9 [name1=value1, name2=value2,...] cisco_ucs 1 192.168.1.101 user xxx slot=7[,name1=value1, name2=value2,...] drac7 1 192.168.1.101 user xxx [name1=value1, name2=value2,...] - Specified by:
add
in interfaceFenceAgentsService
-
list
public FenceAgentsService.ListRequest list()
Description copied from interface:FenceAgentsService
Returns the list of fencing agents configured for the host. [source] ---- GET /ovirt-engine/api/hosts/123/fenceagents ---- And here is sample response: [source,xml] ----apc 1 192.168.1.101 user xxx 9 name1=value1, name2=value2 - Specified by:
list
in interfaceFenceAgentsService
-
agentService
public FenceAgentService agentService(String id)
Description copied from interface:FenceAgentsService
Reference to service that manages a specific fence agent for this host.- Specified by:
agentService
in interfaceFenceAgentsService
-
service
public Service service(String path)
Description copied from interface:FenceAgentsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceFenceAgentsService
-
-