Package adams.scripting.connection
Class AbstractMultiConnection
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.scripting.connection.AbstractConnection
-
- adams.scripting.connection.AbstractMultiConnection
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,Connection
,Serializable
,Comparable<Connection>
- Direct Known Subclasses:
LoadBalancer
public abstract class AbstractMultiConnection extends AbstractConnection
Ancestor for connection classes that manage multiple base connections.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Connection>
m_Connections
the connections to manage.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiConnection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addConnection(Connection conn)
Allows adding a connecction at runtime, without triggering a reset.abstract String
connectionsTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.Connection[]
getConnections()
Returns the connections to manage.protected void
initialize()
Initializes the members.void
removeConnection(Connection conn)
Allows removing a connecction at runtime, without triggering a reset.void
setConnections(Connection[] value)
Sets the connections to manage.-
Methods inherited from class adams.scripting.connection.AbstractConnection
checkRequest, checkResponse, cleanUp, compareTo, doSendRequest, doSendResponse, equals, getQuickInfo, sendRequest, sendResponse, toString
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Connections
protected List<Connection> m_Connections
the connections to manage.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOptionHandler
-
setConnections
public void setConnections(Connection[] value)
Sets the connections to manage.- Parameters:
value
- the connections
-
getConnections
public Connection[] getConnections()
Returns the connections to manage.- Returns:
- the connections
-
connectionsTipText
public abstract String connectionsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
addConnection
public void addConnection(Connection conn)
Allows adding a connecction at runtime, without triggering a reset.- Parameters:
conn
- the connection to add
-
removeConnection
public void removeConnection(Connection conn)
Allows removing a connecction at runtime, without triggering a reset.- Parameters:
conn
- the connection to remove
-
-