2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
24 namespace java com.facebook.fb303
25 namespace cpp facebook.fb303
26 namespace perl Facebook.FB303
27 namespace netcore Facebook.FB303.Test
30 * Common status reporting mechanism across all services
42 * Standard base service
44 service FacebookService {
47 * Returns a descriptive name of the service
52 * Returns the version of the service
57 * Gets the status of this service
59 fb_status getStatus(),
62 * User friendly description of status, such as why the service is in
63 * the dead or warning state, or what is being started or stopped.
65 string getStatusDetails(),
68 * Gets the counters for this service
70 map<string, i64> getCounters(),
73 * Gets the value of a single counter
75 i64 getCounter(1: string key),
80 void setOption(1: string key, 2: string value),
85 string getOption(1: string key),
90 map<string, string> getOptions(),
93 * Returns a CPU profile over the given time interval (client and server
94 * must agree on the profile format).
96 string getCpuProfile(1: i32 profileDurationInSec),
99 * Returns the unix time that the server has been running since
104 * Tell the server to reload its configuration, reopen log files, etc
106 oneway void reinitialize(),
109 * Suggest a shutdown to the server
111 oneway void shutdown(),