public class InstallationService extends java.lang.Object implements IInstallation
Constructor and Description |
---|
InstallationService(BmContext context) |
Modifier and Type | Method and Description |
---|---|
TaskRef |
clone(CloneConfiguration conf) |
void |
deleteLogo() |
void |
demoteLeader()
The instance will stop handling write requests then will write a BYE message
into kafka to relinquish control to the clone.
|
java.lang.String |
getHostReport() |
PublicInfos |
getInfos() |
CustomLogo |
getLogo() |
java.util.List<java.lang.String> |
getSubscriptionContacts() |
SubscriptionInformations |
getSubscriptionInformations() |
SubscriptionInformations.Kind |
getSubscriptionKind() |
SystemState |
getSystemState() |
InstallationVersion |
getVersion() |
TaskRef |
initialize() |
java.lang.Boolean |
isValidProductionSubscription() |
void |
maintenanceMode() |
void |
markSchemaAsUpgraded() |
void |
ping(java.lang.String ip) |
TaskRef |
postinst()
Run post-installation upgraders
|
void |
promoteLeader() |
void |
removeSubscription() |
void |
resetIndex(java.lang.String index) |
void |
resetIndexes() |
void |
runningMode() |
java.lang.String |
sendHostReport() |
void |
setLogo(byte[] logo) |
void |
setSubscriptionContacts(java.util.List<java.lang.String> emails) |
void |
updateSubscription(java.lang.String licence) |
void |
updateSubscriptionVersion(java.lang.String version)
Update subscription URL to given version on all servers
|
void |
updateSubscriptionWithArchive(Stream archive) |
TaskRef |
upgrade() |
UpgradeStatus |
upgradeStatus() |
public InstallationService(BmContext context)
public TaskRef upgrade() throws ServerFault
upgrade
in interface IInstallation
ServerFault
public TaskRef postinst()
IInstallation
postinst
in interface IInstallation
public void demoteLeader() throws ServerFault
IInstallation
demoteLeader
in interface IInstallation
ServerFault
public void promoteLeader() throws ServerFault
promoteLeader
in interface IInstallation
ServerFault
public TaskRef clone(CloneConfiguration conf)
clone
in interface IInstallation
public TaskRef initialize() throws ServerFault
initialize
in interface IInstallation
ServerFault
public InstallationVersion getVersion() throws ServerFault
getVersion
in interface IInstallation
ServerFault
public void markSchemaAsUpgraded() throws ServerFault
markSchemaAsUpgraded
in interface IInstallation
ServerFault
public SubscriptionInformations getSubscriptionInformations() throws ServerFault
getSubscriptionInformations
in interface IInstallation
ServerFault
public SubscriptionInformations.Kind getSubscriptionKind() throws ServerFault
getSubscriptionKind
in interface IInstallation
ServerFault
public java.lang.Boolean isValidProductionSubscription() throws ServerFault
isValidProductionSubscription
in interface IInstallation
ServerFault
public void updateSubscription(java.lang.String licence) throws ServerFault
updateSubscription
in interface IInstallation
ServerFault
public void updateSubscriptionWithArchive(Stream archive) throws ServerFault
updateSubscriptionWithArchive
in interface IInstallation
ServerFault
public void updateSubscriptionVersion(java.lang.String version)
IInstallation
updateSubscriptionVersion
in interface IInstallation
version
- target version. Special versions:
public void removeSubscription() throws ServerFault
removeSubscription
in interface IInstallation
ServerFault
public void resetIndexes()
resetIndexes
in interface IInstallation
public void resetIndex(java.lang.String index)
resetIndex
in interface IInstallation
public void setLogo(byte[] logo) throws ServerFault
setLogo
in interface ICustomTheme
ServerFault
public void deleteLogo() throws ServerFault
deleteLogo
in interface ICustomTheme
ServerFault
public CustomLogo getLogo() throws ServerFault
getLogo
in interface ICustomTheme
ServerFault
public SystemState getSystemState() throws ServerFault
getSystemState
in interface IInstallation
ServerFault
public void maintenanceMode() throws ServerFault
maintenanceMode
in interface IInstallation
ServerFault
public void runningMode() throws ServerFault
runningMode
in interface IInstallation
ServerFault
public UpgradeStatus upgradeStatus() throws ServerFault
upgradeStatus
in interface IInstallation
ServerFault
public PublicInfos getInfos()
getInfos
in interface IInstallation
public void ping(java.lang.String ip) throws ServerFault
ping
in interface IInstallation
ServerFault
public java.util.List<java.lang.String> getSubscriptionContacts() throws ServerFault
getSubscriptionContacts
in interface IInstallation
ServerFault
public void setSubscriptionContacts(java.util.List<java.lang.String> emails) throws ServerFault
setSubscriptionContacts
in interface IInstallation
ServerFault
public java.lang.String getHostReport()
getHostReport
in interface IInstallation
public java.lang.String sendHostReport()
sendHostReport
in interface IInstallation
Copyright © 2023. All Rights Reserved.