com.nhncorp.neptune.master
Interface NeptuneMasterIF

All Superinterfaces:
AsyncCallProtocol, Constants, NVersionedProtocol, ProxyObject, java.lang.Runnable, TableManagerProtocol, TabletMasterProtocol
All Known Implementing Classes:
NeptuneMaster

public interface NeptuneMasterIF
extends TableManagerProtocol, TabletMasterProtocol, Constants, java.lang.Runnable, ProxyObject

Unit 테스트를 위해 NeptuneMaster의 메소드 중 테스트 대상 메소드만 interface로 별도 정의

Author:
nhn

Field Summary
 
Fields inherited from interface com.nhncorp.neptune.master.TableManagerProtocol
versionID
 
Fields inherited from interface com.nhncorp.neptune.master.TabletMasterProtocol
versionID
 
Fields inherited from interface com.nhncorp.neptune.common.Constants
BATCH_RECEIVER_SUCCESS, BATCH_UPLOAD, CHANGELOG_SERVER, COMPACTION, DELETEED, END_RECEIVE_ROW, GROUPS, INDEX_INTERVAL_LENGH, INSERTED, LOG_OP_ADD_COLUMN_VALUE, LOG_OP_CREATE_ROW, LOG_OP_DELETE_COLUMN_VALUE, LOG_OP_MODIFY_META, MAP_RECORD_COLUMN, MAP_RECORD_ROW, MASTER, MASTER_SERVER, MAX_KEY_LENGTH, MAX_VALUE, META_COLUMN_NAME_TABLETINFO, MIN_VALUE, NEPTUNE, OPEN_SCANNER, PATH_SCHEMA, PIPE_CL_FILE_NAME, PROCESS, ROOT_TABLET, SCANNER_END, SCANNER_OPEN_FAIL, SCANNER_OPEN_SUCCESS, SCHEMA_DESCRIPTION_FILE_NAME, SCHEMA_INFO_FILENAME, SERVER, SPLIT, SPLIT_INFO, SPLIT_STORE, SUPERGROUP, TABLE_DROP, TABLE_LOCK, TABLE_NAME_META, TABLE_NAME_ROOT, TABLET_ALIVE, TABLET_ASSIGN, TABLET_AVAIL, TABLET_CREATED, TABLET_DROP, TABLET_FAIL, TABLET_STOP_MARK, TABLETSERVER_SPLIT, TEST_MODE, UPLOAD_END, UPLOAD_FAIL, UPLOAD_START_ROW, UPLOADER, USERS
 
Method Summary
 void endTabletAssignmentForHandler(TabletInfo tabletInfo, boolean created)
           
 NConfiguration getConf()
           
 java.lang.String getHostName()
           
 void init(NeptuneMasterIF proxyObject, NConfiguration conf)
           
 boolean isShutdowned()
           
 void shutdown()
           
 boolean tryMasterLock()
           
 
Methods inherited from interface com.nhncorp.neptune.master.TableManagerProtocol
addColumn, addTablePermission, addTablet, addUser, createTable, dropTable, getTablets, getTabletServerInfos, listTables, removeTablePermission, removeUser, test
 
Methods inherited from interface com.nhncorp.neptune.common.AsyncCallProtocol
getAsyncTaskStatus, removeAsyncTask
 
Methods inherited from interface com.nhncorp.neptune.common.ipc.NVersionedProtocol
getProtocolVersion
 
Methods inherited from interface com.nhncorp.neptune.master.TabletMasterProtocol
assignTablet, checkServer, endTableDrop, endTabletAssignment, errorTableDrop, errorTabletAssignment, reportTabletServerStarted, reportTabletSplited
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface com.nhncorp.neptune.common.aop.ProxyObject
getTestHandlerKey
 

Method Detail

init

void init(NeptuneMasterIF proxyObject,
          NConfiguration conf)
          throws java.io.IOException
Throws:
java.io.IOException

shutdown

void shutdown()

isShutdowned

boolean isShutdowned()

endTabletAssignmentForHandler

void endTabletAssignmentForHandler(TabletInfo tabletInfo,
                                   boolean created)
                                   throws java.io.IOException
Throws:
java.io.IOException

getHostName

java.lang.String getHostName()

tryMasterLock

boolean tryMasterLock()
                      throws java.io.IOException
Throws:
java.io.IOException

getConf

NConfiguration getConf()