|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HumanInterface
The interface that represents an interaction with a human (the server admin).
Method Summary | |
---|---|
void |
destroy()
Called when the interface must be terminated. |
Command |
getCommand()
Gets the next command to execute from the interface. |
void |
initialize()
Initialize the interface. |
void |
showBackupDone()
Called when the main backupper ends. |
void |
showBackupFailed()
Called when a backupper unit failed to backup. |
void |
showBackupFileStart(java.lang.String filename)
Called when a file backupper starts. |
void |
showBackupStart()
Called when a backupper unit starts. |
void |
showCouldNotBackupMS(java.lang.String hostname,
int RMIport,
int UDPport)
Called when a backup problem occurred and a MS could not be saved. |
void |
showCouldNotBackupUser(java.lang.String nickname)
Called when a backup problem occurred and a User could not be saved. |
void |
showCouldNotContactMS(java.lang.String hostname,
int udpPort,
int rmiPort)
Called when a Message Server could not be contacted. |
void |
showCouldNotRemoveBackuppedMS(java.lang.String hostName,
int RMIport,
int UDPport)
Called when a backup problem occurred and a MS could not be removed. |
void |
showCouldNotRemoveBackuppedUser(java.lang.String nick)
Called when a backup problem occurred and a User could not be removed. |
void |
showCouldNotShutdownUnblockedMS(int id1)
Called when a MS cannot shutdown because it is not blocked. |
void |
showGlobalMSStats(int mss,
long minFreeMem,
int minFreeMemI,
java.lang.String canonicalHostName,
long maxFreeMem,
int maxFreeMemI,
java.lang.String canonicalHostName2,
int minManUsers,
int minManUsersI,
java.lang.String canonicalHostName3,
int maxManUsers,
int maxManUsersI,
java.lang.String canonicalHostName4,
long fwMsgs,
long onlineUsers,
long queuedMsgs)
Called when some global statistics must be shown. |
void |
showIllegalArgument(java.lang.String hostname,
int port,
int port2)
Called when some given data are not right. |
void |
showMSAdded(java.lang.String canonicalHostName,
int udpPort,
int rmiPort)
Called when a MS is added. |
void |
showMSAlreadyInseted()
Called when the admin tried to add an already added message server. |
void |
showMSBlocked(int id1)
Called when a MS is blocked. |
void |
showMSCommunicationProblem(int id1)
Called when a communication problem with a MS occurred. |
void |
showMSGenericError(int ms1i)
Called when a generic error occurred in the message server. |
void |
showMSNotRemoved(int id1)
Called when a MS cannot be removed. |
void |
showMSRemoved(int id1)
Called when a MS has been removed. |
void |
showMSShutdownDone(int id1)
Called when a MS Shutdown is done correctly. |
void |
showMSShutdownFailedUsersPresent(int id1)
Called when a MS cannot shutdown because some users are still assigned to it. |
void |
showMSUnblocked(int id1)
Called when a MS is not blocked. |
void |
showMSUnknown(java.lang.String hostAddress,
int port)
Called when an udp packet from an unknown Message server is received. |
void |
showMSUserNotAccepted(int ms1i,
java.lang.String nick)
Called when a MS does not accept a user assignation. |
void |
showReceivedLoad(java.lang.String hostname,
int freeMem,
int fwdMess)
Called when a MS load is received. |
void |
showReceivedLoadFailed()
Called when a load could not be received. |
void |
showSingleMSStats(int id,
java.lang.String canonicalHostName,
int RMIport,
int UDPport,
int cacheEntries,
long freeMem,
long load,
int forwardedMessagesMinute,
int forwardedMessagesHour,
int forwardedMessages24Hours,
int forwardedMessages144Hours,
int managedUsers,
int onlineManagedUsers,
int queuedMessageNumber)
Called when a single server statistics must be shown. |
void |
showStatistics(long upTime,
int usersNumber,
int MSnumber)
Called when some statistics has to be shown. |
void |
showTestPresenceDone(int id1)
Called when a presence test for a MS is done correctly. |
void |
showTestPresenceFailed(int id1)
Called when a presence test for a MS failed. |
void |
showUDPProblem()
Called when an UDP problem occurred. |
void |
showUserDeleted(java.lang.String nick)
Called when a user was successfully deleted. |
void |
showUserList(int id1,
java.lang.String userStr)
Shows a list of users managed by a message server. |
void |
showUserMoved(java.lang.String nick)
Called when a user has been successfully moved. |
void |
showUserMoveSameDest(java.lang.String nick)
Called when somebody is trying to move a user from a server to its server. |
void |
showUserNotDeleted(java.lang.String nick)
Called when a user could not be deleted. |
void |
showUserNotExists(java.lang.String nick)
Called when a user does not exist. |
void |
showUserNotManaged(int managerMSi,
java.lang.String user)
Called when a user is not managed by a Message server. |
void |
showUserNotMoved(java.lang.String nick)
Called when a user could not be moved. |
void |
showWrongMSId(int id1)
Called when a MS id is not correct. |
void |
showWrongMSPassword(int id1)
Called when a Message server password is wrong. |
void |
showWrongMSPassword(java.lang.String canonicalHostName,
int udpPort,
int rmiPort)
Called when a Message server password is wrong. |
Method Detail |
---|
Command getCommand()
void initialize()
void showReceivedLoad(java.lang.String hostname, int freeMem, int fwdMess)
hostname
- the sender hostname.freeMem
- the free memory.fwdMess
- the forwarded messages.void showMSNotRemoved(int id1)
id1
- the id of the MS that could not be removed.void showMSRemoved(int id1)
id1
- the id of the removed message server.void showUserNotMoved(java.lang.String nick)
nick
- the user nickname.void showUserMoved(java.lang.String nick)
nick
- the user nickname.void showUserNotDeleted(java.lang.String nick)
nick
- the user nicknamevoid showUserDeleted(java.lang.String nick)
nick
- the user nicknamevoid showUserNotExists(java.lang.String nick)
nick
- the user nicknamevoid showCouldNotContactMS(java.lang.String hostname, int udpPort, int rmiPort)
hostname
- the MS hostname.udpPort
- the MS UDP port.rmiPort
- the MS RMI port.void showUDPProblem()
void showStatistics(long upTime, int usersNumber, int MSnumber)
upTime
- the local server uptime.usersNumber
- the number of currently registered users.MSnumber
- the number of registered message servers.void showGlobalMSStats(int mss, long minFreeMem, int minFreeMemI, java.lang.String canonicalHostName, long maxFreeMem, int maxFreeMemI, java.lang.String canonicalHostName2, int minManUsers, int minManUsersI, java.lang.String canonicalHostName3, int maxManUsers, int maxManUsersI, java.lang.String canonicalHostName4, long fwMsgs, long onlineUsers, long queuedMsgs)
mss
- total number of Message Servers.minFreeMem
- the minimum free memory in a single server.minFreeMemI
- the id of the server with the minimum free memory.canonicalHostName
- the hostname of the server with the minimum free memory.maxFreeMem
- the maximum free memory in a single server.maxFreeMemI
- the id of the server with the maximum free memory.canonicalHostName2
- the hostname of the server with the maximum free memory.minManUsers
- the minimum managed users in a single server.minManUsersI
- the id of the server with the minimum managed users.canonicalHostName3
- the hostname of the server with the minimum managed users.maxManUsers
- the maximum managed users in a single server.maxManUsersI
- the id of the server with the maximum managed users.canonicalHostName4
- the hostname of the server with the maximum managed users.fwMsgs
- the totally forwarded messages.onlineUsers
- the estimate online users.queuedMsgs
- the number of messages stored in the message servers queues.void showSingleMSStats(int id, java.lang.String canonicalHostName, int RMIport, int UDPport, int cacheEntries, long freeMem, long load, int forwardedMessagesMinute, int forwardedMessagesHour, int forwardedMessages24Hours, int forwardedMessages144Hours, int managedUsers, int onlineManagedUsers, int queuedMessageNumber)
id
- the server id.canonicalHostName
- the server hostname.RMIport
- the server RMI port.UDPport
- the server UDP port.cacheEntries
- the cache entries.freeMem
- the free memory.load
- the load.forwardedMessagesMinute
- the number of messages forwarded in the last minute.forwardedMessagesHour
- the number of messages forwarded in the last hour.forwardedMessages24Hours
- the number of messages forwarded in the last day.forwardedMessages144Hours
- the number of messages forwarded in the last week.managedUsers
- the number of managed users.onlineManagedUsers
- the number of online managed users.queuedMessageNumber
- the number of queued messages.void showReceivedLoadFailed()
void showMSAdded(java.lang.String canonicalHostName, int udpPort, int rmiPort)
canonicalHostName
- the ms hostname.udpPort
- the UDP port.rmiPort
- the RMI port.void showWrongMSPassword(java.lang.String canonicalHostName, int udpPort, int rmiPort)
canonicalHostName
- the MS hostname.udpPort
- the MS UDP port.rmiPort
- the MS RMI port.void showWrongMSId(int id1)
id1
- the wrong id.void showUserList(int id1, java.lang.String userStr)
id1
- the ms id.userStr
- the users string representation.void showWrongMSPassword(int id1)
id1
- the MS id.void showMSCommunicationProblem(int id1)
id1
- the MS id.void showTestPresenceDone(int id1)
id1
- the MS idvoid showTestPresenceFailed(int id1)
id1
- the MS idvoid showMSShutdownDone(int id1)
id1
- the MS idvoid showMSBlocked(int id1)
id1
- the MS id.void showMSUnblocked(int id1)
id1
- the MS id.void showMSUnknown(java.lang.String hostAddress, int port)
hostAddress
- the sender hostname.port
- the sender UDP port.void showUserNotManaged(int managerMSi, java.lang.String user)
managerMSi
- the MS id.user
- the user nickname.void showMSUserNotAccepted(int ms1i, java.lang.String nick)
ms1i
- the MS id.nick
- the user nickname.void showMSGenericError(int ms1i)
ms1i
- the message server ID.void showMSShutdownFailedUsersPresent(int id1)
id1
- the ms id.void showCouldNotShutdownUnblockedMS(int id1)
id1
- the ms id.void showIllegalArgument(java.lang.String hostname, int port, int port2)
hostname
- the given hostname.port
- the given RMI port.port2
- the given UDP port.void showCouldNotBackupMS(java.lang.String hostname, int RMIport, int UDPport)
hostname
- the MS hostname.RMIport
- the MS RMI port.UDPport
- the Ms UDP port.void showCouldNotBackupUser(java.lang.String nickname)
nickname
- the user nickname.void showCouldNotRemoveBackuppedMS(java.lang.String hostName, int RMIport, int UDPport)
hostName
- the MS hostnameRMIport
- the MS RMI port.UDPport
- the MS UDP port.void showCouldNotRemoveBackuppedUser(java.lang.String nick)
nick
- the user nickname.void showBackupFileStart(java.lang.String filename)
filename
- the name of the file the main backupper is working on.void showBackupDone()
void showBackupStart()
void showBackupFailed()
void showUserMoveSameDest(java.lang.String nick)
nick
- the user nickname.void showMSAlreadyInseted()
void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |