@InterfaceAudience.Private @Deprecated public class CoprocessorServiceBackwardCompatiblity extends Object
CoprocessorService
and SingletonCoprocessorService.
From 2.0 onwards, implementors of coprocessor service should also implement the relevant
coprocessor class (For eg MasterCoprocessor for coprocessor service in master), and
override get*Service() method to return the Service object.
To maintain backward compatibility with 1.0 implementation, we'll wrap implementation of
CoprocessorService/SingletonCoprocessorService in the new
{Master, Region, RegionServer}Coprocessor class.
Since there is no backward compatibility guarantee for Observers, we leave get*Observer() to
default which returns null.
This approach to maintain backward compatibility seems cleaner and more explicit.| 限定符和类型 | 类和说明 |
|---|---|
static class |
CoprocessorServiceBackwardCompatiblity.MasterCoprocessorService
已过时。
|
static class |
CoprocessorServiceBackwardCompatiblity.RegionCoprocessorService
已过时。
|
static class |
CoprocessorServiceBackwardCompatiblity.RegionServerCoprocessorService
已过时。
|
| 构造器和说明 |
|---|
CoprocessorServiceBackwardCompatiblity()
已过时。
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.