org.apache.catalina.ha.deploy

Class WarWatcher.WarInfo

protected class WarWatcher.WarInfo extends Object

File information on existing WAR files
Field Summary
protected longlastChecked
protected longlastState
protected Filewar
Constructor Summary
WarInfo(File war)
Method Summary
intcheck()
Returns 1 if the file has been added/modified, 0 if the file is unchanged and -1 if the file has been removed
booleanequals(Object other)
booleanexists()
FilegetWar()
inthashCode()
booleanmodified()
protected voidsetLastState(int lastState)

Field Detail

lastChecked

protected long lastChecked

lastState

protected long lastState

war

protected File war

Constructor Detail

WarInfo

public WarInfo(File war)

Method Detail

check

public int check()
Returns 1 if the file has been added/modified, 0 if the file is unchanged and -1 if the file has been removed

Returns: int 1=file added; 0=unchanged; -1=file removed

equals

public boolean equals(Object other)

exists

public boolean exists()

getWar

public File getWar()

hashCode

public int hashCode()

modified

public boolean modified()

setLastState

protected void setLastState(int lastState)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.