Package org.infinispan.xsite.status
Class OnlineSiteStatus
- java.lang.Object
-
- org.infinispan.xsite.status.OnlineSiteStatus
-
- All Implemented Interfaces:
SiteStatus
public class OnlineSiteStatus extends Object implements SiteStatus
SiteStatus
implementation for online sites. This class is a singleton and its instance is accessible viagetInstance()
.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OnlineSiteStatus
getInstance()
boolean
isOffline()
boolean
isOnline()
-
-
-
Method Detail
-
getInstance
public static OnlineSiteStatus getInstance()
-
isOnline
public boolean isOnline()
- Specified by:
isOnline
in interfaceSiteStatus
- Returns:
true
if the site is online.
-
isOffline
public boolean isOffline()
- Specified by:
isOffline
in interfaceSiteStatus
- Returns:
true
if the site is offline.
-
-