public abstract class AbstractTcpPlugin extends AbstractPlugin
Modifier | Constructor and Description |
---|---|
protected |
AbstractTcpPlugin(String protocol,
int defaultTimeout,
int defaultRetry)
Constructor for AbstractTcpPlugin.
|
protected |
AbstractTcpPlugin(String protocol,
int defaultPort,
int defaultTimeout,
int defaultRetry)
Constructor for AbstractTcpPlugin.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkConnection(ConnectionConfig config)
Test to see if the passed host-port pair is the endpoint for an Citrix
server.
|
protected abstract boolean |
checkProtocol(Socket socket,
ConnectionConfig config)
checkProtocol
|
protected void |
closeSocket(Socket socket,
ConnectionConfig config)
closeSocket
|
protected ConnectionConfig |
createConnectionConfig(InetAddress address,
int port)
createConnectionConfig
|
protected List<ConnectionConfig> |
getConnectionConfigList(Map<String,Object> qualifiers,
InetAddress address)
getConnectionConfigList
|
protected int |
getKeyedInteger(Map<String,Object> qualifiers,
String key,
int defaultVal)
getKeyedInteger
|
protected int[] |
getKeyedIntegerArray(Map<String,Object> qualifiers,
String key,
int[] defaultVal)
getKeyedIntegerArray
|
String |
getPluginName()
getPluginName
|
String |
getProtocolName()
Returns the name of the protocol that this plugin checks on the target
system for support.
|
protected SocketWrapper |
getSocketWrapper()
getSocketWrapper
|
boolean |
isProtocolSupported(InetAddress address)
Returns true if the protocol defined by this plugin is supported.
|
boolean |
isProtocolSupported(InetAddress address,
Map<String,Object> qualifiers)
Returns true if the protocol defined by this plugin is supported.
|
protected void |
populateConnectionConfig(ConnectionConfig config,
Map<String,Object> qualifiers)
populateConnectionConfig
|
protected boolean |
preconnectCheck(ConnectionConfig config)
preconnectCheck
|
protected void |
saveConfig(Map<String,Object> qualifiers,
ConnectionConfig config)
saveConfig
|
protected void |
saveKeyedInteger(Map<String,Object> qualifiers,
String key,
int value)
saveKeyedInteger
|
void |
setPluginName(String pluginName)
setPluginName
|
protected AbstractTcpPlugin(String protocol, int defaultTimeout, int defaultRetry)
Constructor for AbstractTcpPlugin.
protocol
- a String
object.defaultTimeout
- a int.defaultRetry
- a int.protected final boolean checkConnection(ConnectionConfig config)
Test to see if the passed host-port pair is the endpoint for an Citrix server. If there is an Citrix server at that destination then a value of true is returned from the method. Otherwise a false value is returned to the caller.
config
- a ConnectionConfig
object.protected void closeSocket(Socket socket, ConnectionConfig config)
closeSocket
socket
- a Socket
object.config
- a ConnectionConfig
object.protected abstract boolean checkProtocol(Socket socket, ConnectionConfig config) throws Exception
checkProtocol
socket
- a Socket
object.config
- a ConnectionConfig
object.Exception
- if any.protected ConnectionConfig createConnectionConfig(InetAddress address, int port)
createConnectionConfig
address
- a InetAddress
object.port
- a int.ConnectionConfig
object.protected List<ConnectionConfig> getConnectionConfigList(Map<String,Object> qualifiers, InetAddress address)
getConnectionConfigList
qualifiers
- a Map
object.address
- a InetAddress
object.List
object.protected final int getKeyedInteger(Map<String,Object> qualifiers, String key, int defaultVal)
getKeyedInteger
protected final int[] getKeyedIntegerArray(Map<String,Object> qualifiers, String key, int[] defaultVal)
getKeyedIntegerArray
public final String getPluginName()
getPluginName
public final String getProtocolName()
getProtocolName
in interface Plugin
getProtocolName
in class AbstractPlugin
public final boolean isProtocolSupported(InetAddress address)
isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
address
- The address to check for support.public final boolean isProtocolSupported(InetAddress address, Map<String,Object> qualifiers)
isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
address
- The address to check for support.qualifiers
- The map where qualification are set by the plugin.protected void populateConnectionConfig(ConnectionConfig config, Map<String,Object> qualifiers)
populateConnectionConfig
config
- a ConnectionConfig
object.qualifiers
- a Map
object.protected boolean preconnectCheck(ConnectionConfig config)
preconnectCheck
config
- a ConnectionConfig
object.protected void saveConfig(Map<String,Object> qualifiers, ConnectionConfig config)
saveConfig
qualifiers
- a Map
object.config
- a ConnectionConfig
object.protected final void saveKeyedInteger(Map<String,Object> qualifiers, String key, int value)
saveKeyedInteger
public final void setPluginName(String pluginName)
setPluginName
pluginName
- The pluginName to set.protected SocketWrapper getSocketWrapper()
getSocketWrapper
Copyright © 2015. All rights reserved.