use of com.sequenceiq.periscope.domain.PeriscopeUser in project cloudbreak by hortonworks.
the class AutoScaleClusterCommonService method setState.
public AutoscaleClusterResponse setState(Long clusterId, StateJson stateJson) {
PeriscopeUser user = authenticatedUserService.getPeriscopeUser();
MDCBuilder.buildMdcContext(user, clusterId);
Cluster cluster = clusterService.setState(clusterId, stateJson.getState());
createHistoryAndNotification(cluster);
return createClusterJsonResponse(cluster);
}
use of com.sequenceiq.periscope.domain.PeriscopeUser in project cloudbreak by hortonworks.
the class AutoScaleClusterCommonService method setAutoscaleState.
public AutoscaleClusterResponse setAutoscaleState(Long clusterId, AutoscaleClusterState autoscaleState) {
PeriscopeUser user = authenticatedUserService.getPeriscopeUser();
MDCBuilder.buildMdcContext(user, clusterId);
Cluster cluster = clusterService.setAutoscaleState(clusterId, autoscaleState.isEnableAutoscaling());
createHistoryAndNotification(cluster);
return createClusterJsonResponse(cluster);
}
Aggregations