ServiceStatus.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. */
  19. class ServiceStatus {
  20. /**
  21. * Get status of all services
  22. * @return mixed
  23. * array ( "$svc_name" => "$status" );
  24. * Status: RUNNING, NON-RUNNING, NOT INSTALLED
  25. */
  26. public function getStatus() {
  27. }
  28. /**
  29. * Get status of a given service
  30. * @param string $service Service Name
  31. * @return mixed
  32. * array ( "$svc_name" => "$status" );
  33. * Status: RUNNING, NON-RUNNING, NOT INSTALLED
  34. */
  35. public function getServiceStatus($service) {
  36. }
  37. /**
  38. * Get status of a given component/role of service
  39. * @param string $service Service Name
  40. * @param string $component Component Name
  41. * @param string $hostname Hostname of Node to query - optional. Required only
  42. * in case of multiple hosts mapping to a given component.
  43. * @return mixed
  44. * array ( "$svc_name" => "$status" );
  45. * Status: RUNNING, NON-RUNNING, NOT INSTALLED
  46. */
  47. public function getServiceComponentStatus($service, $component, $hostname) {
  48. }
  49. }
  50. ?>