Class AbstractPingContainerMonitor
- java.lang.Object
-
- org.codehaus.cargo.container.spi.startup.AbstractContainerMonitor
-
- org.codehaus.cargo.container.spi.startup.AbstractPingContainerMonitor
-
- All Implemented Interfaces:
ContainerMonitor
,Loggable
- Direct Known Subclasses:
ConsoleUrlWebLogicMonitor
,ConsoleUrlWebSphereMonitor
,ManagementUrlWildFlyMonitor
,WildFlySwarmStartupMonitor
public abstract class AbstractPingContainerMonitor extends AbstractContainerMonitor
Abstract implementation of monitor checking container status by pinging URL.
-
-
Constructor Summary
Constructors Constructor Description AbstractPingContainerMonitor(Container container)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract URL
getPingUrl()
protected int
getPortWithOffset(String portProperty)
Returns port with offset.boolean
isRunning()
-
Methods inherited from class org.codehaus.cargo.container.spi.startup.AbstractContainerMonitor
getConfiguration, getContainer, getLogger, setLogger
-
-
-
-
Constructor Detail
-
AbstractPingContainerMonitor
public AbstractPingContainerMonitor(Container container)
Constructor.- Parameters:
container
- Container to be monitored.
-
-
Method Detail
-
isRunning
public boolean isRunning()
- Returns:
- true if container is running.
-
getPingUrl
protected abstract URL getPingUrl()
- Returns:
- URL to be pinged.
-
getPortWithOffset
protected int getPortWithOffset(String portProperty)
Returns port with offset.- Parameters:
portProperty
- Port property.- Returns:
- Port value with offset.
-
-