network.events
Class FileChangedEvent
java.lang.Object
network.events.Event
network.events.FileEvent
network.events.FileChangedEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class FileChangedEvent
- extends FileEvent
- implements java.io.Serializable
- See Also:
- Serialized Form
| 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 |
|
Constructor Summary |
FileChangedEvent(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)
|
FileChangedEvent(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)
|
| 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 |
FileChangedEvent
public FileChangedEvent(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 -
FileChangedEvent
public FileChangedEvent(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 -
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:
getst_mode
public int getst_mode()
- Returns:
set_actual_new_mode
public void set_actual_new_mode(int new_mode)
- Returns:
set_actual_old_mode
public void set_actual_old_mode(int old_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:
populateStatement
public java.sql.PreparedStatement populateStatement(java.sql.PreparedStatement S)
- Returns: