Lightweight Bartering Grid

lbg.user.service
Class LiveUserService

java.lang.Object
  extended by lbg.user.service.LiveUserService
All Implemented Interfaces:
UserHandle, UserService

public class LiveUserService
extends java.lang.Object
implements UserService

Live implementation of the User service

Author:
Xavier Dalem, Cyril Briquet

Constructor Summary
protected LiveUserService(UserAgent owner_user)
          Creates a User service
 
Method Summary
 UserHandle createHandle()
          Creates a handle to parent user
 java.lang.String id()
          Get user id
 void notifyCompletedJob(Task t)
          Notify a user of a completed job
 void notifyCompletedTask(Task t)
          Notify a user of a completed task
 java.lang.String toString()
          String representation of the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiveUserService

protected LiveUserService(UserAgent owner_user)
                   throws GridException
Creates a User service

Parameters:
owner_user - User concerned by this service
Throws:
GridException
Method Detail

toString

public java.lang.String toString()
String representation of the service

Overrides:
toString in class java.lang.Object

createHandle

public UserHandle createHandle()
                        throws GridException
Creates a handle to parent user

Specified by:
createHandle in interface UserService
Throws:
GridException

id

public java.lang.String id()
Get user id

Specified by:
id in interface UserHandle

notifyCompletedTask

public void notifyCompletedTask(Task t)
                         throws GridException
Notify a user of a completed task

Specified by:
notifyCompletedTask in interface UserHandle
Parameters:
t - The completed task
Throws:
GridException

notifyCompletedJob

public void notifyCompletedJob(Task t)
                        throws GridException
Notify a user of a completed job

Specified by:
notifyCompletedJob in interface UserHandle
Parameters:
t - Last task from the completed job
Throws:
GridException - if no such job was sent in this session

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.