network.events
Class FileSBitChangedEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.FileEvent
          extended bynetwork.events.FileSBitChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class FileSBitChangedEvent
extends FileEvent
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.events.FileEvent
filename, hostname, isDir, st_atime, st_blocks, st_ctime, st_gid, st_inode, st_mode, st_mtime, st_nlink, st_size, st_uid, timeCap, timestamp
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
FileSBitChangedEvent(int new_mode, int old_mode, long eventGenerationTime, ajanta.naming.URN AgentURN, java.lang.String hostname, network.detectors.util.FileSign fs, int alertLevel, int alarmLevel)
           
 
Method Summary
 java.lang.String getColumnNames()
           
 java.lang.String getFieldNames()
           
 java.lang.String getFieldValues()
           
 int getNewPermissions()
           
 int getOldPermissions()
           
 java.lang.String toString()
           
 
Methods inherited from class network.events.FileEvent
getAtime, getBlocks, getCtime, getDirname, getFilename, getFullPath, getGID, getHostname, getInode, getMode, getMtime, getNlink, getSize, getSQLTimeCap, getSQLTimeInsert, getSQLTimestamp, getTimeCap, getTimestamp, getUID, isDir
 
Methods inherited from class network.events.Event
createSQL, getAgentURN, getAlarmLevel, getAlertLevel, getDomainName, getEventDeliverTryNumber, getEventGenerationTime, getEventID, getEventLocation, getID, getINTMonth, getMyClass, getName, getSQLTime, getSQLTime, setAlarmLevel, setAlertLevel, setDomainName, setEventID, setPriority, toSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSBitChangedEvent

public FileSBitChangedEvent(int new_mode,
                            int old_mode,
                            long eventGenerationTime,
                            ajanta.naming.URN AgentURN,
                            java.lang.String hostname,
                            network.detectors.util.FileSign fs,
                            int alertLevel,
                            int alarmLevel)
Parameters:
new_mode - the current set of permissions in decimal form
old_mode - the previous set of permissions in decimal form
eventGenerationTime - the time of event generation
AgentURN - the URN of the agent where the file is located
hostname - the hostname for the machien the file is located on
fs - the FileSign that . . .
alertLevel - the alert level that we want this event to have
alarmLevel - the alarm level that we want this event to have
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Event

getColumnNames

public java.lang.String getColumnNames()
Overrides:
getColumnNames in class FileEvent
Returns:

getFieldNames

public java.lang.String getFieldNames()
Overrides:
getFieldNames in class FileEvent
Returns:

getFieldValues

public java.lang.String getFieldValues()
Overrides:
getFieldValues in class FileEvent
Returns:

getNewPermissions

public int getNewPermissions()

getOldPermissions

public int getOldPermissions()