messageServerP
Class TextualInterfaceIt

java.lang.Object
  extended by messageServerP.TextualInterfaceIt
All Implemented Interfaces:
HumanInterface

public class TextualInterfaceIt
extends java.lang.Object
implements HumanInterface

A textual interface in italian.

Author:
Marco Cornolti

Field Summary
(package private) static java.io.BufferedReader in
           
(package private) static java.io.PrintStream out
           
 
Constructor Summary
TextualInterfaceIt()
           
 
Method Summary
 void destroy()
          Destroys the interface.
 Command getCommand()
           
 void initialize()
          Initializes the interface.
private  void printError(java.lang.String err)
          Stampa i messaggi di gravi errori di sistema locali.
private  void printHelp()
          Stampa l'elenco dei comandi e la loro sintassi.
private  void printMessage(java.lang.String msg)
          Stampa i messaggi di normale interazione.
private  void printWarning(java.lang.String war)
          Stampa i messaggi di particolare rilevanza come errori degli utenti, errori del sistema globale e password sbagliate.
 void showAddAlreadyInserted(java.lang.String user, java.lang.String userToAdd)
          Called when a user tried to add to its friend list another user that is already present.
 void showAddToFriendDone(java.lang.String user, java.lang.String userToAdd)
          Called when a user successfullt added a user to its friend list.
 void showAddToFriendRequest(java.lang.String user, java.lang.String userToAdd)
          Called when a user requested to add a user to its friend list.
 void showAddToOutDone(java.lang.String user, java.lang.String userToAdd)
           
 void showAddToOutNotAllowed(java.lang.String user, java.lang.String userToAdd)
           
 void showAddToOutRequest(java.lang.String user, java.lang.String userToAdd)
           
 void showAdminDeletionDone(java.lang.String nick)
          Called when a user deletion by the administrator has been done.
 void showAdminDeletionRequest(java.lang.String nick)
          Called when a user deletion by the administrator has been requested.
 void showAdminWrongPassword()
          Called when a wrong administration password has been used to access some service.
 void showAssignationBlocked()
          Called when the user assignation to this message server has been blocked.
 void showAssignationDone(java.lang.String nick)
          Called when a new user assignation has been done.
 void showAssignationRequest(java.lang.String nick)
          Called when a new user assignation has been requested.
 void showAssignationUnblocked()
          Called when the user assignation to this message server has been unblocked.
 void showAssignMovedDone(java.lang.String nick)
          Called when a moved user assignation has been done.
 void showAssignMovedRequest(java.lang.String nick)
          Called when a moved user assignation has been requested.
 void showBackupDone()
          Called when a backup procedure has been done.
 void showBackupFailed()
          Called when a backup procedure failed.
 void showBackupFileStart(java.lang.String filename)
          Called when a backup over a file started.
 void showBackupStart()
          Called when a backup procedure starts.
 void showBlockContactDone(java.lang.String nick, java.lang.String nick2)
          Called when a user successfully added a nickname to its blocking contact list.
 void showBlockContactFailedNotExists(java.lang.String nick, java.lang.String nick2)
           
 void showBlockContactRequest(java.lang.String nick, java.lang.String nick2)
          Called when a user requested to add a nickname to its blocking contact list.
 void showChangePasswordDone(java.lang.String nick)
          Called when a user successfully changed its password.
 void showChangePasswordRequest(java.lang.String nick)
          Called when a user requests to change its password.
 void showContactListDone(java.lang.String user)
          Called when a user successfully obtained its contact list.
 void showContactListRequest(java.lang.String user)
          Called when a user requests its contact list.
 void showCouldNotBackupUser(java.lang.String nickname)
          Called when a backup for a user failed.
 void showCouldNotRemoveBackuppedUser(java.lang.String nick)
          Called when a user removal from the backup failed.
 void showDeleteDownloadedDone(java.lang.String nick)
          Called when a user successfully deleted its downloaded message queue.
 void showDeleteDownloadedRequest(java.lang.String nick)
          Called when a user requested to delete its downloaded message queue.
 void showDeleteUserDone(java.lang.String nick)
          Called when a user deletion is done.
 void showDeleteUserRequest(java.lang.String nick)
          Called when a user deletion is requested.
 void showDownloadDone(java.lang.String nick)
          Called when a user successfully downloaded its message queue.
 void showDownloadRequest(java.lang.String nick)
          Called when a user requests to download its message queue.
 void showForwardCacheDone(java.lang.String from, java.lang.String to, int length)
          Called when a message forwarding has been sent throught the cache.
 void showForwardDone(java.lang.String from, java.lang.String to, int length)
          Called when a message forwarding has been done and the user is managed by a remote message server.
 void showForwardLocalDone(java.lang.String from, java.lang.String to, int length)
          Called when a message forwarding has been done and the user is locally managed.
 void showForwardNotAllowed(java.lang.String from, java.lang.String to, int length)
          Called when a message forwarding was not allowed by the recipient message server.
 void showForwardRequest(java.lang.String from, java.lang.String to, int length)
          Called when a message forwarding has been requested.
 void showGetContactCache(java.lang.String nick)
          Called when a user's direct contact request has been forwarded by the cache.
 void showGetContactDone(java.lang.String nick)
          Called when somebody successfully obtained a user's direct contact.
 void showGetContactRequest(java.lang.String nick)
          Called when somebody asked a user's direct contact.
 void showGetManagedContactDone(java.lang.String nick)
          Called when the direct contact of a user that is locally managed has been successfully sent.
 void showGetManagedContactRequest(java.lang.String nick)
          Called when the direct contact of a user that is locally managed has been requested.
 void showGetManagedContactUserNotManaged(java.lang.String nick)
          Called when the direct contact of a user that is locally managed failed because the user is not locally managed.
 void showInListOfUserContainsDone(java.lang.String listNick, java.lang.String nick2, boolean contains)
          Called when somebody asked if a user (listNick) accepts messages by another user (nick2) and the request was done.
 void showInListOfUserContainsRequest(java.lang.String listNick, java.lang.String nick2)
          Called when somebody asked if a user (listNick) accepts messages by another user (nick2).
 void showLoadStats(Statistics currentStats, java.lang.String bsHost, int bsRmiPort, int bsUdpPort)
          Shows the load statistics.
 void showMoveDone(java.lang.String nick, java.lang.String messageServer)
          Called when a user moving to this message server has been done.
 void showMoveRequest(java.lang.String nick, java.lang.String messageServer)
          Called when a user moving to this message server has been requested.
 void showRemoveContactDone(java.lang.String nick, java.lang.String nick2)
          Called when a contact has successfully been removed by a contact list.
 void showRemoveContactRequest(java.lang.String nick, java.lang.String nick2)
          Called when a user requested to remove a contact from its contact list.
 void showSendLoad(java.lang.String sendingData)
          Called when a load data has been sent.
 void showSendLoadTransferProblem()
          Called when some problem occurred while trying to send load data.
 void showSetStatusDone(java.lang.String nick, boolean state)
          Called when user successfully changed its status.
 void showSetStatusRequest(java.lang.String nick, boolean state)
          Called when a user requests to change its status.
 void showShutdownDone()
          Called when a shutdown request has been accepted.
 void showShutDownFailedUsers()
          Called when a shutdown request failed because of the presence of currently managed users that must be moved to some other server.
 void showShutdownRequest()
          Called when a shutdown has been requested.
 void showStatsRequest()
          Called when the statistics of this MS has been requested.
 void showSystemError(User user)
          Called when a gossip system error occured and a user exists but is not assigned to any server.
 void showTestPortsDone(int port, java.lang.String hostAddress)
          Called when a port test was successful.
 void showTestPortsFailed(int port, java.lang.String hostAddress)
          Called when a port test failed.
 void showTestPortsRequest(int port, java.lang.String hostAddress)
          Called when a port test has been requested.
 void showTestPresence()
          Called when a presence test to this message server has been done.
 void showUDPSocketProblem()
          Called when a UDP Socked problem occurred while sending load data.
 void showUserBlocked(java.lang.String nick)
          Called when a user got blocked.
 void showUsersListDone()
          Called when the list of users managed by this message server has been done.
 void showUsersListRequest()
          Called when the list of users managed by this message server has been requested.
 void showUsersStats(int managedUsers, int onlineManagedUsers, ManagedUser[] users)
          Shows the user statistics.
private  void showWrongCommandName()
           
private  void showWrongParametersNumber()
           
 void showWrongUser(java.lang.String user)
          Called when a request for a user that is not managed by this message server is done.
 void showWrongUserPassword(java.lang.String nick)
          Called when a request with a wrong password for a user is done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

static java.io.BufferedReader in

out

static java.io.PrintStream out
Constructor Detail

TextualInterfaceIt

public TextualInterfaceIt()
Method Detail

initialize

public void initialize()
Description copied from interface: HumanInterface
Initializes the interface.

Specified by:
initialize in interface HumanInterface

getCommand

public Command getCommand()
Specified by:
getCommand in interface HumanInterface
Returns:
the command got from the interface.

showWrongCommandName

private void showWrongCommandName()

showWrongParametersNumber

private void showWrongParametersNumber()

printHelp

private void printHelp()
Stampa l'elenco dei comandi e la loro sintassi.


showAddAlreadyInserted

public void showAddAlreadyInserted(java.lang.String user,
                                   java.lang.String userToAdd)
Description copied from interface: HumanInterface
Called when a user tried to add to its friend list another user that is already present.

Specified by:
showAddAlreadyInserted in interface HumanInterface
Parameters:
user - the list owner.
userToAdd - the user to add.

showAddToFriendDone

public void showAddToFriendDone(java.lang.String user,
                                java.lang.String userToAdd)
Description copied from interface: HumanInterface
Called when a user successfullt added a user to its friend list.

Specified by:
showAddToFriendDone in interface HumanInterface
Parameters:
user - the calling user nickname.
userToAdd - the user to add nickname.

showAddToFriendRequest

public void showAddToFriendRequest(java.lang.String user,
                                   java.lang.String userToAdd)
Description copied from interface: HumanInterface
Called when a user requested to add a user to its friend list.

Specified by:
showAddToFriendRequest in interface HumanInterface
Parameters:
user - the calling user nickname.
userToAdd - the user to add nickname.

showAddToOutDone

public void showAddToOutDone(java.lang.String user,
                             java.lang.String userToAdd)

showAddToOutNotAllowed

public void showAddToOutNotAllowed(java.lang.String user,
                                   java.lang.String userToAdd)

showAddToOutRequest

public void showAddToOutRequest(java.lang.String user,
                                java.lang.String userToAdd)

showAdminDeletionDone

public void showAdminDeletionDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user deletion by the administrator has been done.

Specified by:
showAdminDeletionDone in interface HumanInterface
Parameters:
nick - the user nickname

showAdminDeletionRequest

public void showAdminDeletionRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user deletion by the administrator has been requested.

Specified by:
showAdminDeletionRequest in interface HumanInterface
Parameters:
nick - the user nickname

showAdminWrongPassword

public void showAdminWrongPassword()
Description copied from interface: HumanInterface
Called when a wrong administration password has been used to access some service.

Specified by:
showAdminWrongPassword in interface HumanInterface

showAssignMovedDone

public void showAssignMovedDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a moved user assignation has been done.

Specified by:
showAssignMovedDone in interface HumanInterface
Parameters:
nick - the moving user nickname.

showAssignMovedRequest

public void showAssignMovedRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a moved user assignation has been requested.

Specified by:
showAssignMovedRequest in interface HumanInterface
Parameters:
nick - the moving user nickname.

showAssignationBlocked

public void showAssignationBlocked()
Description copied from interface: HumanInterface
Called when the user assignation to this message server has been blocked.

Specified by:
showAssignationBlocked in interface HumanInterface

showAssignationUnblocked

public void showAssignationUnblocked()
Description copied from interface: HumanInterface
Called when the user assignation to this message server has been unblocked.

Specified by:
showAssignationUnblocked in interface HumanInterface

showAssignationDone

public void showAssignationDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a new user assignation has been done.

Specified by:
showAssignationDone in interface HumanInterface
Parameters:
nick - the user nickname.

showAssignationRequest

public void showAssignationRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a new user assignation has been requested.

Specified by:
showAssignationRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showChangePasswordDone

public void showChangePasswordDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user successfully changed its password.

Specified by:
showChangePasswordDone in interface HumanInterface
Parameters:
nick - the user nickname.

showChangePasswordRequest

public void showChangePasswordRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user requests to change its password.

Specified by:
showChangePasswordRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showContactListDone

public void showContactListDone(java.lang.String user)
Description copied from interface: HumanInterface
Called when a user successfully obtained its contact list.

Specified by:
showContactListDone in interface HumanInterface
Parameters:
user - the user nickname.

showContactListRequest

public void showContactListRequest(java.lang.String user)
Description copied from interface: HumanInterface
Called when a user requests its contact list.

Specified by:
showContactListRequest in interface HumanInterface
Parameters:
user - the user nickname.

showDeleteDownloadedDone

public void showDeleteDownloadedDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user successfully deleted its downloaded message queue.

Specified by:
showDeleteDownloadedDone in interface HumanInterface
Parameters:
nick - the user nickname.

showDeleteDownloadedRequest

public void showDeleteDownloadedRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user requested to delete its downloaded message queue.

Specified by:
showDeleteDownloadedRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showDeleteUserDone

public void showDeleteUserDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user deletion is done.

Specified by:
showDeleteUserDone in interface HumanInterface
Parameters:
nick - the user nickname.

showDeleteUserRequest

public void showDeleteUserRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user deletion is requested.

Specified by:
showDeleteUserRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showDownloadDone

public void showDownloadDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user successfully downloaded its message queue.

Specified by:
showDownloadDone in interface HumanInterface
Parameters:
nick - the user nickname.

showDownloadRequest

public void showDownloadRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user requests to download its message queue.

Specified by:
showDownloadRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showForwardCacheDone

public void showForwardCacheDone(java.lang.String from,
                                 java.lang.String to,
                                 int length)
Description copied from interface: HumanInterface
Called when a message forwarding has been sent throught the cache.

Specified by:
showForwardCacheDone in interface HumanInterface
Parameters:
from - the sender of the message.
to - the recipient of the message.
length - the message length.

showForwardDone

public void showForwardDone(java.lang.String from,
                            java.lang.String to,
                            int length)
Description copied from interface: HumanInterface
Called when a message forwarding has been done and the user is managed by a remote message server.

Specified by:
showForwardDone in interface HumanInterface
Parameters:
from - the sender of the message.
to - the recipient of the message.
length - the message length.

showForwardLocalDone

public void showForwardLocalDone(java.lang.String from,
                                 java.lang.String to,
                                 int length)
Description copied from interface: HumanInterface
Called when a message forwarding has been done and the user is locally managed.

Specified by:
showForwardLocalDone in interface HumanInterface
Parameters:
from - the sender of the message.
to - the recipient of the message.
length - the message length.

showForwardNotAllowed

public void showForwardNotAllowed(java.lang.String from,
                                  java.lang.String to,
                                  int length)
Description copied from interface: HumanInterface
Called when a message forwarding was not allowed by the recipient message server.

Specified by:
showForwardNotAllowed in interface HumanInterface
Parameters:
from - the sender of the message.
to - the recipient of the message.
length - the message length.

showForwardRequest

public void showForwardRequest(java.lang.String from,
                               java.lang.String to,
                               int length)
Description copied from interface: HumanInterface
Called when a message forwarding has been requested.

Specified by:
showForwardRequest in interface HumanInterface
Parameters:
from - the sender of the message.
to - the recipient of the message.
length - the message length.

showInListOfUserContainsDone

public void showInListOfUserContainsDone(java.lang.String listNick,
                                         java.lang.String nick2,
                                         boolean contains)
Description copied from interface: HumanInterface
Called when somebody asked if a user (listNick) accepts messages by another user (nick2) and the request was done.

Specified by:
showInListOfUserContainsDone in interface HumanInterface
Parameters:
listNick - the user whose incoming list has been checked.
nick2 - the user that has been checked.
contains - true if listNick accepts messages by nick2, false otherwise.

showInListOfUserContainsRequest

public void showInListOfUserContainsRequest(java.lang.String listNick,
                                            java.lang.String nick2)
Description copied from interface: HumanInterface
Called when somebody asked if a user (listNick) accepts messages by another user (nick2).

Specified by:
showInListOfUserContainsRequest in interface HumanInterface
Parameters:
listNick - the user whose incoming list must be checked.
nick2 - the user that must be checked.

showMoveDone

public void showMoveDone(java.lang.String nick,
                         java.lang.String messageServer)
Description copied from interface: HumanInterface
Called when a user moving to this message server has been done.

Specified by:
showMoveDone in interface HumanInterface
Parameters:
nick - the user nickname.
messageServer - the message server hostnae.

showMoveRequest

public void showMoveRequest(java.lang.String nick,
                            java.lang.String messageServer)
Description copied from interface: HumanInterface
Called when a user moving to this message server has been requested.

Specified by:
showMoveRequest in interface HumanInterface
Parameters:
nick - the user nickname.
messageServer - the message server hostnae.

showSendLoad

public void showSendLoad(java.lang.String sendingData)
Description copied from interface: HumanInterface
Called when a load data has been sent.

Specified by:
showSendLoad in interface HumanInterface
Parameters:
sendingData - the sent data.

showSendLoadTransferProblem

public void showSendLoadTransferProblem()
Description copied from interface: HumanInterface
Called when some problem occurred while trying to send load data.

Specified by:
showSendLoadTransferProblem in interface HumanInterface

showSetStatusDone

public void showSetStatusDone(java.lang.String nick,
                              boolean state)
Description copied from interface: HumanInterface
Called when user successfully changed its status.

Specified by:
showSetStatusDone in interface HumanInterface
Parameters:
nick - the user nickname.
state - true if the new status is on-line, false if the new status is off-line.

showSetStatusRequest

public void showSetStatusRequest(java.lang.String nick,
                                 boolean state)
Description copied from interface: HumanInterface
Called when a user requests to change its status.

Specified by:
showSetStatusRequest in interface HumanInterface
Parameters:
nick - the user nickname.
state - true if the new status is on-line, false if the new status is off-line.

showStatsRequest

public void showStatsRequest()
Description copied from interface: HumanInterface
Called when the statistics of this MS has been requested.

Specified by:
showStatsRequest in interface HumanInterface

showTestPortsDone

public void showTestPortsDone(int port,
                              java.lang.String hostAddress)
Description copied from interface: HumanInterface
Called when a port test was successful.

Specified by:
showTestPortsDone in interface HumanInterface
Parameters:
port - the tested port.
hostAddress - the tested host address.

showTestPortsFailed

public void showTestPortsFailed(int port,
                                java.lang.String hostAddress)
Description copied from interface: HumanInterface
Called when a port test failed.

Specified by:
showTestPortsFailed in interface HumanInterface
Parameters:
port - the tested port.
hostAddress - the tested host address.

showTestPortsRequest

public void showTestPortsRequest(int port,
                                 java.lang.String hostAddress)
Description copied from interface: HumanInterface
Called when a port test has been requested.

Specified by:
showTestPortsRequest in interface HumanInterface
Parameters:
port - the port to test.
hostAddress - the host address.

showTestPresence

public void showTestPresence()
Description copied from interface: HumanInterface
Called when a presence test to this message server has been done.

Specified by:
showTestPresence in interface HumanInterface

showUDPSocketProblem

public void showUDPSocketProblem()
Description copied from interface: HumanInterface
Called when a UDP Socked problem occurred while sending load data.

Specified by:
showUDPSocketProblem in interface HumanInterface

showUserBlocked

public void showUserBlocked(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user got blocked.

Specified by:
showUserBlocked in interface HumanInterface
Parameters:
nick - the blocked user nickname.

showUsersListDone

public void showUsersListDone()
Description copied from interface: HumanInterface
Called when the list of users managed by this message server has been done.

Specified by:
showUsersListDone in interface HumanInterface

showUsersListRequest

public void showUsersListRequest()
Description copied from interface: HumanInterface
Called when the list of users managed by this message server has been requested.

Specified by:
showUsersListRequest in interface HumanInterface

showWrongUser

public void showWrongUser(java.lang.String user)
Description copied from interface: HumanInterface
Called when a request for a user that is not managed by this message server is done.

Specified by:
showWrongUser in interface HumanInterface
Parameters:
user - the user nickname

showWrongUserPassword

public void showWrongUserPassword(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a request with a wrong password for a user is done.

Specified by:
showWrongUserPassword in interface HumanInterface
Parameters:
nick - the user nickname

showShutDownFailedUsers

public void showShutDownFailedUsers()
Description copied from interface: HumanInterface
Called when a shutdown request failed because of the presence of currently managed users that must be moved to some other server.

Specified by:
showShutDownFailedUsers in interface HumanInterface

showShutdownDone

public void showShutdownDone()
Description copied from interface: HumanInterface
Called when a shutdown request has been accepted.

Specified by:
showShutdownDone in interface HumanInterface

showShutdownRequest

public void showShutdownRequest()
Description copied from interface: HumanInterface
Called when a shutdown has been requested.

Specified by:
showShutdownRequest in interface HumanInterface

showUsersStats

public void showUsersStats(int managedUsers,
                           int onlineManagedUsers,
                           ManagedUser[] users)
Description copied from interface: HumanInterface
Shows the user statistics.

Specified by:
showUsersStats in interface HumanInterface
Parameters:
managedUsers - the number of managed user
onlineManagedUsers - the number of online users
users - the formatted list of users and their status and direct contact.

showLoadStats

public void showLoadStats(Statistics currentStats,
                          java.lang.String bsHost,
                          int bsRmiPort,
                          int bsUdpPort)
Description copied from interface: HumanInterface
Shows the load statistics.

Specified by:
showLoadStats in interface HumanInterface
Parameters:
currentStats - the current Statistics object to print.
bsHost - the bootstrap hostname.
bsRmiPort - the bootstrap rmi port.
bsUdpPort - the bootstrap udp port.

printMessage

private void printMessage(java.lang.String msg)
Stampa i messaggi di normale interazione.

Parameters:
msg - il messaggio da stampare.

printWarning

private void printWarning(java.lang.String war)
Stampa i messaggi di particolare rilevanza come errori degli utenti, errori del sistema globale e password sbagliate.

Parameters:
war - il messaggio da stampare.

printError

private void printError(java.lang.String err)
Stampa i messaggi di gravi errori di sistema locali.

Parameters:
err - il messaggio da stampare

destroy

public void destroy()
Description copied from interface: HumanInterface
Destroys the interface.

Specified by:
destroy in interface HumanInterface

showBlockContactDone

public void showBlockContactDone(java.lang.String nick,
                                 java.lang.String nick2)
Description copied from interface: HumanInterface
Called when a user successfully added a nickname to its blocking contact list.

Specified by:
showBlockContactDone in interface HumanInterface
Parameters:
nick - the blocking contact list owner.
nick2 - the blocked nickname.

showBlockContactFailedNotExists

public void showBlockContactFailedNotExists(java.lang.String nick,
                                            java.lang.String nick2)

showBlockContactRequest

public void showBlockContactRequest(java.lang.String nick,
                                    java.lang.String nick2)
Description copied from interface: HumanInterface
Called when a user requested to add a nickname to its blocking contact list.

Specified by:
showBlockContactRequest in interface HumanInterface
Parameters:
nick - the blocking contact list owner.
nick2 - the nickname of the user to block.

showRemoveContactDone

public void showRemoveContactDone(java.lang.String nick,
                                  java.lang.String nick2)
Description copied from interface: HumanInterface
Called when a contact has successfully been removed by a contact list.

Specified by:
showRemoveContactDone in interface HumanInterface
Parameters:
nick - the contact list owner.
nick2 - the removed nickname.

showRemoveContactRequest

public void showRemoveContactRequest(java.lang.String nick,
                                     java.lang.String nick2)
Description copied from interface: HumanInterface
Called when a user requested to remove a contact from its contact list.

Specified by:
showRemoveContactRequest in interface HumanInterface
Parameters:
nick - the contact list owner.
nick2 - the nickname to remove.

showSystemError

public void showSystemError(User user)
Description copied from interface: HumanInterface
Called when a gossip system error occured and a user exists but is not assigned to any server.

Specified by:
showSystemError in interface HumanInterface
Parameters:
user - the user whose status is wrong.

showGetContactCache

public void showGetContactCache(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user's direct contact request has been forwarded by the cache.

Specified by:
showGetContactCache in interface HumanInterface
Parameters:
nick - the user whose direct contact had been requested.

showGetContactDone

public void showGetContactDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when somebody successfully obtained a user's direct contact.

Specified by:
showGetContactDone in interface HumanInterface
Parameters:
nick - the user whose direct contact had been requested.

showGetContactRequest

public void showGetContactRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when somebody asked a user's direct contact.

Specified by:
showGetContactRequest in interface HumanInterface
Parameters:
nick - the user whose direct contact had been requested.

showGetManagedContactDone

public void showGetManagedContactDone(java.lang.String nick)
Description copied from interface: HumanInterface
Called when the direct contact of a user that is locally managed has been successfully sent.

Specified by:
showGetManagedContactDone in interface HumanInterface
Parameters:
nick - the user nickname.

showGetManagedContactRequest

public void showGetManagedContactRequest(java.lang.String nick)
Description copied from interface: HumanInterface
Called when the direct contact of a user that is locally managed has been requested.

Specified by:
showGetManagedContactRequest in interface HumanInterface
Parameters:
nick - the user nickname.

showGetManagedContactUserNotManaged

public void showGetManagedContactUserNotManaged(java.lang.String nick)
Description copied from interface: HumanInterface
Called when the direct contact of a user that is locally managed failed because the user is not locally managed.

Specified by:
showGetManagedContactUserNotManaged in interface HumanInterface
Parameters:
nick - the user nickname.

showCouldNotBackupUser

public void showCouldNotBackupUser(java.lang.String nickname)
Description copied from interface: HumanInterface
Called when a backup for a user failed.

Specified by:
showCouldNotBackupUser in interface HumanInterface
Parameters:
nickname - the user nickname.

showCouldNotRemoveBackuppedUser

public void showCouldNotRemoveBackuppedUser(java.lang.String nick)
Description copied from interface: HumanInterface
Called when a user removal from the backup failed.

Specified by:
showCouldNotRemoveBackuppedUser in interface HumanInterface
Parameters:
nick - the user nickname

showBackupDone

public void showBackupDone()
Description copied from interface: HumanInterface
Called when a backup procedure has been done.

Specified by:
showBackupDone in interface HumanInterface

showBackupFileStart

public void showBackupFileStart(java.lang.String filename)
Description copied from interface: HumanInterface
Called when a backup over a file started.

Specified by:
showBackupFileStart in interface HumanInterface
Parameters:
filename - the file the backup is being writed to.

showBackupStart

public void showBackupStart()
Description copied from interface: HumanInterface
Called when a backup procedure starts.

Specified by:
showBackupStart in interface HumanInterface

showBackupFailed

public void showBackupFailed()
Description copied from interface: HumanInterface
Called when a backup procedure failed.

Specified by:
showBackupFailed in interface HumanInterface