@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.| Modifier and Type | Class and Description |
|---|---|
static class |
CoprocessorServiceBackwardCompatiblity.MasterCoprocessorService
Deprecated.
|
static class |
CoprocessorServiceBackwardCompatiblity.RegionCoprocessorService
Deprecated.
|
static class |
CoprocessorServiceBackwardCompatiblity.RegionServerCoprocessorService
Deprecated.
|
| Constructor and Description |
|---|
CoprocessorServiceBackwardCompatiblity()
Deprecated.
|
public CoprocessorServiceBackwardCompatiblity()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.