|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.relational.PhysicalSchemaFileActivityConfiguration
Reads a configuration document and retrieves the physical schema information.
Field Summary | |
static java.lang.String |
ATTR_AVG_ROW_SIZE |
static java.lang.String |
ATTR_DATA_LENGTH |
static java.lang.String |
ATTR_INDEX_LENGTH |
static java.lang.String |
ATTR_NAME |
static java.lang.String |
ATTR_ROW_COUNT XML element and attribute names |
static java.lang.String |
ATTR_ROW_FORMAT |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private java.util.Map |
mAvgRowLength Average row length in a table |
private java.lang.String |
mDatabase Name of the database |
private java.util.Map |
mDataLength Size of a table |
private java.util.Map |
mIndexLength Size of an index |
private java.lang.String |
mJoinBufferSize Size of join buffer in a database |
private java.lang.String |
mMaxJoinSize Maximum join size in a database |
private java.lang.String |
mName Activity name |
private java.util.Map |
mRowCounts Number of rows in a table, mapped by table name |
private java.util.Map |
mRowFormat Table name mapped to row format |
private java.util.Set |
mTableNames Table names |
Constructor Summary | |
PhysicalSchemaFileActivityConfiguration(java.lang.String name) Constructor |
Method Summary | |
java.lang.String |
getAverageRowLength(java.lang.String table) Get the average length of a row in a particular table |
java.lang.String |
getDatabaseName() Get the name of the database |
java.lang.String |
getDataLength(java.lang.String table) Get the size of a table |
java.lang.String |
getIndexLength(java.lang.String table) Get the size of the index of a particular table |
java.lang.String |
getJoinBufferSize() Get the join buffer size for this database |
java.lang.String |
getMaxJoinSize() Get the max join size for this database |
java.lang.String |
getRowCount(java.lang.String table) Get the row count for a particular table. |
java.lang.String |
getRowFormat(java.lang.String table) Get the row format for a particular table. |
java.util.Set |
getTableNames() Get names of all tables. |
void |
initialise(org.w3c.dom.Document document) Parses the configuration document, initialising any fields that are necessary for the accessor methods to operate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final java.lang.String ATTR_ROW_COUNT
public static final java.lang.String ATTR_ROW_FORMAT
public static final java.lang.String ATTR_AVG_ROW_SIZE
public static final java.lang.String ATTR_DATA_LENGTH
public static final java.lang.String ATTR_INDEX_LENGTH
public static final java.lang.String ATTR_NAME
private java.util.Set mTableNames
private java.util.Map mRowCounts
private java.util.Map mRowFormat
private java.util.Map mDataLength
private java.util.Map mIndexLength
private java.util.Map mAvgRowLength
private java.lang.String mMaxJoinSize
private java.lang.String mJoinBufferSize
private java.lang.String mDatabase
private java.lang.String mName
Constructor Detail |
public PhysicalSchemaFileActivityConfiguration(java.lang.String name)
name
- Activity nameMethod Detail |
public void initialise(org.w3c.dom.Document document) throws ActivityConfigurationException
ActivityConfiguration
ActivityCreator
class.
initialise
in interface ActivityConfiguration
document
- The Document
containing the activity configuration information.ActivityConfigurationException
- If there is a problem initialising the ActivityConfiguration
object. This may be caused by the document containing invalid information, or perhaps by a system problem within the initialisation code.public java.util.Set getTableNames()
public java.lang.String getRowCount(java.lang.String table)
table
- Table namenull
if the table cannot be found or no information is available.public java.lang.String getRowFormat(java.lang.String table)
table
- Table namenull
if the table cannot be found or the information is not availablepublic java.lang.String getAverageRowLength(java.lang.String table)
table
- Table namenull
if the table cannot be found or the information is not availablepublic java.lang.String getDataLength(java.lang.String table)
table
- Table namenull
if the table cannot be found or the information is not availablepublic java.lang.String getIndexLength(java.lang.String table)
table
- Table namenull
if the table cannot be found or the information is not availablepublic java.lang.String getDatabaseName()
public java.lang.String getMaxJoinSize()
public java.lang.String getJoinBufferSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |