com.joctopus.starter
Class JOctopus

java.lang.Object
  extended by com.joctopus.starter.JOctopus
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class JOctopus
extends java.lang.Object
implements java.awt.event.ActionListener

JOctopus starter, Following are the functions performed by this class. 1. Loads config and users. 2. Starts core services i.e (File Transfer,Chat,Handshake,Instance manager) 3. Starts JOctopus tray.

Since:
1.0

Field Summary
static java.util.ResourceBundle applnProperties
          loads application properties.
 Server chatService
          Server for accepting chat messages
 FileRecieverServer frserver
          server for recieving files
 FileTransferServer ftserver
          server for transferring files
static java.util.Hashtable<java.lang.String,javax.swing.ImageIcon> imageResource
          stores images references.
 Server instanceService
          server for tracking the application instance.
 
Constructor Summary
JOctopus()
          Default constructor I need it as i want to initialize certain startup points out here
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          handle system tray events.
static javax.swing.JLabel getOptionLabel(java.lang.String message)
           
static javax.swing.JScrollPane getOptionMessage(java.lang.String message)
           
 void initializeUsersChatHistory()
          initializes the chat history for all users.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chatService

public Server chatService
Server for accepting chat messages


instanceService

public Server instanceService
server for tracking the application instance. only one instance of this application should be run starting this server and binding at specific port disallows other instance to bind to that port.


ftserver

public FileTransferServer ftserver
server for transferring files


frserver

public FileRecieverServer frserver
server for recieving files


applnProperties

public static java.util.ResourceBundle applnProperties
loads application properties.


imageResource

public static final java.util.Hashtable<java.lang.String,javax.swing.ImageIcon> imageResource
stores images references.

Constructor Detail

JOctopus

public JOctopus()
Default constructor I need it as i want to initialize certain startup points out here

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
handle system tray events. the events are handled according to following actioncommands 1. EXIT: shut down chat service,file transfer service,handshake service and close chatter tray 2. OPEN_CHATTER: open chat and file transfer utility. 3. ABOUT_CHATTER: about author and version. 4. SHOW_CONSOLE: chatter console window 5. EXIT: exit from system.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ActionEvent -

initializeUsersChatHistory

public void initializeUsersChatHistory()
initializes the chat history for all users.


getOptionLabel

public static javax.swing.JLabel getOptionLabel(java.lang.String message)

getOptionMessage

public static javax.swing.JScrollPane getOptionMessage(java.lang.String message)

main

public static void main(java.lang.String[] args)