at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver
Class PocketSOMConnector.ConnectorEndpoint

java.lang.Object
  extended by java.lang.Thread
      extended by at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.PocketSOMConnector.ConnectorEndpoint
All Implemented Interfaces:
Runnable
Enclosing class:
PocketSOMConnector

private class PocketSOMConnector.ConnectorEndpoint
extends Thread

The ConnectorEndpoint, receiving Paths and PlayLists.

Author:
Jakob Frank

Nested Class Summary
private  class PocketSOMConnector.ConnectorEndpoint.Worker
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  PlayerListener _PlayerListener
           
private  PlayListListener _PlayListListener
           
private  VisualizationChangeListener _VisualizationChangeListener
           
private  Vector<Socket> notificationReceivers
           
private  String pin
           
(package private)  boolean running
           
(package private)  ServerSocket server
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private PocketSOMConnector.ConnectorEndpoint(int port, String pin)
           
 
Method Summary
private  void informListeners(String message)
           
private  void register4PlayerNotifications()
           
 void run()
           
 void shutdown()
           
private  void unregister4PlayerNotifications()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

boolean running

server

ServerSocket server

notificationReceivers

private Vector<Socket> notificationReceivers

_PlayerListener

private PlayerListener _PlayerListener

_PlayListListener

private PlayListListener _PlayListListener

_VisualizationChangeListener

private VisualizationChangeListener _VisualizationChangeListener

pin

private final String pin
Constructor Detail

PocketSOMConnector.ConnectorEndpoint

private PocketSOMConnector.ConnectorEndpoint(int port,
                                             String pin)
                                      throws Exception
Throws:
Exception
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

shutdown

public void shutdown()

register4PlayerNotifications

private void register4PlayerNotifications()

unregister4PlayerNotifications

private void unregister4PlayerNotifications()

informListeners

private void informListeners(String message)