public class SendEvent extends Object implements DeliveryMethod, Pingable
DeliveryMethod
for sending events to a CSW
subscription event endpointModifier and Type | Field and Description |
---|---|
static long |
DEFAULT_PING_PERIOD |
static double |
JITTER_PERCENT |
Constructor and Description |
---|
SendEvent(GetRecordsType request,
QueryRequest query,
SecureCxfClientFactory<CswSubscribe> cxfClientFactory) |
SendEvent(TransformerManager transformerManager,
GetRecordsType request,
QueryRequest query) |
Modifier and Type | Method and Description |
---|---|
void |
created(Metacard newMetacard)
This method will determine how to handle a
Metacard when it is created/ingested. |
void |
deleted(Metacard oldMetacard)
This method will determine how to handle a
Metacard when it is deleted. |
long |
getLastPing() |
int |
getRetryCount() |
boolean |
ping()
This method can be called to get the status of a service.
|
void |
updatedHit(Metacard newMetacard,
Metacard oldMetacard)
This method will determine how to handle a
Metacard when it is updated. |
void |
updatedMiss(Metacard newMetacard,
Metacard oldMetacard)
This method will determine how to handle a
Metacard when it is updated. |
public static final double JITTER_PERCENT
public static final long DEFAULT_PING_PERIOD
public SendEvent(TransformerManager transformerManager, GetRecordsType request, QueryRequest query) throws CswException
CswException
public SendEvent(GetRecordsType request, QueryRequest query, SecureCxfClientFactory<CswSubscribe> cxfClientFactory) throws CswException
CswException
public void created(Metacard newMetacard)
DeliveryMethod
Metacard
when it is created/ingested.created
in interface DeliveryMethod
public void updatedHit(Metacard newMetacard, Metacard oldMetacard)
DeliveryMethod
Metacard
when it is updated.updatedHit
in interface DeliveryMethod
newMetacard
- the Metacard
after the updateoldMetacard
- the Metacard
before the updatedpublic void updatedMiss(Metacard newMetacard, Metacard oldMetacard)
DeliveryMethod
Metacard
when it is updated.updatedMiss
in interface DeliveryMethod
newMetacard
- the Metacard
after the updateoldMetacard
- the Metacard
before the updatedpublic void deleted(Metacard oldMetacard)
DeliveryMethod
Metacard
when it is deleted.deleted
in interface DeliveryMethod
public boolean ping()
Pingable
public long getLastPing()
public int getRetryCount()
This work is licensed under a Creative Commons Attribution 4.0 International License.