Logo
Distributed Genetic Programming Framework
print print

File org.dgpf.search.control.protocol.RunningStatusEvent.java

Here you can find all the information about the file org.dgpf.search.control.protocol.RunningStatusEvent.java. You may explore it here or download it onto your local disk.
/**
 * 
 */

package org.dgpf.search.control.protocol;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import org.sfc.events.SfcEvent;

/**
 * @author Lado Kumsiashvili
 */

public class RunningStatusEvent extends SfcEvent
  {

  /**
   * serialVersionUID.
   */

  private static final long serialVersionUID = -1498261906785025850L;

  /**
   * true if se running.
   */

  private boolean           m_running        = false;

  /**
   * The name of current running jar file.
   */

  private String            m_current_running_jar;

  /**
   * @param p_source
   */

  public RunningStatusEvent(Object p_source)
    {
    super(p_source);
    }

  /**
   * Getter for running status.
   * 
   * @return true if status is running.
   */

  public boolean isRunning()
    {
    return this.m_running;
    }

  /**
   * Setter for running status.
   * 
   * @param p_running
   *          status to set.
   */

  public void setRunning(boolean p_running)
    {
    this.m_running = p_running;
    }

  /**
   * Stores the <code>SfcEvent</code> into the stream.
   * 
   * @param p_s
   *          The output stream.
   * @throws IOException
   *           If something io-like went wrong.
   */

  private final synchronized void writeObject(final ObjectOutputStream p_s)
      throws IOException
    {
    p_s.defaultWriteObject();
    }

  /**
   * Reconstitute the <code>SfcEvent</code> instance from a stream (that
   * is, deserialize it).
   * 
   * @param p_s
   *          The input stream.
   * @throws IOException
   *           If something io-like went wrong.
   * @throws ClassNotFoundException
   *           If a needed class could not be found.
   */

  private final void readObject(final ObjectInputStream p_s)
      throws IOException, ClassNotFoundException
    {
    p_s.defaultReadObject();
    }

  /**
   * Getter for m_current_running_jar.
   * 
   * @return m_current_running_jar.
   */

  public String getCurrent_running_jar()
    {
    return this.m_current_running_jar;
    }

  /**
   * Setter for p_current_running_jar.
   * 
   * @param p_current_running_jar
   *          name of the current running jar name
   */

  public void setCurrent_running_jar(String p_current_running_jar)
    {
    this.m_current_running_jar = p_current_running_jar;
    }

  }

File Information:

file name:RunningStatusEvent.java
package:org.dgpf.search.control.protocol
qualified name:org.dgpf.search.control.protocol.RunningStatusEvent.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/search/control/protocol/RunningStatusEvent.java
size:2.274 KB (2329 B)
uploaded: 2015-07-22 04:11:00 GMT+0000
last update: 2006-09-24 23:47:04 GMT+0000
last access: 2017-11-20 02:17:49 GMT+0000

statistics online since 2006-01-02.   RSS Feed
Contact us by sending an email to tweise@gmx.de to receive further information, to report errors, or to join our project.
All content on this site (http://dgpf.sourceforge.net/) is LGPL-licensed.
http://dgpf.sourceforge.net/scripts/source/source.php last modified at 2015-07-22 04:10:53 GMT+0000 served at 2017-11-20 02:17:49 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo