network.events
Class FileLastChangedEvent

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

public class FileLastChangedEvent
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
FileLastChangedEvent(long time, ajanta.naming.URN agentURN, java.lang.String hostname, network.detectors.util.FileSign old_fs, network.detectors.util.FileSign new_fs, int alertLevel, int alarmLevel)
           
FileLastChangedEvent(long time, ajanta.naming.URN agentURN, java.lang.String hostname, java.lang.String filename, long timestamp, boolean isDir, boolean isDirNew, int st_inode, int st_inodeNew, int st_nlink, int st_nlinkNew, int st_uid, int st_uidNew, int st_gid, int st_gidNew, int st_size, int st_sizeNew, long st_blocks, long st_blocksNew, int st_atime, int st_atimeNew, int st_mtime, int st_mtimeNew, int st_ctime, int st_ctimeNew, int st_mode, int st_modeNew, int alertLevel, int alarmLevel)
           
 
Method Summary
 int getactual_new_mode()
           
 int getactual_old_mode()
           
 java.lang.String getColumnNames()
           
 java.lang.String getEmptyStatement()
           
 java.lang.String getFieldNames()
           
 java.lang.String getFieldValues()
           
 network.detectors.util.FileSign getFileSign()
           
 byte[] getHash()
           
 int getMode()
           
 int getNewAtime()
           
 long getNewBlocks()
           
 int getNewCtime()
           
 int getNewGID()
           
 byte[] getNewHash()
           
 int getNewInode()
           
 int getNewMode()
           
 int getNewMtime()
           
 int getNewNlink()
           
 int getNewSize()
           
 int getNewUID()
           
 int getOldMode()
           
 int getst_mode()
           
 java.lang.String getTableStatement()
           
 boolean isDirNew()
           
 java.sql.PreparedStatement populateStatement(java.sql.PreparedStatement S)
           
 
Methods inherited from class network.events.FileEvent
getAtime, getBlocks, getCtime, getDirname, getFilename, getFullPath, getGID, getHostname, getInode, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileLastChangedEvent

public FileLastChangedEvent(long time,
                            ajanta.naming.URN agentURN,
                            java.lang.String hostname,
                            network.detectors.util.FileSign old_fs,
                            network.detectors.util.FileSign new_fs,
                            int alertLevel,
                            int alarmLevel)
Parameters:
time -
agentURN -
hostname -
old_fs -
new_fs -
alertLevel -
alarmLevel -

FileLastChangedEvent

public FileLastChangedEvent(long time,
                            ajanta.naming.URN agentURN,
                            java.lang.String hostname,
                            java.lang.String filename,
                            long timestamp,
                            boolean isDir,
                            boolean isDirNew,
                            int st_inode,
                            int st_inodeNew,
                            int st_nlink,
                            int st_nlinkNew,
                            int st_uid,
                            int st_uidNew,
                            int st_gid,
                            int st_gidNew,
                            int st_size,
                            int st_sizeNew,
                            long st_blocks,
                            long st_blocksNew,
                            int st_atime,
                            int st_atimeNew,
                            int st_mtime,
                            int st_mtimeNew,
                            int st_ctime,
                            int st_ctimeNew,
                            int st_mode,
                            int st_modeNew,
                            int alertLevel,
                            int alarmLevel)
Parameters:
time -
agentURN -
hostname -
filename -
timestamp -
isDir -
isDirNew -
st_inode -
st_inodeNew -
st_nlink -
st_nlinkNew -
st_uid -
st_uidNew -
st_gid -
st_gidNew -
st_size -
st_sizeNew -
st_blocks -
st_blocksNew -
st_atime -
st_atimeNew -
st_mtime -
st_mtimeNew -
st_ctime -
st_ctimeNew -
st_mode -
st_modeNew -
alertLevel -
alarmLevel -
Method Detail

isDirNew

public boolean isDirNew()
Returns:

getNewInode

public int getNewInode()
Returns:

getNewNlink

public int getNewNlink()
Returns:

getNewUID

public int getNewUID()
Returns:

getNewGID

public int getNewGID()
Returns:

getNewSize

public int getNewSize()
Returns:

getNewBlocks

public long getNewBlocks()
Returns:

getNewAtime

public int getNewAtime()
Returns:

getNewMtime

public int getNewMtime()
Returns:

getNewCtime

public int getNewCtime()
Returns:

getNewMode

public int getNewMode()
Returns:

getOldMode

public int getOldMode()

getst_mode

public int getst_mode()
Returns:

getactual_new_mode

public int getactual_new_mode()
Returns:

getactual_old_mode

public int getactual_old_mode()
Returns:

getMode

public int getMode()
Overrides:
getMode in class FileEvent
Returns:

getFileSign

public network.detectors.util.FileSign getFileSign()
Returns:

getHash

public byte[] getHash()
Returns:

getNewHash

public byte[] getNewHash()
Returns:

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:

getEmptyStatement

public java.lang.String getEmptyStatement()
Returns:

getTableStatement

public java.lang.String getTableStatement()
Returns:
a string that is structured to create a table in the event's database for this event

populateStatement

public java.sql.PreparedStatement populateStatement(java.sql.PreparedStatement S)
Returns: