public class TdbGridHost extends TdbMessageProvider implements com.tietoenator.trip.jxp.internal.utils.DOMSink, java.lang.Iterable<TdbGridHostPublication>
| Constructor and Description |
|---|
TdbGridHost(TdbSession session)
Constructor, creates a blank instance
|
TdbGridHost(TdbSession session,
java.lang.String name)
Constructor, creates an instance for the named host
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(TdbGridHostPublication publication)
Add a new publication to this host's offerings
|
void |
get()
Retrieve the properties of the grid host.
|
java.lang.String |
getIniFile()
Retrieve any host initialization file established for connections to this host
|
java.lang.String |
getName()
Retrieve the name of the host
|
int |
getPort()
Retrieve the port number the grid will use to connect to this host.
|
int |
getTimeout()
Retrieve the connection timeout established for connections to this host.
|
java.util.Iterator<TdbGridHostPublication> |
iterator()
Retrieve an iterator over the publications offered by this host.
|
java.util.List<TdbGridHostPublication> |
publications()
Retrieve a collection of publications offered by this host.
|
void |
put()
Store a new/modified host definition.
|
void |
remove()
Remove the host from the grid.
|
void |
setIniFile(java.lang.String inifile)
Establish a host initialization file for connections to this host
|
void |
setName(java.lang.String name)
Establish the name of the host
|
void |
setPort(int port)
Establish the port number the grid will use to connect to this host.
|
void |
setTimeout(int timeout)
Establist the connection timeout for connections to this host via TRIPnet.
|
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessagescancel, getSession, isCancelable, setCancelablepublic TdbGridHost(TdbSession session, java.lang.String name) throws TdbException
session - Active sessionname - Name or IP address of the cluster hostTdbExceptionpublic TdbGridHost(TdbSession session) throws TdbException
session - Active sessionTdbExceptionpublic java.lang.String getName()
public void setName(java.lang.String name)
name - Host namepublic java.lang.String getIniFile()
public void setIniFile(java.lang.String inifile)
inifile - Host initialization filepublic int getPort()
public void setPort(int port)
port - Port numberpublic int getTimeout()
public void setTimeout(int timeout)
timeout - Connection timeout, in millisecondspublic java.util.Iterator<TdbGridHostPublication> iterator()
iterator in interface java.lang.Iterable<TdbGridHostPublication>public java.util.List<TdbGridHostPublication> publications()
public void add(TdbGridHostPublication publication)
publication - New publication to addpublic void get()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void put()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void remove()
throws TdbException
This method causes network I/O.
TdbException