Class FunctionDatabaseProxy
java.lang.Object
ghidra.features.bsim.query.client.FunctionDatabaseProxy
- All Implemented Interfaces:
FunctionDatabase,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.features.bsim.query.FunctionDatabase
FunctionDatabase.BSimError, FunctionDatabase.ConnectionType, FunctionDatabase.DatabaseNonFatalException, FunctionDatabase.ErrorCategory, FunctionDatabase.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close down (the connection with) the databaseintReturn -1 if info layout version is earlier than current client expectation Return 1 if info layout version is later than current client expectation Return 0 if info version and client version are the samegetInfo()If the last query failed to produce a response, use this method to recover the error messageReturn theserver info objectfor this databasebooleanInitialize (a connection with) the database.Send a query to the database.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.features.bsim.query.FunctionDatabase
changePassword, getOverviewFunctionsPerStage, getQueriedFunctionsPerStage, isPasswordChangeAllowed
-
Constructor Details
-
FunctionDatabaseProxy
- Throws:
MalformedURLException
-
-
Method Details
-
getStatus
- Specified by:
getStatusin interfaceFunctionDatabase- Returns:
- the status of the current connection with this database
-
getConnectionType
- Specified by:
getConnectionTypein interfaceFunctionDatabase- Returns:
- the type of connection
-
getUserName
- Specified by:
getUserNamein interfaceFunctionDatabase- Returns:
- username (being used to establish connection)
-
getLSHVectorFactory
- Specified by:
getLSHVectorFactoryin interfaceFunctionDatabase- Returns:
- factory the database is using to create LSHVector objects
-
getInfo
- Specified by:
getInfoin interfaceFunctionDatabase- Returns:
- an information object giving general characteristics and descriptions of this database
-
compareLayout
public int compareLayout()Description copied from interface:FunctionDatabaseReturn -1 if info layout version is earlier than current client expectation Return 1 if info layout version is later than current client expectation Return 0 if info version and client version are the same- Specified by:
compareLayoutin interfaceFunctionDatabase- Returns:
- comparison of actual database layout with layout expected by client
-
getURLString
- Specified by:
getURLStringin interfaceFunctionDatabase
-
getServerInfo
Description copied from interface:FunctionDatabaseReturn theserver info objectfor this database- Specified by:
getServerInfoin interfaceFunctionDatabase- Returns:
- the server info object
-
initialize
public boolean initialize()Description copied from interface:FunctionDatabaseInitialize (a connection with) the database. If initialization is not successful, this routine will return false and an error description can be obtained using getLastError- Specified by:
initializein interfaceFunctionDatabase- Returns:
- true if the database ready for querying
-
close
public void close()Description copied from interface:FunctionDatabaseClose down (the connection with) the database- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFunctionDatabase
-
getLastError
Description copied from interface:FunctionDatabaseIf the last query failed to produce a response, use this method to recover the error message- Specified by:
getLastErrorin interfaceFunctionDatabase- Returns:
- a String describing the error
-
query
Description copied from interface:FunctionDatabaseSend a query to the database. The response is returned as a QueryResponseRecord. If this is null, an error has occurred and an error message can be obtained from getLastError- Specified by:
queryin interfaceFunctionDatabase- Parameters:
query- an object describing the query- Returns:
- the response object or null if there is an error
-