@Override
  public Process setRunningState(String hostName, String componentName, State state) {
    String serviceName = getServiceName(componentName);
    if (serviceName != null) {
      String command = state == State.Running ? "start" : "stop";
      String[] cmdStrings = {"sc", "\\\\" + hostName, command, "\"" + serviceName + "\""};  // Windows specific command

      return new StateProcess(runProcess(cmdStrings));
    }
    return null;
  }
Provider module used to install PropertyProviders required for ambari-scom.
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/scom/SQLProviderModule.java