Appy created HBASE-17732:
----------------------------

             Summary: Add CpType template to CoprocessorEnvironment
                 Key: HBASE-17732
                 URL: https://issues.apache.org/jira/browse/HBASE-17732
             Project: HBase
          Issue Type: Improvement
            Reporter: Appy
            Assignee: Appy


Adding template for coprocessor type to CoprocessorEnvironment will:
- get rid of 'instanceOf' checks we do in various coprocessor hosts
- allow us to load only relevant coprocessors in hosts (right now i think each 
host loads all coprocs and it's only during execOperation that it checks if the 
coproc is of correct type ie XXCoprocessorHost will load XXObserver, 
YYObserver, and all others, and in will check in execOperation if coproc is of 
type XXObserver and ignore the rest).
- allow sharing of a bunch functions/classes which are currently 99% duplicate 
of each other. For eg. CoprocessorOperations, CoprocessorOperationWithResult, 
execOperations().



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to