@Override public void handlePeriodicMaintenance(Operation maintenance){
  ServiceUtils.logInfo(this,"Periodic maintenance triggered. %s",getSelfLink());
  try {
    maintenance.complete();
    TaskUtils.sendSelfPatch(this,buildPatch(TaskState.TaskStage.STARTED,null));
  }
 catch (  Throwable e) {
    ServiceUtils.logSevere(this,"Maintenance trigger failed with the failure: %s",e.toString());
  }
}

@ Override public void handlePeriodicMaintenance ( Operation maintenance ) { ServiceUtils . logInfo ( this , "Periodic maintenance triggered. %s" , getSelfLink ( ) ) ; try { maintenance . complete ( ) ; TaskUtils . sendSelfPatch ( this , buildPatch ( TaskState . TaskStage . STARTED , null ) ) ; } catch ( Throwable e ) { ServiceUtils . logSevere ( this , "Maintenance trigger failed with the failure: %s" , e . toString ( ) ) ; } }
handle service periodic maintenance calls .
