Package org.alfresco.utility.network
Class ServerHealth
- java.lang.Object
-
- org.alfresco.utility.network.ServerHealth
-
@Service public class ServerHealth extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TasPropertiesproperties
-
Constructor Summary
Constructors Constructor Description ServerHealth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertServerIsOnline()Throw an exception if the server is not online.java.lang.StringgetAlfrescoEdition()java.lang.StringgetAlfrescoVersion()booleanisAlfrescoRunning()booleanisServerReachable()booleanisServerReachable(java.lang.String server, int port)
-
-
-
Field Detail
-
properties
@Autowired protected TasProperties properties
-
-
Method Detail
-
getAlfrescoEdition
public java.lang.String getAlfrescoEdition()
-
getAlfrescoVersion
public java.lang.String getAlfrescoVersion()
-
isServerReachable
public boolean isServerReachable(java.lang.String server, int port)
-
isServerReachable
public boolean isServerReachable()
-
isAlfrescoRunning
public boolean isAlfrescoRunning()
-
assertServerIsOnline
public void assertServerIsOnline()
Throw an exception if the server is not online.- Throws:
ServerReachableAlfrescoIsNotRunningException- If the server is not online.
-
-