com.nhncorp.neptune.master
Interface TabletMasterProtocol

All Superinterfaces:
NVersionedProtocol
All Known Subinterfaces:
NeptuneMasterIF
All Known Implementing Classes:
NeptuneMaster

public interface TabletMasterProtocol
extends NVersionedProtocol

Tablet을 관리하기 위한 프로토콜

Author:
nhn

Field Summary
static long versionID
           
 
Method Summary
 boolean assignTablet(TabletInfo tabletInfo)
           
 boolean checkServer()
           
 void endTableDrop(java.lang.String taskId, java.lang.String hostName, java.lang.String tableName)
           
 void endTabletAssignment(TabletInfo tabletInfo, boolean created)
           
 void errorTableDrop(java.lang.String taskId, java.lang.String hostName, java.lang.String tableName, java.lang.String message)
           
 void errorTabletAssignment(java.lang.String hostName, TabletInfo tabletInfo)
           
 void reportTabletServerStarted(java.lang.String hostName)
          네트워크 설정 문제로 Pleiades event handler를 사용하지 못할 경우 TabletServer가 NeptuneMaster로 live 상태를 전송한다.
 void reportTabletSplited(TabletInfo targetTablet, TabletInfo[] splitedTablets)
           
 
Methods inherited from interface com.nhncorp.neptune.common.ipc.NVersionedProtocol
getProtocolVersion
 

Field Detail

versionID

static final long versionID
See Also:
Constant Field Values
Method Detail

assignTablet

boolean assignTablet(TabletInfo tabletInfo)
                     throws java.io.IOException
Parameters:
tabletInfo -
ignoreFlag -
Returns:
Throws:
java.io.IOException

endTabletAssignment

void endTabletAssignment(TabletInfo tabletInfo,
                         boolean created)
                         throws java.io.IOException
Parameters:
tabletInfo -
created -
Throws:
java.io.IOException

checkServer

boolean checkServer()
Returns:

errorTabletAssignment

void errorTabletAssignment(java.lang.String hostName,
                           TabletInfo tabletInfo)
Parameters:
tabletInfo -

reportTabletSplited

void reportTabletSplited(TabletInfo targetTablet,
                         TabletInfo[] splitedTablets)
Parameters:
targetTablet -
splitedTablets -

errorTableDrop

void errorTableDrop(java.lang.String taskId,
                    java.lang.String hostName,
                    java.lang.String tableName,
                    java.lang.String message)
                    throws java.io.IOException
Throws:
java.io.IOException

endTableDrop

void endTableDrop(java.lang.String taskId,
                  java.lang.String hostName,
                  java.lang.String tableName)
                  throws java.io.IOException
Throws:
java.io.IOException

reportTabletServerStarted

void reportTabletServerStarted(java.lang.String hostName)
                               throws java.io.IOException
네트워크 설정 문제로 Pleiades event handler를 사용하지 못할 경우 TabletServer가 NeptuneMaster로 live 상태를 전송한다.

Parameters:
hostName -
Throws:
java.io.IOException