public class HeartbeatEvent extends AdapterLifecycleEvent
Standard Adapter
heartbeat event. This class may be sub-classed
to meet solution-specific heartbeat information requirements.
In the adapter configuration file this class is aliased as heartbeat-event which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
HeartbeatEvent()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
extractState(Adapter adapter)
Extracts a report on the
Adapter 's current state. |
AdapterStateSummary |
getAdapterStateSummary()
Return the
AdapterStateSummary . |
long |
getHeartbeatTime()
Returns the time this event was sent.
|
void |
setAdapterStateSummary(AdapterStateSummary a)
Sets the
AdapterStateSummary . |
void |
setHeartbeatTime(long l)
Sets the time this event was sent.
|
getAdapterUniqueId, getNameSpace, getWasSuccessful, setAdapterUniqueId, setWasSuccessful
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
public long getHeartbeatTime()
Returns the time this event was sent.
long
representing the time this event was sentpublic void setHeartbeatTime(long l)
Sets the time this event was sent.
l
- a long
representing the time this event
was sentpublic void extractState(Adapter adapter)
Extracts a report on the Adapter
's current state.
adapter
- the Adapter
to extract state frompublic AdapterStateSummary getAdapterStateSummary()
Return the AdapterStateSummary
.
AdapterStateSummary
public void setAdapterStateSummary(AdapterStateSummary a)
Sets the AdapterStateSummary
.
a
- the AdapterStateSummary