simpArc.devsBridge
Class SimpArcFactoryServer
java.lang.Object
org.omg.PortableServer.Servant
devsBridge.TradingDevsFactoryPOA
genDevs.devsBridge.factory.DevsFactoryServer
simpArc.devsBridge.SimpArcFactoryServer
- All Implemented Interfaces:
- CosTradingDynamic.DynamicPropEvalOperations, devsBridge.DevsFactoryOperations, devsBridge.PingableOperations, devsBridge.TradingDevsFactoryOperations, org.omg.CORBA.portable.InvokeHandler
public class SimpArcFactoryServer
- extends DevsFactoryServer
DevsFactory for SimpArc.corba models.
- Author:
- twutz
Method Summary |
java.lang.String[] |
availableModels()
|
protected java.lang.Object |
createInstance(java.lang.String modelName)
Return an instance of given model name. |
static void |
main(java.lang.String[] args)
|
static java.lang.Thread |
startServer(java.lang.String name)
Helper for starts an instance of this server and registers it at the Naming service. |
Methods inherited from class genDevs.devsBridge.factory.DevsFactoryServer |
activeModelsCnt, availableTranslators, constructDevs, constructDevsInit, constructDevsInit, constructDevsInitParams, constructDevsPorts, createTranslator, evalDP, finalize, insertModel, invokeFactory, ping, releaseModel, removeModel, setOfferId, stopFactory |
Methods inherited from class devsBridge.TradingDevsFactoryPOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpArcFactoryServer
public SimpArcFactoryServer(ORBHelper.ORBInfo orbInfo)
throws org.omg.CORBA.UserException
- Throws:
org.omg.CORBA.UserException
createInstance
protected java.lang.Object createInstance(java.lang.String modelName)
throws devsBridge.DevsCorbaException
- Description copied from class:
DevsFactoryServer
- Return an instance of given model name.
This implementation uses the Java Reflection API and requires fully qualified Java class names.
Decendants should overwrite this method to return specific models.
- Overrides:
createInstance
in class DevsFactoryServer
- Parameters:
modelName
- name of the model to create.
- Returns:
- The model instance (Devs/DevsPorts/DevsInit)
- Throws:
devsBridge.DevsCorbaException
availableModels
public java.lang.String[] availableModels()
- Specified by:
availableModels
in interface devsBridge.TradingDevsFactoryOperations
- Overrides:
availableModels
in class DevsFactoryServer
startServer
public static java.lang.Thread startServer(java.lang.String name)
- Helper for starts an instance of this server and registers it at the Naming service.
- Parameters:
name
- the name for the naming Service
- Returns:
- a Thread executin the server (interrupt this Thread for Server shutdown
main
public static void main(java.lang.String[] args)
- Parameters:
args
- arguments to the ORB