Class AbstractRequisitionProvider<T extends RequisitionRequest>
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.AbstractRequisitionProvider<T>
-
- All Implemented Interfaces:
RequisitionProvider
- Direct Known Subclasses:
DnsRequisitionProvider
,FileRequisitionProvider
,HttpRequisitionProvider
,VmwareRequisitionProvider
public abstract class AbstractRequisitionProvider<T extends RequisitionRequest> extends java.lang.Object implements RequisitionProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractRequisitionProvider(java.lang.Class<T> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Requisition
getRequisition(RequisitionRequest request)
Execute the request.abstract Requisition
getRequisitionFor(T request)
java.lang.String
marshalRequest(RequisitionRequest request)
Marshals the request to aString
.RequisitionRequest
unmarshalRequest(java.lang.String marshaledRequest)
Unmarshals the request from aString
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.persist.RequisitionProvider
getRequest, getType
-
-
-
-
Constructor Detail
-
AbstractRequisitionProvider
public AbstractRequisitionProvider(java.lang.Class<T> clazz)
-
-
Method Detail
-
getRequisitionFor
public abstract Requisition getRequisitionFor(T request)
-
getRequisition
public Requisition getRequisition(RequisitionRequest request)
Description copied from interface:RequisitionProvider
Execute the request.- Specified by:
getRequisition
in interfaceRequisitionProvider
- Returns:
-
marshalRequest
public java.lang.String marshalRequest(RequisitionRequest request)
Description copied from interface:RequisitionProvider
Marshals the request to aString
. Used before sending the request to a Minion.- Specified by:
marshalRequest
in interfaceRequisitionProvider
- Returns:
-
unmarshalRequest
public RequisitionRequest unmarshalRequest(java.lang.String marshaledRequest)
Description copied from interface:RequisitionProvider
Unmarshals the request from aString
. Used when received the request on a Minion.- Specified by:
unmarshalRequest
in interfaceRequisitionProvider
- Returns:
-
-