org.hyperic.hq.events.server.session
Class Alert
java.lang.Object
org.hyperic.hibernate.PersistedObject
org.hyperic.hq.events.server.session.Alert
- All Implemented Interfaces:
- java.io.Serializable, AlertInterface
public class Alert
- extends PersistedObject
- implements AlertInterface
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Alert
public Alert()
Alert
protected Alert(AlertDefinition def,
AlertValue val)
createActionLog
protected AlertActionLog createActionLog(java.lang.String detail,
Action action,
AuthzSubject fixer)
createConditionLog
protected AlertConditionLog createConditionLog(java.lang.String value,
AlertCondition cond)
getDefinition
public PerformsEscalations getDefinition()
isFixed
public boolean isFixed()
- Specified by:
isFixed
in interface AlertInterface
setFixed
protected void setFixed(boolean fixed)
getCtime
public long getCtime()
setCtime
protected void setCtime(long ctime)
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interface AlertInterface
getAlertDefinition
public AlertDefinition getAlertDefinition()
setAlertDefinition
protected void setAlertDefinition(AlertDefinition alertDefinition)
getAlertDefinitionInterface
public AlertDefinitionInterface getAlertDefinitionInterface()
- Specified by:
getAlertDefinitionInterface
in interface AlertInterface
getActionLog
public java.util.Collection getActionLog()
- Specified by:
getActionLog
in interface AlertInterface
getActionLogBag
protected java.util.Collection getActionLogBag()
setActionLogBag
protected void setActionLogBag(java.util.Collection actionLog)
getConditionLog
public java.util.Collection getConditionLog()
getConditionLogBag
protected java.util.Collection getConditionLogBag()
setConditionLogBag
protected void setConditionLogBag(java.util.Collection conditionLog)
setAckedBy
protected void setAckedBy(java.lang.Long ackedBy)
getAckedBy
protected java.lang.Long getAckedBy()
setStateId
protected void setStateId(java.lang.Long stateId)
getStateId
protected java.lang.Long getStateId()
isAckable
public boolean isAckable()
setAckable
public void setAckable(boolean ackable)
invalidate
protected void invalidate()
- Need to have a way of invalidating the object so that we will not use
Alert POJOs out of the query caches and the object cache. This is
necessary because we may be changing the escalation state, which serves
as the value for the SQL formula-based field acakble. Without a
constraint relationship between the two objects, Hibernate will not know
that the Alert should be evicted.
getAlertValue
public AlertValue getAlertValue()
setAlertValue
protected void setAlertValue(AlertValue val)
getSortFields
public static java.util.List getSortFields()
- Get a list of the fields which can be used to sort various queries
for alerts.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.