Openwings API Documentation (v1.1)

net.openwings.availability
Class VisibleFactory

java.lang.Object
  extended bynet.openwings.availability.VisibleFactory

public final class VisibleFactory
extends java.lang.Object

This class provides a way to obtain an implementation of Visible. There may be multiple Visible instances in an application corresponding to different hosts. The choice of Visible implementation class is set using the net.openwings.availability.visible.implementation property. A compliant implementation must implement this interface and provide two constructors:


Constructor Summary
VisibleFactory()
           
 
Method Summary
static Visible getVisible(java.net.InetAddress host)
          This method is used to obtain an implementation of the Visible plugin based on an address.
static Visible getVisible(java.lang.String hostname)
          This method is used to obtain an implementation of the Visible plugin based on a hostname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleFactory

public VisibleFactory()
Method Detail

getVisible

public static Visible getVisible(java.net.InetAddress host)
This method is used to obtain an implementation of the Visible plugin based on an address.

Returns:
object implementing the Visible interface.

getVisible

public static Visible getVisible(java.lang.String hostname)
                          throws java.net.UnknownHostException
This method is used to obtain an implementation of the Visible plugin based on a hostname.

Returns:
object implementing the Visible interface.
Throws:
java.net.UnknownHostException - if the host cannot be determined from the hostname

Openwings API Documentation (v1.1)