Package org.nebulaframework.grid.cluster.manager

Examples of org.nebulaframework.grid.cluster.manager.ClusterManager


  }
 
  private synchronized void initialize() {
    if (!initialized) {
      ClusterManager manager = ClusterManager.getInstance();
      this.jobService = manager.getJobService();     
      this.connectionFactory = ClusterManager.getInstance().getConnectionFactory();
      initialized = true;
    }
  }
View Full Code Here


  /**
   * Updates UI and displays the Cluster Information.
   */
  private void showClusterInfo() {
    ClusterManager mgr = ClusterManager.getInstance();

    // ClusterID
    final JLabel clusterId = getUIElement("general.stats.clusterid");
    clusterId.setText(mgr.getClusterId().toString());
   
    // HostInfo
    JLabel hostInfo = getUIElement("general.stats.hostinfo");
    hostInfo.setText(mgr.getClusterInfo().getHostInfo());
   
    // Protocols
    JLabel protocols = getUIElement("general.stats.protocols");
    protocols.setText(mgr.getClusterInfo().getProtocolInfo());
   
    // Uptime Initial Value
    JLabel upTime = getUIElement("general.stats.uptime");
    upTime.setText("");
   
View Full Code Here

   *
   * @throws IllegalArgumentException if any argument is null
   */
  public static ClassLoadingService startClassLoadingService() throws IllegalArgumentException {

    ClusterManager manager = ClusterManager.getInstance();
   
    // Create Service Implementation Instance
    ClassLoadingServiceImpl service = new ClassLoadingServiceImpl(
        (InternalClusterJobService) manager.getJobService(),
        (InternalClusterRegistrationService) manager.getClusterRegistrationService());

    // ActiveMQ Queue used for communication
    String queueName = getQueueName(manager.getClusterId());
   
    ConnectionFactory cf = manager.getConnectionFactory();
    JMSRemotingSupport.createService(cf, queueName, service, ClassLoadingService.class);
   
    log.debug("[ClassLoadingService] Started");
   
    return service;
View Full Code Here

TOP

Related Classes of org.nebulaframework.grid.cluster.manager.ClusterManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.