genDevs.devsBridge.factory
Class TradingDevsFactoryPublisher
java.lang.Object
org.omg.PortableServer.Servant
devsBridge.TradingDevsFactoryPublisherPOA
genDevs.devsBridge.factory.TradingDevsFactoryPublisher
- All Implemented Interfaces:
- devsBridge.TradingDevsFactoryPublisherOperations, org.omg.CORBA.portable.InvokeHandler
public class TradingDevsFactoryPublisher
- extends devsBridge.TradingDevsFactoryPublisherPOA
DevsFactory, that supports the TradingDevsFactory Interface.
This includes the Callback-Interface to determine the number or currently active models for this server.
It will be used to select a server with minimum model cnt.
- Author:
- twutz
Methods inherited from class devsBridge.TradingDevsFactoryPublisherPOA |
_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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
oInfo
protected static ORBHelper.ORBInfo oInfo
SERV_TYPE_NAME
public static final java.lang.String SERV_TYPE_NAME
- See Also:
- Constant Field Values
lookup
protected static CosTrading.Lookup lookup
TradingDevsFactoryPublisher
protected TradingDevsFactoryPublisher(ORBHelper.ORBInfo orbInfo)
createServiceType
protected static void createServiceType(ORBHelper.ORBInfo orbInfo,
CosTradingRepos.ServiceTypeRepository stRes,
java.lang.String serverTypeName)
throws CosTradingRepos.ServiceTypeRepositoryPackage.InterfaceTypeMismatch,
CosTrading.IllegalServiceType,
CosTrading.IllegalPropertyName,
CosTradingRepos.ServiceTypeRepositoryPackage.ValueTypeRedefinition,
CosTradingRepos.ServiceTypeRepositoryPackage.ServiceTypeExists,
CosTradingRepos.ServiceTypeRepositoryPackage.InterfaceTypeMismatch,
CosTrading.DuplicatePropertyName,
CosTrading.UnknownServiceType,
CosTradingRepos.ServiceTypeRepositoryPackage.DuplicateServiceTypeName
- Throws:
CosTradingRepos.ServiceTypeRepositoryPackage.InterfaceTypeMismatch
CosTrading.IllegalServiceType
CosTrading.IllegalPropertyName
CosTradingRepos.ServiceTypeRepositoryPackage.ValueTypeRedefinition
CosTradingRepos.ServiceTypeRepositoryPackage.ServiceTypeExists
CosTrading.DuplicatePropertyName
CosTrading.UnknownServiceType
CosTradingRepos.ServiceTypeRepositoryPackage.DuplicateServiceTypeName
getLookup
protected static CosTrading.Lookup getLookup(ORBHelper.ORBInfo orbInfo)
throws org.omg.CORBA.UserException,
devsBridge.DevsCorbaException
- Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException
createTradingFactoryStub
public static devsBridge.TradingDevsFactory createTradingFactoryStub(ORBHelper.ORBInfo orbInfo,
devsBridge.TradingDevsFactoryOperations impl)
throws org.omg.CORBA.UserException,
devsBridge.DevsCorbaException
- Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException
publishTradingFactory
public static java.lang.String publishTradingFactory(ORBHelper.ORBInfo orbInfo,
devsBridge.TradingDevsFactoryOperations impl)
throws org.omg.CORBA.UserException,
devsBridge.DevsCorbaException
- Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException
publishTradingFactory
public static java.lang.String publishTradingFactory(ORBHelper.ORBInfo orbInfo,
devsBridge.TradingDevsFactory stub)
throws org.omg.CORBA.UserException,
devsBridge.DevsCorbaException
- Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException
modifyActiveModelsCnt
public static void modifyActiveModelsCnt(ORBHelper.ORBInfo orbInfo,
java.lang.String offerId,
int newCnt)
throws org.omg.CORBA.UserException,
devsBridge.DevsCorbaException
- Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException
withDrawFactory
public static void withDrawFactory(ORBHelper.ORBInfo orbInfo,
java.lang.String offerId)
throws org.omg.CORBA.UserException
- Throws:
org.omg.CORBA.UserException
publishFactory
public java.lang.String publishFactory(devsBridge.TradingDevsFactory fac)
throws devsBridge.DevsCorbaException
- Throws:
devsBridge.DevsCorbaException
modifyActiveModelsCnt
public void modifyActiveModelsCnt(java.lang.String id,
int newCnt)
throws devsBridge.DevsCorbaException
- Throws:
devsBridge.DevsCorbaException
withdrawFactory
public void withdrawFactory(java.lang.String id)
throws devsBridge.DevsCorbaException
- Throws:
devsBridge.DevsCorbaException
main
public static void main(java.lang.String[] args)
- Parameters:
args
- arguments to the ORB