-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53603/#review155435
-----------------------------------------------------------


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (line 38)
<https://reviews.apache.org/r/53603/#comment225372>

    JavaDoc.



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (lines 42 - 50)
<https://reviews.apache.org/r/53603/#comment225373>

    I'd say move this into either a <pre> or a formatted HTML section in the 
class's JavaDoc up top.



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (lines 68 - 73)
<https://reviews.apache.org/r/53603/#comment225374>

    Are these constructors only used for tests? If so, then we should protect 
them.



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (line 92)
<https://reviews.apache.org/r/53603/#comment225375>

    Instead of passing in a boolean here, you could have each dispatch declare 
the properties that are valid.



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (line 102)
<https://reviews.apache.org/r/53603/#comment225376>

    Don't use instanceof here - you can use the NotificationType



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (lines 117 - 125)
<https://reviews.apache.org/r/53603/#comment225377>

    Why not just get the AlertInfo instance once and reuse it?



ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
 (line 130)
<https://reviews.apache.org/r/53603/#comment225378>

    Doc.


- Jonathan Hurley


On Nov. 9, 2016, 7:36 a.m., Dmytro Sen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53603/
> -----------------------------------------------------------
> 
> (Updated Nov. 9, 2016, 7:36 a.m.)
> 
> 
> Review request for Ambari, Aravindan Vijayan, Jonathan Hurley, Sid Wagle, and 
> Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-18833
>     https://issues.apache.org/jira/browse/AMBARI-18833
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Currently, Ambari's SNMP alert target type is using to bind generic OIDs 
> specified by the administrator when creating the target. Many users would 
> rather that Ambari provide a MIB which can then be imported into their 
> management tool and just use the pre-defined OIDs.
> Ambari has applied for and received OIDs from Apache which are included in 
> our MIB file. The MIB is located at: 
> https://github.com/apache/ambari/blob/trunk/contrib/alert-snmp-mib/APACHE-AMBARI-MIB.txt
> The known Ambari OIDs are defined at: 
> https://cwiki.apache.org/confluence/display/DIRxPMGT/OID+Assignment+Scheme
> 1.3.6.1.4.1.18060.16
> A new alert target type of AMBARI_SNMP should be created which knows about 
> the pre-existing OIDs so that dispatching SNMP traps to this type are 
> correctly bound automatically.
> 
> 
> Diffs
> -----
> 
>   ambari-server/docs/configuration/index.md 52b4744 
>   
> ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
>  3103b6d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
>  e32e653 
>   
> ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/SNMPDispatcher.java
>  22a78ef 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity.java
>  958740a 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/alert/TargetType.java
>  53be9e1 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/services/AlertNoticeDispatchService.java
>  9e424f7 
>   
> ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcherTest.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/53603/diff/
> 
> 
> Testing
> -------
> 
> Unit tests passed
> 
> 
> Thanks,
> 
> Dmytro Sen
> 
>

Reply via email to