net.sourceforge.atunes.kernel.handlers
Class MultipleInstancesHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.MultipleInstancesHandler

public class MultipleInstancesHandler
extends java.lang.Object

The Class MultipleInstancesHandler.


Method Summary
 void finish()
          Called when aTunes finishes.
static MultipleInstancesHandler getInstance()
          Gets the single instance of MultipleInstancesHandler.
 boolean isFirstInstance()
          Tries to open a server socket to listen to other aTunes instances.
 void sendArgumentsToFirstInstance(java.util.List<java.lang.String> args)
          Opens a client socket and sends arguments to "master".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MultipleInstancesHandler getInstance()
Gets the single instance of MultipleInstancesHandler.

Returns:
single instance of MultipleInstancesHandler

finish

public void finish()
Called when aTunes finishes.


isFirstInstance

public boolean isFirstInstance()
Tries to open a server socket to listen to other aTunes instances.

Returns:
true if server socket could be opened

sendArgumentsToFirstInstance

public void sendArgumentsToFirstInstance(java.util.List<java.lang.String> args)
Opens a client socket and sends arguments to "master".

Parameters:
args - the args


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.