1   /**
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
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  /**
19   * Licensed to the Apache Software Foundation (ASF) under one
20   * or more contributor license agreements.  See the NOTICE file
21   * distributed with this work for additional information
22   * regarding copyright ownership.  The ASF licenses this file
23   * to you under the Apache License, Version 2.0 (the
24   * "License"); you may not use this file except in compliance
25   * with the License.  You may obtain a copy of the License at
26   *
27   *     http://www.apache.org/licenses/LICENSE-2.0
28   *
29   * Unless required by applicable law or agreed to in writing, software
30   * distributed under the License is distributed on an "AS IS" BASIS,
31   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32   * See the License for the specific language governing permissions and
33   * limitations under the License.
34   */
35  /**
36   * Licensed to the Apache Software Foundation (ASF) under one
37   * or more contributor license agreements.  See the NOTICE file
38   * distributed with this work for additional information
39   * regarding copyright ownership.  The ASF licenses this file
40   * to you under the Apache License, Version 2.0 (the
41   * "License"); you may not use this file except in compliance
42   * with the License.  You may obtain a copy of the License at
43   *
44   *     http://www.apache.org/licenses/LICENSE-2.0
45   *
46   * Unless required by applicable law or agreed to in writing, software
47   * distributed under the License is distributed on an "AS IS" BASIS,
48   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49   * See the License for the specific language governing permissions and
50   * limitations under the License.
51   */
52  package org.apache.hadoop.hbase.coprocessor;
53  
54  import org.apache.hadoop.hbase.ipc.CoprocessorProtocol;
55  
56  public interface GenericProtocol extends CoprocessorProtocol {
57  
58    /**
59     * Simple interface to allow the passing of a generic parameter to see if the
60     * RPC framework can accommodate generics.
61     * 
62     * @param <T>
63     * @param genericObject
64     * @return
65     */
66    public <T> T doWork(T genericObject);
67  
68  }