Package weka.experiment

Examples of weka.experiment.Compute


    vSubTask.setMinMaxY(m_minY, m_maxY);
    vSubTask.setNumSamplesPerRegion(m_numOfSamplesPerRegion);
    vSubTask.setGeneratorSamplesBase(m_samplesBase);
    try {
      String name = Messages.getInstance().getString("BoundaryPanelDistributed_LaunchNext_Run_RemoteHost_Text_Front") +((String)m_remoteHosts.elementAt(ah)) + Messages.getInstance().getString("BoundaryPanelDistributed_LaunchNext_Run_RemoteHost_Text_End");
      Compute comp = (Compute) Naming.lookup(name);
      // assess the status of the sub-exp
      notifyListeners(false,true,false,
          Messages.getInstance().getString("BoundaryPanelDistributed_LaunchNext_Run_StartingRow_Text_Front") + wtask + Messages.getInstance().getString("BoundaryPanelDistributed_LaunchNext_Run_StartingRow_Text_End") + ((String)m_remoteHosts.elementAt(ah)));
      Object subTaskId = comp.executeTask(vSubTask);
      boolean finished = false;
      TaskStatusInfo is = null;
      long startTime = System.currentTimeMillis();
      while (!finished) {
        try {
    Thread.sleep(Math.max(m_minTaskPollTime,
              m_hostPollingTime[ah]));
   
    TaskStatusInfo cs = (TaskStatusInfo)comp.
      checkStatus(subTaskId);
    if (cs.getExecutionStatus() == TaskStatusInfo.FINISHED) {
      // push host back onto queue and try launching any waiting
      // sub-experiments
      long runTime = System.currentTimeMillis() - startTime;
View Full Code Here


    vSubTask.setGeneratorSamplesBase(m_samplesBase);
    try {
      String name = "//"
        +((String)m_remoteHosts.elementAt(ah))
        +"/RemoteEngine";
      Compute comp = (Compute) Naming.lookup(name);
      // assess the status of the sub-exp
      notifyListeners(false,true,false,"Starting row "
          +wtask
          +" on host "
          +((String)m_remoteHosts.elementAt(ah)));
      Object subTaskId = comp.executeTask(vSubTask);
      boolean finished = false;
      TaskStatusInfo is = null;
      long startTime = System.currentTimeMillis();
      while (!finished) {
        try {
    Thread.sleep(Math.max(m_minTaskPollTime,
              m_hostPollingTime[ah]));
   
    TaskStatusInfo cs = (TaskStatusInfo)comp.
      checkStatus(subTaskId);
    if (cs.getExecutionStatus() == TaskStatusInfo.FINISHED) {
      // push host back onto queue and try launching any waiting
      // sub-experiments
      long runTime = System.currentTimeMillis() - startTime;
View Full Code Here

    vSubTask.setGeneratorSamplesBase(m_samplesBase);
    try {
      String name = "//"
        +((String)m_remoteHosts.elementAt(ah))
        +"/RemoteEngine";
      Compute comp = (Compute) Naming.lookup(name);
      // assess the status of the sub-exp
      notifyListeners(false,true,false,"Starting row "
          +wtask
          +" on host "
          +((String)m_remoteHosts.elementAt(ah)));
      Object subTaskId = comp.executeTask(vSubTask);
      boolean finished = false;
      TaskStatusInfo is = null;
      long startTime = System.currentTimeMillis();
      while (!finished) {
        try {
    Thread.sleep(Math.max(m_minTaskPollTime,
              m_hostPollingTime[ah]));
   
    TaskStatusInfo cs = (TaskStatusInfo)comp.
      checkStatus(subTaskId);
    if (cs.getExecutionStatus() == TaskStatusInfo.FINISHED) {
      // push host back onto queue and try launching any waiting
      // sub-experiments
      long runTime = System.currentTimeMillis() - startTime;
View Full Code Here

TOP

Related Classes of weka.experiment.Compute

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.