genDevs.devsBridge
Class ServerSetup

java.lang.Object
  extended by genDevs.devsBridge.ServerSetup

public class ServerSetup
extends java.lang.Object

Adaptation of Test and models to local Corba Server Setup. The hard coded values are default values. Adjust setup by editing ServerSetup.xml in the execution directory.

Author:
twutz

Field Summary
(package private) static java.lang.String AdevsFactoryCmd
          Command with full path to start the ADevs Factory Server.
(package private) static java.lang.String ADevsFactoryName
          The namingId by which the ADevsFactory can be found within the naming service.
protected static ServerSetup instance
          implemented as singleton
(package private) static java.lang.String NamingHostPort
          Host and port, where the Corba Naming service can be found.
protected  java.util.Properties prop
          properties loaded from serverSetup.xml
(package private) static java.lang.String SimpArcFactoryName
          The namingId by which the SimpArcFactory can be found within the naming service.
 
Constructor Summary
protected ServerSetup()
          implemented as singleton, use ServerSetup.getInstance()
 
Method Summary
static java.lang.String getAdevsFactoryCmd()
           
static java.lang.String getADevsFactoryName()
           
static ServerSetup getInstance()
          implemented as singleton, use ServerSetup.getInstance()
static java.lang.String getNamingHostPort()
           
static java.lang.String getSimpArcFactoryName()
           
protected  void loadProperties(java.lang.String fileName)
          reloads the properties from given FileName
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected java.util.Properties prop
properties loaded from serverSetup.xml


NamingHostPort

static java.lang.String NamingHostPort
Host and port, where the Corba Naming service can be found. e.g: 149.169.179.74:2809


AdevsFactoryCmd

static final java.lang.String AdevsFactoryCmd
Command with full path to start the ADevs Factory Server.

See Also:
Constant Field Values

ADevsFactoryName

static final java.lang.String ADevsFactoryName
The namingId by which the ADevsFactory can be found within the naming service. DevsFactoryServer must be started and registered before using this.

See Also:
Constant Field Values

SimpArcFactoryName

static final java.lang.String SimpArcFactoryName
The namingId by which the SimpArcFactory can be found within the naming service. SimpArcFactoryServer must be started and registered before using this.

See Also:
Constant Field Values

instance

protected static ServerSetup instance
implemented as singleton

Constructor Detail

ServerSetup

protected ServerSetup()
implemented as singleton, use ServerSetup.getInstance()

Method Detail

loadProperties

protected void loadProperties(java.lang.String fileName)
                       throws java.util.InvalidPropertiesFormatException,
                              java.io.FileNotFoundException,
                              java.io.IOException
reloads the properties from given FileName

Throws:
java.util.InvalidPropertiesFormatException
java.io.FileNotFoundException
java.io.IOException

getInstance

public static ServerSetup getInstance()
implemented as singleton, use ServerSetup.getInstance()


getAdevsFactoryCmd

public static java.lang.String getAdevsFactoryCmd()

getNamingHostPort

public static java.lang.String getNamingHostPort()

getADevsFactoryName

public static java.lang.String getADevsFactoryName()

getSimpArcFactoryName

public static java.lang.String getSimpArcFactoryName()

main

public static void main(java.lang.String[] args)