[ 
https://issues.apache.org/jira/browse/HADOOP-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618654#action_12618654
 ] 

Steve Loughran commented on HADOOP-3822:
----------------------------------------

This is what an @Internal attribute would look like

@Retention(RetentionPolicy.SOURCE)
public @interface Internal {
  String value() default "";
}

It could then be used to annotate classes, methods, interfaces, etc

@Internal
public interface HealthChecks {
   boolean healthy() throws IOException;
}

Even member variables you want better access to

public class NameNode {
   @Internal("namesystem should be accessed through getNamesystem()");
   FSNamesystem namesystem;
  ....
 }


The attribute would not do anything, except to say "be careful when you use 
this, we may change it"

> Create a public scheduler API
> -----------------------------
>
>                 Key: HADOOP-3822
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3822
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: mapred
>            Reporter: Tom White
>             Fix For: 0.19.0
>
>         Attachments: hadoop-3822.patch, hadoop-3822.sh
>
>
> The work in HADOOP-3412 provided an API to support pluggable schedulers. 
> However implementations have to be in the org.apache.hadoop.mapred package, 
> which is undesirable. The goal of this issue is to create a public API for 
> scheduler writers to code against.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to