public abstract class AbstractPlugin extends Object implements Plugin
This class provides a basic implementation for most of the interface methods
of the Plugin
class. Since most plugins do not do any special
initialization, and only require that the interface is an
InetAddress
object this class provides eveything but the
poll
interface.
Constructor and Description |
---|
AbstractPlugin() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getProtocolName()
Returns the name of the protocol that this plugin checks on the target
system for support.
|
abstract boolean |
isProtocolSupported(InetAddress address)
Returns true if the protocol defined by this plugin is supported.
|
abstract boolean |
isProtocolSupported(InetAddress address,
Map<String,Object> qualifiers)
Returns true if the protocol defined by this plugin is supported.
|
public abstract String getProtocolName()
getProtocolName
in interface Plugin
public abstract boolean isProtocolSupported(InetAddress address)
isProtocolSupported
in interface Plugin
address
- The address to check for support.public abstract boolean isProtocolSupported(InetAddress address, Map<String,Object> qualifiers)
isProtocolSupported
in interface Plugin
address
- The address to check for support.qualifiers
- The map where qualification are set by the plugin.Copyright © 2017. All rights reserved.