public interface RemotelyManageable extends Remote
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMINISTRATION_PERMISSION |
static String |
CONNECTION_INFO |
static String |
IS_MULTICONNECTION |
static String |
LOADED_ENTITIES |
static String |
MULTICONNECTION_IDLIST |
static String |
MULTICONNECTION_INFO |
| Modifier and Type | Method and Description |
|---|---|
void |
closeLockedConnections(String id,
String databaseId) |
boolean |
closeSession(String id,
int sessionId)
This method close the user's session with the given sessionID.
|
void |
finishAdministrationRemoteSession(String id)
Method that finishes the remote session.
|
boolean |
getDEBUGValueRemote(String id,
String v)
Method to obtain the current value of the DEBUG Server variables.
|
String |
getLastNCharactersFromLogFile(int nCharacters)
Method that recovers the n characters indicated from the log file.
|
IRemoteLogManager |
getRemoteLogManager(String id) |
Properties |
getRemotePreferencesFile(String id)
Method to get remotely the Server Preferences file.
|
SessionInfo[] |
getSessionInfo(String id)
This method returns the main information of all available user's
sessions.
|
Hashtable |
getStartSessionTime(String id)
This method obtains a list with all the start times of all connections.
|
Hashtable |
getSystemInfo(String id,
String key)
Method that returns system information about the connection with the
database.
|
Hashtable |
getUserIds(String id)
This method returns a Hashtable with the current list of users's IDs.
|
boolean |
ping()
unimplemented.
|
void |
removeEntity(String id,
String entityName) |
void |
restartServer(String id) |
void |
setDEBUGValueRemote(String id,
String v,
boolean b)
Method to set the DEBUG Server variables.
|
void |
setRemotePreferencesFile(String id,
Properties prop)
Method to set remotely the Server Preferences file.
|
String |
startAdministrationRemoteSession(String user,
String password)
This method starts a new remote session.
|
void |
stopServer(String id) |
static final String CONNECTION_INFO
static final String IS_MULTICONNECTION
static final String MULTICONNECTION_IDLIST
static final String MULTICONNECTION_INFO
static final String LOADED_ENTITIES
static final String ADMINISTRATION_PERMISSION
String startAdministrationRemoteSession(String user, String password) throws Exception
user - String with the user.password - String with the password.String with the administrator id of the remote
session.Exceptionboolean closeSession(String id, int sessionId) throws Exception
id - String with the administrator id of the remote session.sessionId - int with the session id of the user's session.boolean with the result of the operation.ExceptionHashtable getStartSessionTime(String id) throws Exception
id - String with the administrator id of the remote session.Hashtable with the values.ExceptionSessionInfo[] getSessionInfo(String id) throws Exception
id - String with the administrator id of the remote session.SessionInfo[] with the information of the
sessions.ExceptionHashtable getSystemInfo(String id, String key) throws Exception
| key | meaning |
| CONNECTION_INFO | To get the connection information when exist only one connection. |
| IS_MULTICONNECTION | To know if multiconnection is available. Returns a String "true" or "false". |
| MULTICONNECTION_IDLIST | To get the list of Strings with the identification of the connections. |
| MULTICONNECTION_INFO | To get the connection information of all connections available. |
NOTE: the connection information contains into the Hashtable returned is:
id - String with the administrator id of the remote session.key - String indicating what information you wish to request.Hashtable with the values.ExceptionHashtable getUserIds(String id) throws Exception
id - String with the administrator id of the remote session.Hashtable with the user's IDs.Exceptionvoid finishAdministrationRemoteSession(String id) throws Exception
id - String with the administrator id of the remote session.ExceptionString getLastNCharactersFromLogFile(int nCharacters) throws Exception
nCharacters - int with the number of characters that will be recovered.String with the characters of the log file.Exceptionvoid setDEBUGValueRemote(String id, String v, boolean b) throws Exception
id - String with the administrator id of the remote session.v - String with the name of the variable.b - Boolean with the value.Exceptionboolean getDEBUGValueRemote(String id, String v) throws Exception
id - String with the administrator id of the remote session.v - String with the name of the variable.boolean with the value of the indicated variable.ExceptionProperties getRemotePreferencesFile(String id) throws Exception
id - String with the administrator id of the remote session.Properties with the preferences.Exceptionvoid setRemotePreferencesFile(String id, Properties prop) throws Exception
id - String with the administrator id of the remote session.prop - The properties file to be established. This file will contain
the structure of pair values: key-value.Exceptionvoid closeLockedConnections(String id, String databaseId) throws Exception
ExceptionIRemoteLogManager getRemoteLogManager(String id) throws Exception
ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.