Package com.tietoenator.trip.jxp.grid
Class TdbGridHost
java.lang.Object
com.tietoenator.trip.jxp.session.TdbSessionObject
com.tietoenator.trip.jxp.TdbMessageProvider
com.tietoenator.trip.jxp.grid.TdbGridHost
- All Implemented Interfaces:
com.tietoenator.trip.jxp.internal.utils.DOMSink,Iterable<TdbGridHostPublication>
public class TdbGridHost
extends TdbMessageProvider
implements com.tietoenator.trip.jxp.internal.utils.DOMSink, Iterable<TdbGridHostPublication>
Container and manipulation logic for a host on the grid
-
Constructor Summary
ConstructorsConstructorDescriptionTdbGridHost(TdbSession session) Constructor, creates a blank instanceTdbGridHost(TdbSession session, String name) Constructor, creates an instance for the named host -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TdbGridHostPublication publication) Add a new publication to this host's offeringsvoidget()Retrieve the properties of the grid host.Retrieve any host initialization file established for connections to this hostgetName()Retrieve the name of the hostintgetPort()Retrieve the port number the grid will use to connect to this host.intRetrieve the connection timeout established for connections to this host.iterator()Retrieve an iterator over the publications offered by this host.Retrieve a collection of publications offered by this host.voidput()Store a new/modified host definition.voidremove()Remove the host from the grid.voidsetIniFile(String inifile) Establish a host initialization file for connections to this hostvoidEstablish the name of the hostvoidsetPort(int port) Establish the port number the grid will use to connect to this host.voidsetTimeout(int timeout) Establist the connection timeout for connections to this host via TRIPnet.Methods inherited from class com.tietoenator.trip.jxp.TdbMessageProvider
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessagesMethods inherited from class com.tietoenator.trip.jxp.session.TdbSessionObject
cancel, getSession, isCancelable, setCancelableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TdbGridHost
Constructor, creates an instance for the named host- Parameters:
session- Active sessionname- Name or IP address of the cluster host- Throws:
TdbException
-
TdbGridHost
Constructor, creates a blank instance- Parameters:
session- Active session- Throws:
TdbException
-
-
Method Details
-
getName
Retrieve the name of the host- Returns:
- Host name
-
setName
Establish the name of the host- Parameters:
name- Host name
-
getIniFile
Retrieve any host initialization file established for connections to this host- Returns:
- Host initialization file, if any
-
setIniFile
Establish a host initialization file for connections to this host- Parameters:
inifile- Host initialization file
-
getPort
public int getPort()Retrieve the port number the grid will use to connect to this host. All connections from the grid to host servers use the TRIPnet protocol.- Returns:
- Port number
-
setPort
public void setPort(int port) Establish the port number the grid will use to connect to this host. All connections from the grid to host servers use the TRIPnet protocol.- Parameters:
port- Port number
-
getTimeout
public int getTimeout()Retrieve the connection timeout established for connections to this host.- Returns:
- Connection timeout, in milliseconds.
-
setTimeout
public void setTimeout(int timeout) Establist the connection timeout for connections to this host via TRIPnet.- Parameters:
timeout- Connection timeout, in milliseconds
-
iterator
Retrieve an iterator over the publications offered by this host.- Specified by:
iteratorin interfaceIterable<TdbGridHostPublication>- Returns:
- Publication iterator
-
publications
Retrieve a collection of publications offered by this host.- Returns:
- Publication collection
-
add
Add a new publication to this host's offerings- Parameters:
publication- New publication to add
-
get
Retrieve the properties of the grid host.This method causes network I/O.
- Throws:
TdbException
-
put
Store a new/modified host definition.This method causes network I/O.
- Throws:
TdbException
-
remove
Remove the host from the grid.This method causes network I/O.
- Throws:
TdbException
-