org.rhq.core.domain.alert.notification
Class SnmpNotification

java.lang.Object
  extended by org.rhq.core.domain.alert.notification.AlertNotification
      extended by org.rhq.core.domain.alert.notification.SnmpNotification
All Implemented Interfaces:
Serializable

public class SnmpNotification
extends AlertNotification

An alert notification that sends an SNMP trap to the specified SNMP host+port+OID.

See Also:
Serialized Form

Field Summary
static String QUERY_FIND_ALL_BY_ALERT_DEFINITION_ID
           
 
Fields inherited from class org.rhq.core.domain.alert.notification.AlertNotification
DELETE_BY_ID, QUERY_DELETE_BY_RESOURCES, QUERY_DELETE_ORPHANED
 
Constructor Summary
protected SnmpNotification()
           
  SnmpNotification(AlertDefinition alertDefinition, String host, Integer port, String oid)
           
  SnmpNotification(SnmpNotification snmpNotification)
           
 
Method Summary
protected  AlertNotification copy()
           
 boolean equals(Object obj)
           
 String getHost()
           
 String getOid()
           
 int getPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.alert.notification.AlertNotification
copy, getAlertDefinition, getId, prepareForOrphanDelete, setAlertDefinition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_ALL_BY_ALERT_DEFINITION_ID

public static final String QUERY_FIND_ALL_BY_ALERT_DEFINITION_ID
See Also:
Constant Field Values
Constructor Detail

SnmpNotification

protected SnmpNotification()

SnmpNotification

public SnmpNotification(SnmpNotification snmpNotification)

SnmpNotification

public SnmpNotification(AlertDefinition alertDefinition,
                        @NotNull
                        String host,
                        @Nullable
                        Integer port,
                        @NotNull
                        String oid)
Method Detail

getHost

@NotNull
public String getHost()

getPort

public int getPort()

getOid

@NotNull
public String getOid()

copy

protected AlertNotification copy()
Specified by:
copy in class AlertNotification

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.