|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.Bloof
Central controlling class for the Bloof system. Any client that want to use the Bloof API mainly uses the static functions provided by this class.
Field Summary | |
static DbAccess |
INTERNAL_DATABASE
CvsAccess to internal McKoi Database |
static java.lang.String |
LOCAL_BLOOF_DIR
Bloof local dir |
Constructor Summary | |
Bloof()
|
Method Summary | |
static void |
addBloofEventListener(BloofEventListener aListener)
Adds a Listener to the Bloof event dispatching list |
static void |
addBloofExceptionListener(BloofExceptionListener aListener)
Registers a new ExceptionListener to Bloof. |
static void |
addProgressListener(ProgressListener aProgressListener)
Registers a new ProgressListener to Bloof. |
static void |
closeProject()
Closes the current project |
static void |
collectGarbage()
Runs the garbage collector and finalizers in order to free memory. |
static void |
exit()
This method is called on exit of Bloof |
static void |
exportResult(Metric aMetric,
java.lang.String aFileName)
Exports the result of a metric to a XML file |
static void |
fail(java.lang.String aFailReason)
This method is called if a serious error has occured during processing. |
static Database |
getDatabase()
Returns the current database |
static void |
importProject(ScmAccess aScmAccess,
DbAccess aDbAccess)
Fills a new database with the data stored in the scm accessd by scmAccess |
static void |
openProject(DbAccess aDbAccess)
Opens the project in the specified database connection |
static void |
propagateBloofEvent(BloofEvent aPe)
Notifies the registered ProgessEventListeners about a new Bloof Event |
static void |
propagateBloofException(BloofException aBloofException)
Notifies the registered BloofExecptionListeners about a new Exception |
static void |
propagateProgressEvent(ProgressEvent aPe)
Notifies the registered ProgessEventListeners about a new Progress |
static void |
runMetric(Metric aMetric)
Runs a metric |
static void |
setDatabase(Database aDatabase)
|
static void |
updateProject(ScmAccess aScmAccess,
DbAccess aDbAccess)
Fills a new database with the data stored in the scm accessd by scmAccess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOCAL_BLOOF_DIR
public static final DbAccess INTERNAL_DATABASE
Constructor Detail |
public Bloof()
Method Detail |
public static void addBloofEventListener(BloofEventListener aListener)
aListener
- Listener to addpublic static void addBloofExceptionListener(BloofExceptionListener aListener)
aListener
- receives progress eventspublic static void addProgressListener(ProgressListener aProgressListener)
aProgressListener
- receives progress eventspublic static void closeProject() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
- if the database could not be found or started
java.io.IOException
- if the database could not be found or startedpublic static void collectGarbage()
public static void exit()
public static void exportResult(Metric aMetric, java.lang.String aFileName)
aMetric
- the result of which is to be exportedaFileName
- name of the XML filepublic static void fail(java.lang.String aFailReason)
aFailReason
- reason for exit.public static Database getDatabase()
public static void importProject(ScmAccess aScmAccess, DbAccess aDbAccess) throws java.sql.SQLException, ScmAccessException, java.io.IOException
aScmAccess
- access objectaDbAccess
- access object for the database to be used
java.sql.SQLException
- on database error
java.io.IOException
- on database script error
ScmAccessException
- on scm access errorpublic static void openProject(DbAccess aDbAccess) throws java.sql.SQLException
aDbAccess
- access object for the database to be used
java.sql.SQLException
- if the database could not be found or startedpublic static void propagateBloofEvent(BloofEvent aPe)
aPe
- BloofEvent that had happendpublic static void propagateBloofException(BloofException aBloofException)
aBloofException
- Exception that has happendpublic static void propagateProgressEvent(ProgressEvent aPe)
aPe
- Progress that had happendpublic static void runMetric(Metric aMetric)
aMetric
- metric to runpublic static void setDatabase(Database aDatabase)
aDatabase
- new databasepublic static void updateProject(ScmAccess aScmAccess, DbAccess aDbAccess) throws java.sql.SQLException, ScmAccessException, java.io.IOException
aScmAccess
- access objectaDbAccess
- access object for the database to be used
java.sql.SQLException
- on database error
java.io.IOException
- on database script error
ScmAccessException
- on scm access error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |