org.jacorb.imr.util
public class ImRModel extends Object
Field Summary | |
---|---|
protected int | m_current_refresh_interval |
protected boolean | m_refresh_disabled |
Constructor Summary | |
---|---|
ImRModel()
The constructor. |
Method Summary | |
---|---|
void | addServer(String name, String command, String host)
Add a server to the repository.
|
void | connectTo(String ior_url)
Connect the manager to a remote repository.
|
void | disableRefresh()
Disable the automatic refresh. |
void | fetchServers()
Fetch all servers from the repository. |
JComboBox | getHostSelector()
Get a JComboBox containing all known hostnames.
|
TableModel | getPOATableModel()
Get the table model for the POA table. |
int | getRow(ServerInfo server, POAInfo poa)
Get the row number of a POA in the POA table.
|
TableModel | getServerTableModel()
Get the table model for the server table. |
JTree | getTree()
Get the tree representation of the server structure.
|
void | holdServer(String name)
Hold a server.
|
void | holdServer(int server_row)
Hold a server.
|
void | imrShutdown(boolean wait)
Shut the repository down.
|
void | poaTableForServer(ServerInfo server)
Set the POA table model to the specific server, i.e.
the POA table displays this servers poas.
|
void | refreshServer(String name)
Refresh a server.
|
void | refreshServer(int index)
Refresh a server.
|
void | releaseServer(String name)
Release a server.
|
void | releaseServer(int server_row)
Release a server.
|
void | removeServer(String name)
Remove a server from the repository.
|
void | removeServer(int server_row)
Remove a server from the repository.
|
void | saveTable()
Make a backup of the server table. |
void | setRefreshInterval(int interval)
Set the interval by which the internal data is refreshed.
|
void | setServerDown(String name)
Set a server down.
|
void | setServerDown(int server_row)
Set a server down.
|
protected void | updateServer(int server_row, String field_name, Object new_value)
Update a server in the repository by changes the user made in the server
table of the GUI.
|
Parameters: name the servers name. command the servers startup command. Leave empty (not null) if automatic startup is not desired. host the host the server is running on.
Parameters: ior_url an url pointing to the IOR file of a remote repository.
Returns: a JComboBox.
Parameters: server the server node the POA belongs to. poa the poas poa node.
Returns: a JTree.
Parameters: name the servers name.
Parameters: server_row the servers row in the table.
Parameters: wait true, if ORB should wait for still open connections to be closed by clients.
Parameters: server the servers name to build the table for.
Parameters: name the servers name.
Parameters: index the servers row in the table.
Parameters: name the servers name.
Parameters: server_row the servers row in the table.
Parameters: name the servers name.
Parameters: server_row the servers row in the table.
Parameters: interval refresh interval in ms.
Parameters: name the servers name.
Parameters: server_row the servers row in the table.
Parameters: server_row the row of the server in the table. field_name the columns name. new_value the cells new value.