Search in sources :

Example 1 with DatabaseServer

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();
}
Also used : SimDataServer(cbit.vcell.message.server.data.SimDataServer) SimulationDispatcher(cbit.vcell.message.server.dispatcher.SimulationDispatcher) HtcSimulationWorker(cbit.vcell.message.server.sim.HtcSimulationWorker) ServiceInstanceStatus(cbit.vcell.message.server.ServiceInstanceStatus) DatabaseServer(cbit.vcell.message.server.db.DatabaseServer) Date(java.util.Date)

Aggregations

ServiceInstanceStatus (cbit.vcell.message.server.ServiceInstanceStatus)1 SimDataServer (cbit.vcell.message.server.data.SimDataServer)1 DatabaseServer (cbit.vcell.message.server.db.DatabaseServer)1 SimulationDispatcher (cbit.vcell.message.server.dispatcher.SimulationDispatcher)1 HtcSimulationWorker (cbit.vcell.message.server.sim.HtcSimulationWorker)1 Date (java.util.Date)1