Class IncomingPingService
java.lang.Object
com.bluebell.greenhouse.radicle.services.system.IncomingPingService
Service-layer for
IncomingPing.- Version:
- 2.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacknowledgeIncomingPing(String systemName, IncomingPingType incomingPingType) Acknowledges the incoming ping and saves it to the database.Checks the health of all middleware incoming ping types in configured execution order.checkMiddlewareHealth(IncomingPingType incomingPingType) Checks the health of the given middleware based on its most recent incoming ping.intDeletes incoming pings that are older than the configured retention period.findAllBySystemName(String systemName) Looks for allIncomingPings for the given system name.findLatestBySystemName(String systemName) Looks for the most recentIncomingPingfor the given system name.
-
Constructor Details
-
IncomingPingService
public IncomingPingService()
-
-
Method Details
-
findLatestBySystemName
Looks for the most recentIncomingPingfor the given system name.- Parameters:
systemName- system name- Returns:
OptionalIncomingPing
-
findAllBySystemName
Looks for allIncomingPings for the given system name.- Parameters:
systemName- system name- Returns:
ListofIncomingPing
-
checkMiddlewareHealth
Checks the health of the given middleware based on its most recent incoming ping.- Parameters:
incomingPingType-IncomingPingType- Returns:
Pair
-
checkAllMiddlewareHealth
-
acknowledgeIncomingPing
@Transactional public boolean acknowledgeIncomingPing(String systemName, IncomingPingType incomingPingType) Acknowledges the incoming ping and saves it to the database.- Parameters:
systemName- system nameincomingPingType- incoming ping type- Returns:
- true if ping received and acknowledged
-
deleteOldIncomingPings
@Transactional public int deleteOldIncomingPings()Deletes incoming pings that are older than the configured retention period.- Returns:
- number of deleted incoming pings
-