dist1.acb.CBL
Interface Server

All Superinterfaces:
UpdatesExecutor
All Known Implementing Classes:
Backup, Primary

public interface Server
extends UpdatesExecutor

Server interface. The main porpose is to abstract current mode of the CBL.

Version:
$Revision: 1.4 $
Author:
Alexander Stasiv

Method Summary
 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
 boolean isPrimary()
          Checks if the current server is the Primary
 void startServer()
          Start the server
 void stopServer()
          Stop the server
 
Methods inherited from interface dist1.acb.CBL.UpdatesExecutor
hBeginSellTransaction, hCloseSession, hDeleteOldUsers, hEndSellTransaction, hInitCBLTable, hInsertLog, hLogin, hMoneyFromAccount, hMoneyToAccount, hRegister, hRemoveCBL, hRemoveFiles, hShare, hUpdateCBL, hUpdateUser
 

Method Detail

getLogger

public java.util.logging.Logger getLogger()
Returns logger for current server

Returns:
Logger for current server

isPrimary

public boolean isPrimary()
Checks if the current server is the Primary

Returns:
true if the Server is the Primary, false is it is a Backup

getReplicasBackup

public java.util.LinkedList getReplicasBackup()
Returns list for backuping replicas

Returns:
List for backuping replicas

getThisCBL

public CBL getThisCBL()
Returns information about this CBL

Returns:
Regerence to CBL object

startServer

public void startServer()
Start the server


stopServer

public void stopServer()
Stop the server



Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.