|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread dist1.acb.common.transport.AbstractClientSocket dist1.acb.CBL.Backup
The Backup
Nested Class Summary |
Nested classes inherited from class dist1.acb.common.transport.AbstractClientSocket |
AbstractClientSocket.SocketAndStreams |
Field Summary |
Fields inherited from class dist1.acb.common.transport.AbstractClientSocket |
isShutdowned, log, objectStreamFactory, socket |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Backup()
Constructor for the Backup object |
Method Summary | |
void |
forceGetReplicas()
Force the Backup to try to receive replicas |
java.util.logging.Logger |
getLogger()
Returns logger for current server |
java.util.LinkedList |
getReplicasBackup()
Returns list for backuping replicas |
CBL |
getThisCBL()
Returns information about this CBL |
protected void |
handleConnectionEstablished()
|
protected boolean |
handleConnectionLost()
|
protected void |
handleUnrecoverableError(java.lang.Throwable e)
|
Response |
hBeginSellTransaction(java.lang.String login,
RequestUpdate request)
Handler for request BeginSellTransaction |
Response |
hCloseSession(java.lang.String login,
RequestUpdate request)
Handler for request CloseSession |
Response |
hDeleteOldUsers(java.lang.String login,
RequestUpdate request)
Handler for request DeleteOldUsers |
Response |
hEndSellTransaction(java.lang.String login,
RequestUpdate request)
Handler for request BeginSellTransaction |
Response |
hInitCBLTable(java.lang.String login,
RequestUpdate request)
Handler for request InitCBLTable |
Response |
hInsertLog(java.lang.String login,
RequestUpdate request)
Handler for request insert log |
Response |
hLogin(java.lang.String login,
RequestUpdate request)
Handler for request Login |
Response |
hMoneyFromAccount(java.lang.String login,
RequestUpdate request)
Handler for request MoneyFromAccount |
Response |
hMoneyToAccount(java.lang.String login,
RequestUpdate request)
Handler for request MoneyToAccount |
Response |
hRegister(java.lang.String login,
RequestUpdate request)
Handler for request Register |
Response |
hRemoveCBL(java.lang.String login,
RequestUpdate request)
Handler for request RemoveCBL |
Response |
hRemoveFiles(java.lang.String login,
RequestUpdate request)
Handler for request RemoveFiles |
Response |
hShare(java.lang.String login,
RequestUpdate request)
Handler for request Share |
Response |
hUpdateCBL(java.lang.String login,
RequestUpdate request)
Handler for request UpdateCBL |
Response |
hUpdateUser(java.lang.String login,
RequestUpdate request)
Handler for request UpdateUser |
boolean |
isPrimary()
Checks if the current server is the Primary |
void |
run()
Main processor |
void |
startServer()
Start the server |
void |
stopServer()
Stop the server |
Methods inherited from class dist1.acb.common.transport.AbstractClientSocket |
connect, connect, connect, getResponse, getServerAddr, getServersAddresses, handleResponseToNoRequest, isConnected, receiveResponse, request, request, scheduleRequest, setServersAddresses, start |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Backup()
Method Detail |
public java.util.logging.Logger getLogger()
getLogger
in interface Server
public boolean isPrimary()
isPrimary
in interface Server
public java.util.LinkedList getReplicasBackup()
getReplicasBackup
in interface Server
public CBL getThisCBL()
getThisCBL
in interface Server
public void forceGetReplicas()
public Response hBeginSellTransaction(java.lang.String login, RequestUpdate request)
hBeginSellTransaction
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hCloseSession(java.lang.String login, RequestUpdate request)
hCloseSession
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hDeleteOldUsers(java.lang.String login, RequestUpdate request)
hDeleteOldUsers
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hEndSellTransaction(java.lang.String login, RequestUpdate request)
hEndSellTransaction
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hInitCBLTable(java.lang.String login, RequestUpdate request)
hInitCBLTable
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hInsertLog(java.lang.String login, RequestUpdate request)
hInsertLog
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hLogin(java.lang.String login, RequestUpdate request)
hLogin
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hMoneyFromAccount(java.lang.String login, RequestUpdate request)
hMoneyFromAccount
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hMoneyToAccount(java.lang.String login, RequestUpdate request)
hMoneyToAccount
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hRegister(java.lang.String login, RequestUpdate request)
hRegister
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hRemoveCBL(java.lang.String login, RequestUpdate request)
hRemoveCBL
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hRemoveFiles(java.lang.String login, RequestUpdate request)
hRemoveFiles
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hShare(java.lang.String login, RequestUpdate request)
hShare
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hUpdateCBL(java.lang.String login, RequestUpdate request)
hUpdateCBL
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public Response hUpdateUser(java.lang.String login, RequestUpdate request)
hUpdateUser
in interface UpdatesExecutor
login
- Urer's loginrequest
- The request
public void run()
run
in interface java.lang.Runnable
run
in class AbstractClientSocket
public void startServer()
startServer
in interface Server
java.lang.RuntimeException
- internal exceptionpublic void stopServer()
stopServer
in interface Server
protected void handleConnectionEstablished()
handleConnectionEstablished
in class AbstractClientSocket
protected boolean handleConnectionLost()
handleConnectionLost
in class AbstractClientSocket
protected void handleUnrecoverableError(java.lang.Throwable e)
handleUnrecoverableError
in class AbstractClientSocket
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |