de.fhg.igd.semoa.net.farsight
Class FarSightLauncher

java.lang.Object
  extended byde.fhg.igd.semoa.net.farsight.FarSightLauncher

public class FarSightLauncher
extends Object

Starts the farsight service with a certain configuration that is provided by a properties file (see main(java.lang.String[])). The Properties file can contain the following settings:

System Properties as well as SeMoA Shell variables are available within this configuration file as ${}.

These are all tasks of the launcher:

Version:
"$id: $"
Author:
Jan Haevecker
See Also:
FarSight, FarSightImpl

Field Summary
private static FarSightImpl instance_
          The Farsight service
private static Logger log_
          The Logger instance for this class
private static String props_
          A path that points to the FarSight properties file
 
Constructor Summary
FarSightLauncher()
           
 
Method Summary
private static void initStrategy()
          Creates discovery strategy objects as set in the properties
private static void loadDefaultHosts()
          Reads the default hosts from the properties file and forwards them to FarSight.
static void main(String[] args)
          Expects exactly one parameter which must be the relative path to the properties file of FarSightImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log_

private static Logger log_
The Logger instance for this class


instance_

private static FarSightImpl instance_
The Farsight service


props_

private static String props_
A path that points to the FarSight properties file

Constructor Detail

FarSightLauncher

public FarSightLauncher()
Method Detail

main

public static void main(String[] args)
                 throws FarSightException,
                        ClassNotFoundException
Expects exactly one parameter which must be the relative path to the properties file of FarSightImpl.

Throws:
FarSightException
ClassNotFoundException

initStrategy

private static void initStrategy()
                          throws ClassNotFoundException
Creates discovery strategy objects as set in the properties

Throws:
ClassNotFoundException

loadDefaultHosts

private static void loadDefaultHosts()
Reads the default hosts from the properties file and forwards them to FarSight.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.