org.instrumentmiddleware.cima.util
Class startStandaloneModules

java.lang.Object
  extended by org.instrumentmiddleware.cima.util.startStandaloneModules

public class startStandaloneModules
extends java.lang.Object

This class is used to start either the Instrument Representative or IR's Clients as a standalone application. It contains initialization procedures: first it loads the plugins configuration, then instantiates/registers the Web Service, finally start the embedded XFire HTTP Server Three arguments are required for the main method: the mode (can be instrument to start instrument side plugins or client to start client side plugins), the port the HTTP server will be running on, and the absolute path to the plugins configuration file.

java usyd.util.startStandaloneModules instrument 8090 /home/user/cima/config/source/plugin_source.xml


Field Summary
static java.lang.String CLIENT
           
static java.lang.String INST
           
static org.apache.log4j.Logger logger
           
protected  java.lang.String mode
           
 
Constructor Summary
startStandaloneModules(java.lang.String mode)
           
 
Method Summary
 void close()
           
static void main(java.lang.String[] args)
           
 void start(java.lang.String port, java.lang.String configPath)
           
protected  void startXFireService(java.lang.String port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Logger logger

INST

public static java.lang.String INST

CLIENT

public static java.lang.String CLIENT

mode

protected java.lang.String mode
Constructor Detail

startStandaloneModules

public startStandaloneModules(java.lang.String mode)
Method Detail

start

public void start(java.lang.String port,
                  java.lang.String configPath)
           throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Throws:
java.lang.Exception

startXFireService

protected void startXFireService(java.lang.String port)
                          throws java.lang.Exception
Throws:
java.lang.Exception

main

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


Copyright © 2008. All Rights Reserved.