Package org.bonitasoft.engine.platform
Class PlatformVersionChecker
- java.lang.Object
-
- org.bonitasoft.engine.platform.PlatformVersionChecker
-
@Component public class PlatformVersionChecker extends java.lang.Object- Author:
- Matthieu Chaffotte, Baptiste Mesta, Emmanuel Duchastenier
-
-
Constructor Summary
Constructors Constructor Description PlatformVersionChecker(PlatformService platformService, BroadcastService broadcastService, TransactionService transactionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorMessage()protected java.util.Optional<java.lang.String>getVersionFromOtherNodes()Search for the first version found amongst other nodes.booleanverifyPlatformVersion()
-
-
-
Constructor Detail
-
PlatformVersionChecker
public PlatformVersionChecker(PlatformService platformService, BroadcastService broadcastService, TransactionService transactionService)
-
-
Method Detail
-
verifyPlatformVersion
public boolean verifyPlatformVersion() throws java.lang.Exception- Throws:
java.lang.Exception
-
getVersionFromOtherNodes
protected java.util.Optional<java.lang.String> getVersionFromOtherNodes()
Search for the first version found amongst other nodes.- Returns:
- the first version encountered, if there are other nodes, or empty optional if there are no other nodes in the cluster, or throw exception if no version can be retrieved.
-
getErrorMessage
public java.lang.String getErrorMessage()
-
-