|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.syslib.FarragoManagementUDR
public abstract class FarragoManagementUDR
FarragoManagementUDR is a set of user-defined routines providing access to information about the running state of Farrago, intended for management purposes - such as a list of currently executing statements. The UDRs are used to create views in initsql/createMgmtViews.sql.
Field Summary | |
---|---|
(package private) static String[] |
STORAGE_PROP_NAMES
|
(package private) static String |
STORAGEFACTORY_PROP_NAME
|
Constructor Summary | |
---|---|
FarragoManagementUDR()
|
Method Summary | |
---|---|
private static void |
addSysInfo(PreparedStatement resultInserter,
String source,
String property,
String value,
String units)
|
static void |
backupDatabaseWithoutSpaceCheck(String archiveDirectory,
String backupType,
String compressionMode)
Backs up the database, but without checking that there's enough space to perform the backup. |
static void |
backupDatabaseWithSpaceCheck(String archiveDirectory,
String backupType,
String compressionMode,
long padding)
Backs up the database, checking that there's enough space to perform the backup. |
static void |
createDirectory(String path)
Creates a directory, including any parent directories. |
static void |
deleteFileOrDirectory(String path)
Deletes a file or directory. |
static void |
exportCatalog(String xmiFile)
Exports the catalog repository contents as an XMI file. |
static void |
flushCodeCache()
Discards all entries from the global code cache. |
static FarragoModelLoader |
getModelLoader()
|
static void |
lobText(String mofId,
String attributeName,
PreparedStatement resultInserter)
Retrieves a long catalog string attribute in chunks. |
static void |
objectsInUse(PreparedStatement resultInserter)
Populates a table of catalog objects in use by active statements. |
static void |
performanceCounters(PreparedStatement resultInserter)
Populates a table of performance counters. |
private static void |
readLinuxCpuinfo(PreparedStatement resultInserter,
FileReader fileReader,
String src)
|
private static void |
readLinuxMeminfo(PreparedStatement resultInserter,
FileReader fileReader,
String src)
|
static void |
repositoryIntegrityViolations(PreparedStatement resultInserter)
Retrieves a list of repository integrity violations. |
static void |
repositoryProperties(PreparedStatement resultInserter)
Populates a table of properties of the current repository connection. |
static void |
restoreDatabase(String archiveDirectory)
Restores a database from backup. |
static void |
restoreDatabaseWithoutCatalog(String archiveDirectory)
Restores a database from backup, excluding the catalog data. |
static void |
sessionParameters(PreparedStatement resultInserter)
Populates a list of session parameters |
static void |
sessions(PreparedStatement resultInserter)
Populates a table of currently active sessions. |
private static void |
setElementToUnicode(FemSqltypedElement element,
String characterSetName,
String collationName)
|
static void |
setOptRuleDescExclusionFilter(String regex)
Sets a filter on the optimizer rules to be used in the current session. |
static void |
setUnicodeAsDefault()
Sets Unicode as the default character set. |
static int |
sleep(long millis)
Sleeps for a given number of milliseconds (checking for query cancellation every second). |
static void |
statements(PreparedStatement resultInserter)
Populates a table of information on currently executing statements. |
static void |
systemInfo(PreparedStatement resultInserter)
Populates a table of global information about the running system. |
static void |
threadList(PreparedStatement resultInserter)
Populates a table of all threads running in the JVM. |
static void |
threadStackEntries(PreparedStatement resultInserter)
Populates a table of stack entries for all threads running in the JVM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String STORAGEFACTORY_PROP_NAME
static final String[] STORAGE_PROP_NAMES
Constructor Detail |
---|
public FarragoManagementUDR()
Method Detail |
---|
public static void statements(PreparedStatement resultInserter) throws SQLException
SQLException
public static void objectsInUse(PreparedStatement resultInserter) throws SQLException
resultInserter
-
SQLException
public static void sessions(PreparedStatement resultInserter) throws SQLException
resultInserter
-
SQLException
public static void sessionParameters(PreparedStatement resultInserter) throws SQLException
SQLException
public static int sleep(long millis)
millis
- number of milliseconds to sleep
public static void flushCodeCache() throws SQLException
SQLException
public static void exportCatalog(String xmiFile) throws Exception
xmiFile
- name of file to create
Exception
public static FarragoModelLoader getModelLoader()
public static void repositoryIntegrityViolations(PreparedStatement resultInserter) throws SQLException
SQLException
public static void repositoryProperties(PreparedStatement resultInserter) throws SQLException
resultInserter
-
SQLException
public static void threadList(PreparedStatement resultInserter) throws Exception
resultInserter
-
SQLException
Exception
public static void threadStackEntries(PreparedStatement resultInserter) throws Exception
resultInserter
-
SQLException
Exception
public static void performanceCounters(PreparedStatement resultInserter) throws Exception
resultInserter
-
Exception
public static void systemInfo(PreparedStatement resultInserter) throws Exception
resultInserter
-
Exception
private static void addSysInfo(PreparedStatement resultInserter, String source, String property, String value, String units) throws Exception
Exception
private static void readLinuxMeminfo(PreparedStatement resultInserter, FileReader fileReader, String src) throws Exception
Exception
private static void readLinuxCpuinfo(PreparedStatement resultInserter, FileReader fileReader, String src) throws Exception
Exception
public static void lobText(String mofId, String attributeName, PreparedStatement resultInserter) throws Exception
mofId
- MOFID of a repository objectattributeName
- name of attribute to retrieveresultInserter
-
Exception
public static void setOptRuleDescExclusionFilter(String regex)
regex
- regular expression for rule names to be excludedpublic static void createDirectory(String path) throws Exception
path
- directory path to be created
Exception
public static void deleteFileOrDirectory(String path) throws Exception
Exception
public static void backupDatabaseWithoutSpaceCheck(String archiveDirectory, String backupType, String compressionMode) throws Exception
archiveDirectory
- the pathname of the directory where the backup
files will be createdbackupType
- string value indicating whether the backup is a FULL,
INCREMENTAL, or DIFFERENTIAL backupcompressionMode
- string value indicating whether the backup is
COMPRESSED or UNCOMPRESSED
Exception
public static void backupDatabaseWithSpaceCheck(String archiveDirectory, String backupType, String compressionMode, long padding) throws Exception
archiveDirectory
- the pathname of the directory where the backup
files will be createdbackupType
- string value indicating whether the backup is a FULL,
INCREMENTAL, or DIFFERENTIAL backupcompressionMode
- string value indicating whether the backup is
COMPRESSED or UNCOMPRESSEDpadding
- number of bytes of additional space required on top of
what's estimated based on the number of data pages allocated
Exception
public static void restoreDatabase(String archiveDirectory) throws Exception
archiveDirectory
- the directory containing the backup
Exception
public static void restoreDatabaseWithoutCatalog(String archiveDirectory) throws Exception
archiveDirectory
- the directory containing the backup
Exception
public static void setUnicodeAsDefault() throws Exception
Exception
private static void setElementToUnicode(FemSqltypedElement element, String characterSetName, String collationName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |