/[svn]/jsampler/trunk/src/org/jsampler/task/SetServerAddress.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/SetServerAddress.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 910 by iliev, Fri Mar 17 12:08:46 2006 UTC revision 911 by iliev, Mon Aug 7 18:25:58 2006 UTC
# Line 29  import org.jsampler.HF; Line 29  import org.jsampler.HF;
29    
30    
31  /**  /**
32   * Because of the synchronization of <code>org.linuxsampler.lscp.Client</code> methods   * This task sets the Linux Sampler address.
33   * setting the server address and port can be time consuming, so it needs to be done safely.   * This needs to be done out of the event-dispatching thread due to
34     * the synchronization of <code>org.linuxsampler.lscp.Client</code> methods
35     * (setting the server address and port can be time consuming).
36   * @author Grigor Iliev   * @author Grigor Iliev
37   */   */
38  public class SetServerAddress extends EnhancedTask {  public class SetServerAddress extends EnhancedTask {
39          private String address;          private String address;
40          private int port;          private int port;
41                    
42            /**
43             * Creates new instance of <code>SetServerAddress</code>.
44             * @param address The Linux Sampler address.
45             * If <code>address</code> is <code>null</code>, sets to default address - 127.0.0.1.
46             * @param port The Linux Sampler port number.
47             */
48          public          public
49          SetServerAddress(String address, int port) {          SetServerAddress(String address, int port) {
50                  setTitle("");                  setTitle("");
# Line 45  public class SetServerAddress extends En Line 53  public class SetServerAddress extends En
53                  this.port = port;                  this.port = port;
54          }          }
55                    
56            /** The entry point of the task. */
57          public void          public void
58          run() {          run() {
59                  try {                  try {

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC