JSampler
v0.8a

org.jsampler.task
Class SetServerAddress

java.lang.Object
  extended by 
      extended by org.jsampler.task.EnhancedTask
          extended by org.jsampler.task.SetServerAddress

public class SetServerAddress
extends EnhancedTask

This task sets the Linux Sampler address. This needs to be done out of the event-dispatching thread due to the synchronization of org.linuxsampler.lscp.Client methods (setting the server address and port can be time consuming).


Constructor Summary
SetServerAddress(java.lang.String address, int port)
          Creates new instance of SetServerAddress.
 
Method Summary
 void run()
          The entry point of the task.
 
Methods inherited from class org.jsampler.task.EnhancedTask
isStopped, setErrorDetails, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetServerAddress

public SetServerAddress(java.lang.String address,
                        int port)
Creates new instance of SetServerAddress.

Parameters:
address - The Linux Sampler address. If address is null, sets to default address - 127.0.0.1.
port - The Linux Sampler port number.
Method Detail

run

public void run()
The entry point of the task.


JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.