Constructor and Description |
---|
PriamServer(IConfiguration config,
PriamScheduler scheduler,
InstanceIdentity id,
Sleeper sleeper,
ICassandraProcess cassProcess,
RestoreContext restoreContext,
BackupService backupService,
BackupV2Service backupV2Service,
CassandraTunerService cassandraTunerService,
ClusterManagementService clusterManagementService) |
Modifier and Type | Method and Description |
---|---|
IConfiguration |
getConfiguration() |
InstanceIdentity |
getInstanceIdentity() |
PriamScheduler |
getScheduler() |
void |
scheduleService()
This method is called to schedule the service when we initialize it for first time ONLY.
|
void |
updateServicePost()
This method is called after we re-schedule all the services in PriamScheduler.
|
void |
updateServicePre()
This method is called before we try to update the service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onChangeUpdateService, scheduleTask
@Inject public PriamServer(IConfiguration config, PriamScheduler scheduler, InstanceIdentity id, Sleeper sleeper, ICassandraProcess cassProcess, RestoreContext restoreContext, BackupService backupService, BackupV2Service backupV2Service, CassandraTunerService cassandraTunerService, ClusterManagementService clusterManagementService)
public void scheduleService() throws java.lang.Exception
IService
scheduleService
in interface IService
java.lang.Exception
- if there is any error while trying to schedule the service.public void updateServicePre() throws java.lang.Exception
IService
updateServicePre
in interface IService
java.lang.Exception
- if there is any error in pre-hook method of service.public void updateServicePost() throws java.lang.Exception
IService
updateServicePost
in interface IService
java.lang.Exception
- if there is any error in post-hook method of service.public InstanceIdentity getInstanceIdentity()
public PriamScheduler getScheduler()
public IConfiguration getConfiguration()