|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacorb.imr.util.ImRModel
public class ImRModel
This class provides the GUIs functionality communicating with the repository.
| Field Summary | |
|---|---|
protected int |
m_current_refresh_interval
|
protected boolean |
m_refresh_disabled
|
| Constructor Summary | |
|---|---|
ImRModel()
The constructor. |
|
| Method Summary | |
|---|---|
void |
addServer(java.lang.String name,
java.lang.String command,
java.lang.String host)
Add a server to the repository. |
void |
connectTo(java.lang.String ior_url)
Connect the manager to a remote repository. |
void |
disableRefresh()
Disable the automatic refresh. |
void |
fetchServers()
Fetch all servers from the repository. |
javax.swing.JComboBox |
getHostSelector()
Get a JComboBox containing all known hostnames. |
javax.swing.table.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. |
javax.swing.table.TableModel |
getServerTableModel()
Get the table model for the server table. |
javax.swing.JTree |
getTree()
Get the tree representation of the server structure. |
void |
holdServer(int server_row)
Hold a server. |
void |
holdServer(java.lang.String name)
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. |
void |
refreshServer(int index)
Refresh a server. |
void |
refreshServer(java.lang.String name)
Refresh a server. |
void |
releaseServer(int server_row)
Release a server. |
void |
releaseServer(java.lang.String name)
Release a server. |
void |
removeServer(int server_row)
Remove a server from the repository. |
void |
removeServer(java.lang.String name)
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(int server_row)
Set a server down. |
void |
setServerDown(java.lang.String name)
Set a server down. |
protected void |
updateServer(int server_row,
java.lang.String field_name,
java.lang.Object new_value)
Update a server in the repository by changes the user made in the server table of the GUI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_current_refresh_interval
protected boolean m_refresh_disabled
| Constructor Detail |
|---|
public ImRModel()
| Method Detail |
|---|
public void connectTo(java.lang.String ior_url)
ior_url - an url pointing to the IOR file of a remote repository.public javax.swing.JComboBox getHostSelector()
public javax.swing.table.TableModel getPOATableModel()
public javax.swing.table.TableModel getServerTableModel()
public void poaTableForServer(ServerInfo server)
server - the servers name to build the table for.public void fetchServers()
public void removeServer(java.lang.String name)
name - the servers name.public void removeServer(int server_row)
server_row - the servers row in the table.public void holdServer(java.lang.String name)
name - the servers name.public void holdServer(int server_row)
server_row - the servers row in the table.public void releaseServer(java.lang.String name)
name - the servers name.public void releaseServer(int server_row)
server_row - the servers row in the table.public void refreshServer(java.lang.String name)
name - the servers name.public void refreshServer(int index)
index - the servers row in the table.public void setServerDown(java.lang.String name)
name - the servers name.public void setServerDown(int server_row)
server_row - the servers row in the table.
public void addServer(java.lang.String name,
java.lang.String command,
java.lang.String host)
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.public javax.swing.JTree getTree()
public void imrShutdown(boolean wait)
wait - true, if ORB should wait for still open connections to be
closed by clients.public void saveTable()
public int getRow(ServerInfo server,
POAInfo poa)
server - the server node the POA belongs to.poa - the poas poa node.public void setRefreshInterval(int interval)
interval - refresh interval in ms.public void disableRefresh()
protected void updateServer(int server_row,
java.lang.String field_name,
java.lang.Object new_value)
server_row - the row of the server in the table.field_name - the columns name.new_value - the cells new value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||