public class ImRModel extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
m_current_refresh_interval |
protected boolean |
m_refresh_disabled |
Constructor and Description |
---|
ImRModel()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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(int server_row)
Hold a server.
|
void |
holdServer(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(String name)
Refresh a server.
|
void |
releaseServer(int server_row)
Release a server.
|
void |
releaseServer(String name)
Release a server.
|
void |
removeServer(int server_row)
Remove a server from the repository.
|
void |
removeServer(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(String name)
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.
|
protected int m_current_refresh_interval
protected boolean m_refresh_disabled
public ImRModel()
public void connectTo(String ior_url)
ior_url
- an url pointing to the IOR file of a remote repository.public JComboBox getHostSelector()
public TableModel getPOATableModel()
public TableModel getServerTableModel()
public void poaTableForServer(ServerInfo server)
server
- the servers name to build the table for.public void fetchServers()
public void removeServer(String name)
name
- the servers name.public void removeServer(int server_row)
server_row
- the servers row in the table.public void holdServer(String name)
name
- the servers name.public void holdServer(int server_row)
server_row
- the servers row in the table.public void releaseServer(String name)
name
- the servers name.public void releaseServer(int server_row)
server_row
- the servers row in the table.public void refreshServer(String name)
name
- the servers name.public void refreshServer(int index)
index
- the servers row in the table.public void setServerDown(String name)
name
- the servers name.public void setServerDown(int server_row)
server_row
- the servers row in the table.public void addServer(String name, String command, 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 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, String field_name, Object new_value)
server_row
- the row of the server in the table.field_name
- the columns name.new_value
- the cells new value.Copyright © 2017 JacORB. All rights reserved.