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 TypeMethodDescriptionvoid
close()
Close down (the connection with) the databaseint
Return -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 object
for this databaseboolean
Initialize (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, wait
Methods inherited from interface ghidra.features.bsim.query.FunctionDatabase
changePassword, getOverviewFunctionsPerStage, getQueriedFunctionsPerStage, isPasswordChangeAllowed
-
Constructor Details
-
FunctionDatabaseProxy
- Throws:
MalformedURLException
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceFunctionDatabase
- Returns:
- the status of the current connection with this database
-
getConnectionType
- Specified by:
getConnectionType
in interfaceFunctionDatabase
- Returns:
- the type of connection
-
getUserName
- Specified by:
getUserName
in interfaceFunctionDatabase
- Returns:
- username (being used to establish connection)
-
getLSHVectorFactory
- Specified by:
getLSHVectorFactory
in interfaceFunctionDatabase
- Returns:
- factory the database is using to create LSHVector objects
-
getInfo
- Specified by:
getInfo
in interfaceFunctionDatabase
- Returns:
- an information object giving general characteristics and descriptions of this database
-
compareLayout
public int compareLayout()Description copied from interface:FunctionDatabase
Return -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:
compareLayout
in interfaceFunctionDatabase
- Returns:
- comparison of actual database layout with layout expected by client
-
getURLString
- Specified by:
getURLString
in interfaceFunctionDatabase
-
getServerInfo
Description copied from interface:FunctionDatabase
Return theserver info object
for this database- Specified by:
getServerInfo
in interfaceFunctionDatabase
- Returns:
- the server info object
-
initialize
public boolean initialize()Description copied from interface:FunctionDatabase
Initialize (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:
initialize
in interfaceFunctionDatabase
- Returns:
- true if the database ready for querying
-
close
public void close()Description copied from interface:FunctionDatabase
Close down (the connection with) the database- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceFunctionDatabase
-
getLastError
Description copied from interface:FunctionDatabase
If the last query failed to produce a response, use this method to recover the error message- Specified by:
getLastError
in interfaceFunctionDatabase
- Returns:
- a String describing the error
-
query
Description copied from interface:FunctionDatabase
Send 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:
query
in interfaceFunctionDatabase
- Parameters:
query
- an object describing the query- Returns:
- the response object or null if there is an error
-