de.knup.jedi.jayshare
Class Status

java.lang.Object
  |
  +--de.knup.jedi.jayshare.Status

public class Status
extends java.lang.Object

Status contains references to all components needed by a jayShare client and login data of the current fileshare session.

Version:
0.2 $Revision: 1.12 $
Author:
B. Pietsch

Field Summary
private  java.lang.String chatroom
          Room to meet other jayShare users
private  java.lang.String confServer
          Server providing group chats
private  Connection conn
          Connection instance.
private  java.lang.String exportHost
          server host
private  int exportPort
          server port
private  java.lang.String exportProto
          server protocol
private  Server exportServer
          The server instance handling download requests from other users.
private  java.lang.String hashedID
          The user's hashed Jabber ID.
private  int jabberPort
          Port of the Jabber server (usually 5222).
private  java.lang.String jabberServer
          Jabber server to log on
private  java.lang.String nick
          nick name
private  java.lang.String password
          password
private  DownloadQueue queue
          Download queue instance.
private  DownloadQueueManager queueManager
          Download queue manager instance.
private  ServiceLookupList serviceLookupList
          The lookup list assigning hashed IDs to service information (where to get the files).
private  java.lang.String user
          user name
private  UserList userList
          List of all filelists.
private  UserLookupList userLookupList
          The lookup list assigning hashed IDs to conference nick names.
 
Constructor Summary
Status(java.lang.String user, java.lang.String jabberServer, java.lang.String password, java.lang.String confServer, java.lang.String chatroom, java.lang.String nick, int jabberPort)
          Create a Status object.
 
Method Summary
 java.lang.String getChatroom()
           
 java.lang.String getConferenceServer()
           
 Connection getConnection()
           
 DownloadQueueManager getDLQueueManager()
           
 DownloadQueue getDownloadQueue()
           
 java.lang.String getExportHost()
           
 OwnedFileList getExportList()
           
 int getExportPort()
           
 java.lang.String getExportProtocol()
           
 Server getExportServer()
           
 java.lang.String getHashedID()
           
 int getJabberPort()
           
 java.lang.String getJabberServer()
           
 java.lang.String getNickname()
           
 java.lang.String getPassword()
           
 ServiceLookupList getServiceLookupList()
           
 UserList getUserList()
           
 UserLookupList getUserLookupList()
           
 java.lang.String getUsername()
           
 void setConnection(Connection conn)
          Set the Connection.
 void setDLQueueManager(DownloadQueueManager man)
          Set the Download Queue Manager.
 void setDownloadQueue(DownloadQueue queue)
          Set the download queue.
 void setExport(java.lang.String proto, java.lang.String host, int port)
          Set the own export information.
 void setExportServer(Server server)
          Set the export server.
 void setServiceLookupList(ServiceLookupList list)
          Set the service lookup list.
 void setUserList(UserList list)
          Set the list of file lists.
 void setUserLookupList(UserLookupList list)
          Set the user lookup list.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

userList

private UserList userList
List of all filelists.

hashedID

private java.lang.String hashedID
The user's hashed Jabber ID.

userLookupList

private UserLookupList userLookupList
The lookup list assigning hashed IDs to conference nick names.

serviceLookupList

private ServiceLookupList serviceLookupList
The lookup list assigning hashed IDs to service information (where to get the files).

exportServer

private Server exportServer
The server instance handling download requests from other users.

conn

private Connection conn
Connection instance.

queue

private DownloadQueue queue
Download queue instance. Contains all files we want to have.

queueManager

private DownloadQueueManager queueManager
Download queue manager instance. Tries to download all files in the queue.

user

private java.lang.String user
user name

nick

private java.lang.String nick
nick name

password

private java.lang.String password
password

chatroom

private java.lang.String chatroom
Room to meet other jayShare users

jabberServer

private java.lang.String jabberServer
Jabber server to log on

confServer

private java.lang.String confServer
Server providing group chats

jabberPort

private int jabberPort
Port of the Jabber server (usually 5222).

exportHost

private java.lang.String exportHost
server host

exportProto

private java.lang.String exportProto
server protocol

exportPort

private int exportPort
server port
Constructor Detail

Status

public Status(java.lang.String user,
              java.lang.String jabberServer,
              java.lang.String password,
              java.lang.String confServer,
              java.lang.String chatroom,
              java.lang.String nick,
              int jabberPort)
Create a Status object.
Parameters:
user - is the user's login name.
jabberServer - is the jabber server to be used.
password - is the Jabber password.
confServer - is the jabber conference server.
chatroom - is the chatroom to be used (usually "jayshare").
nick - is the nick name in the conference.
jabberPort - is the port of the jabber server.
Method Detail

setUserList

public void setUserList(UserList list)
Set the list of file lists. This must be done before any fileshare actions can be started.

setUserLookupList

public void setUserLookupList(UserLookupList list)
Set the user lookup list.

setServiceLookupList

public void setServiceLookupList(ServiceLookupList list)
Set the service lookup list.

setDownloadQueue

public void setDownloadQueue(DownloadQueue queue)
Set the download queue.

setExport

public void setExport(java.lang.String proto,
                      java.lang.String host,
                      int port)
Set the own export information.

setExportServer

public void setExportServer(Server server)
Set the export server.

setConnection

public void setConnection(Connection conn)
Set the Connection.

setDLQueueManager

public void setDLQueueManager(DownloadQueueManager man)
Set the Download Queue Manager.

getUsername

public java.lang.String getUsername()
Returns:
the username.

getNickname

public java.lang.String getNickname()
Returns:
the nick name.

getJabberServer

public java.lang.String getJabberServer()
Returns:
the jabber server host.

getPassword

public java.lang.String getPassword()
Returns:
the password.

getConferenceServer

public java.lang.String getConferenceServer()
Returns:
the conference server host.

getChatroom

public java.lang.String getChatroom()
Returns:
the chatroom.

getJabberPort

public int getJabberPort()
Returns:
the jabber server port.

getUserList

public UserList getUserList()
Returns:
a reference to the user list.

getUserLookupList

public UserLookupList getUserLookupList()
Returns:
a reference to the user lookup list.

getServiceLookupList

public ServiceLookupList getServiceLookupList()
Returns:
a reference to the service lookup list.

getHashedID

public java.lang.String getHashedID()
Returns:
the hashed Jabber ID.

getConnection

public Connection getConnection()
Returns:
a reference to the Connection instance.

getDLQueueManager

public DownloadQueueManager getDLQueueManager()
Returns:
a reference to the Download Queue Manager.

getDownloadQueue

public DownloadQueue getDownloadQueue()
Returns:
a reference to the Download Queue.

getExportList

public OwnedFileList getExportList()
Returns:
the export list.

getExportHost

public java.lang.String getExportHost()
Returns:
the export host.

getExportProtocol

public java.lang.String getExportProtocol()
Returns:
the export protocol.

getExportPort

public int getExportPort()
Returns:
the export port.

getExportServer

public Server getExportServer()
Returns:
a reference to the export server.