|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.jdbc.TableState
public class TableState
This is used by various elements of the JDBC disk cache to indicate the status of a table. The MySQL disk cache, for instance, marks the status as optimizing when a scheduled optimization is taking place. This allows the cache to balk rather than block during long running optimizations.
Field Summary | |
---|---|
static int |
DELETE_RUNNING
A potentially table locking deletion is running |
static int |
FREE
The table is free. |
static int |
OPTIMIZATION_RUNNING
A table locking optimization is running. |
Constructor Summary | |
---|---|
TableState(java.lang.String tableName)
Construct a usable table state. |
Method Summary | |
---|---|
int |
getState()
|
java.lang.String |
getTableName()
|
void |
setState(int state)
|
void |
setTableName(java.lang.String tableName)
|
java.lang.String |
toString()
Write out the values for debugging purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FREE
public static final int DELETE_RUNNING
public static final int OPTIMIZATION_RUNNING
Constructor Detail |
---|
public TableState(java.lang.String tableName)
tableName
- Method Detail |
---|
public void setTableName(java.lang.String tableName)
tableName
- The tableName to set.public java.lang.String getTableName()
public void setState(int state)
state
- The state to set.public int getState()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |