public static class WebtopNaming.SiteMonitor extends GeneralTaskRunnable
SiteMonitor
class is used to monitor the
health status of all the sites.Modifier and Type | Field and Description |
---|---|
static boolean |
keepMonitoring
A boolean flag indicating whether site monitoring is enabled.
|
headTask, nextTask, previousTask
Constructor and Description |
---|
SiteMonitor(String[] urlList)
Constructs a WebtopNaming$SiteMonitor object with the provided
site urls.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addElement(Object obj)
Adds an element to this TaskRunnable.
|
static boolean |
checkSiteStatus(URL siteurl)
Checks if the site is up.
|
long |
getRunPeriod()
Returns the run period of this TaskRunnable.
|
static boolean |
isAvailable(URL url)
Checks if the site of the url is up.
|
static boolean |
isCurrentSite(URL url)
Checks if the url is one of configured sites.
|
boolean |
isEmpty()
Indicates whether this TaskRunnable is empty.
|
boolean |
removeElement(Object obj)
Removes an element from this TaskRunnable.
|
void |
run() |
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
public static boolean keepMonitoring
public SiteMonitor(String[] urlList)
urlList
- a String containing the urls of the sitespublic boolean addElement(Object obj)
TaskRunnable
obj
- Element to be added to this TaskRunnablepublic boolean removeElement(Object obj)
TaskRunnable
obj
- Element to be removed from this TaskRunnablepublic boolean isEmpty()
TaskRunnable
public long getRunPeriod()
TaskRunnable
public void run()
public static boolean checkSiteStatus(URL siteurl)
siteurl
- a site urltrue
if the site is uppublic static boolean isAvailable(URL url) throws Exception
url
- a site urltrue
if the site is upException
- if failing to get the naming service url.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.