com.jakeapp.jake.ics
Class ICService

java.lang.Object
  extended by com.jakeapp.jake.ics.ICService
Direct Known Subclasses:
MockICService

public abstract class ICService
extends java.lang.Object

The task of the InterClient Communication Service (ICService) is to provide a communication layer based on the network for communication between users based on messages and objects.

userid: A way of identifying the user within the used network protocol. example: user@host

network service: The implementation of IICService use some sort of Interclient Communication protocol. We reference to this underlying system as network service. examples: XMPP, TCP-Sockets, ...

Implementation note: The constructor has to create the instances and (possibly) share common data

Author:
johannes

Field Summary
protected  ITransferMethodFactory fileTransferMethodFactory
           
protected  IMsgService msgService
           
protected  IStatusService statusService
           
protected  IUsersService usersService
           
 
Constructor Summary
ICService()
           
 
Method Summary
 IMsgService getMsgService()
          for sending small packages
abstract  java.lang.String getServiceName()
           
 IStatusService getStatusService()
          login, logout, etc.
 ITransferMethodFactory getTransferMethodFactory()
          for sending huge files
 IUsersService getUsersService()
          our friends ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusService

protected IStatusService statusService

msgService

protected IMsgService msgService

usersService

protected IUsersService usersService

fileTransferMethodFactory

protected ITransferMethodFactory fileTransferMethodFactory
Constructor Detail

ICService

public ICService()
Method Detail

getStatusService

public IStatusService getStatusService()
login, logout, etc.

Returns:
the service

getMsgService

public IMsgService getMsgService()
for sending small packages

Returns:
the service

getUsersService

public IUsersService getUsersService()
our friends ... the people we talk to, you know?

Returns:
the service

getTransferMethodFactory

public ITransferMethodFactory getTransferMethodFactory()
for sending huge files

Returns:
the factory, or null if this IC doesn't provide one itself (over internal communication lines, reusing the connection)

getServiceName

public abstract java.lang.String getServiceName()
Returns:
the name of the implemented service


Copyright © 2011. All Rights Reserved.