org.objectweb.jasmine.rules.logs.util
Class AlarmLog

java.lang.Object
  extended by org.objectweb.jasmine.rules.logs.util.AlarmLog
All Implemented Interfaces:
java.io.Serializable

public class AlarmLog
extends java.lang.Object
implements java.io.Serializable

This class provides a POJO to handle JASMINe alarms.

Author:
Laurent RUAUD
See Also:
Serialized Form

Constructor Summary
AlarmLog(int id, java.util.Date date, java.lang.String level, java.lang.String message)
          Creates an alarm with the specified values.
 
Method Summary
 java.util.Date getDate()
          Returns the alarm date.
 int getId()
          Returns the alarm id.
 java.lang.String getLevel()
          Returns the alarm level.
 java.lang.String getMessage()
          Returns the alarm message.
 void setDate(java.util.Date date)
          Defines the alarm date.
 void setId(int id)
          Defines the alarm id.
 void setLevel(java.lang.String level)
          Defines the alarm level.
 void setMessage(java.lang.String message)
          Defines the alarm message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlarmLog

public AlarmLog(int id,
                java.util.Date date,
                java.lang.String level,
                java.lang.String message)
Creates an alarm with the specified values.

Parameters:
id - the alarm id.
date - the alarm date.
level - the alarm level.
message - the alarm message.
Method Detail

getId

public int getId()
Returns the alarm id.

Returns:
the alarm id.

setId

public void setId(int id)
Defines the alarm id.

Parameters:
id - the id to set.

getDate

public java.util.Date getDate()
Returns the alarm date.

Returns:
the alarm date.

setDate

public void setDate(java.util.Date date)
Defines the alarm date.

Parameters:
date - the date to set

getLevel

public java.lang.String getLevel()
Returns the alarm level.

Returns:
the alarm level.

setLevel

public void setLevel(java.lang.String level)
Defines the alarm level.

Parameters:
level - the level to set

getMessage

public java.lang.String getMessage()
Returns the alarm message.

Returns:
the alarm message.

setMessage

public void setMessage(java.lang.String message)
Defines the alarm message.

Parameters:
message - the message to set


Copyright © 2009 OW2 Consortium. All Rights Reserved.