use of cbit.vcell.message.server.db.DatabaseServer in project vcell by virtualcell.
the class VCellServices method init.
public void init() throws Exception {
initControlTopicListener();
ServiceInstanceStatus dispatcherServiceInstanceStatus = new ServiceInstanceStatus(VCellServerID.getSystemServerID(), ServiceType.DISPATCH, 99, ManageUtils.getHostName(), new Date(), true);
simulationDispatcher = new SimulationDispatcher(htcProxy, vcMessagingService, dispatcherServiceInstanceStatus, simulationDatabase, true);
simulationDispatcher.init();
ServiceInstanceStatus databaseServiceInstanceStatus = new ServiceInstanceStatus(VCellServerID.getSystemServerID(), ServiceType.DB, 99, ManageUtils.getHostName(), new Date(), true);
databaseServer = new DatabaseServer(databaseServiceInstanceStatus, databaseServerImpl, vcMessagingService, true);
databaseServer.init();
ServiceInstanceStatus simDataServiceInstanceStatus = new ServiceInstanceStatus(VCellServerID.getSystemServerID(), ServiceType.DATA, 99, ManageUtils.getHostName(), new Date(), true);
simDataServer = new SimDataServer(simDataServiceInstanceStatus, dataServerImpl, vcMessagingService, true);
simDataServer.init();
ServiceInstanceStatus dataExportServiceInstanceStatus = new ServiceInstanceStatus(VCellServerID.getSystemServerID(), ServiceType.DATAEXPORT, 99, ManageUtils.getHostName(), new Date(), true);
exportDataServer = new SimDataServer(dataExportServiceInstanceStatus, dataServerImpl, vcMessagingService, true);
exportDataServer.init();
ServiceInstanceStatus htcServiceInstanceStatus = new ServiceInstanceStatus(VCellServerID.getSystemServerID(), ServiceType.PBSCOMPUTE, 99, ManageUtils.getHostName(), new Date(), true);
htcSimulationWorker = new HtcSimulationWorker(htcProxy, vcMessagingService, htcServiceInstanceStatus, true);
htcSimulationWorker.init();
dataSession = vcMessagingService.createProducerSession();
exportSession = vcMessagingService.createProducerSession();
}
Aggregations