Interface RequisitionProvider
-
- All Known Implementing Classes:
AbstractRequisitionProvider
,DnsRequisitionProvider
,FileRequisitionProvider
,HttpRequisitionProvider
,RequisitionProviderImpl
,VmwareRequisitionProvider
public interface RequisitionProvider
Used to generateRequisition
s from some source.- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequisitionRequest
getRequest(java.util.Map<java.lang.String,java.lang.String> parameters)
Generate a request.Requisition
getRequisition(RequisitionRequest request)
Execute the request.java.lang.String
getType()
A string used to identify the provider type.java.lang.String
marshalRequest(RequisitionRequest request)
Marshals the request to aString
.RequisitionRequest
unmarshalRequest(java.lang.String marshaledRequest)
Unmarshals the request from aString
.
-
-
-
Method Detail
-
getType
java.lang.String getType()
A string used to identify the provider type. This string should be unique for every implementation.- Returns:
- the type string
-
getRequest
RequisitionRequest getRequest(java.util.Map<java.lang.String,java.lang.String> parameters)
Generate a request.- Parameters:
parameters
-- Returns:
-
getRequisition
Requisition getRequisition(RequisitionRequest request)
Execute the request.- Parameters:
request
-- Returns:
-
marshalRequest
java.lang.String marshalRequest(RequisitionRequest request)
Marshals the request to aString
. Used before sending the request to a Minion.- Parameters:
request
-- Returns:
-
unmarshalRequest
RequisitionRequest unmarshalRequest(java.lang.String marshaledRequest)
Unmarshals the request from aString
. Used when received the request on a Minion.- Parameters:
marshaledRequest
-- Returns:
-
-