|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface NamenodeProtocol
Protocol that a secondary NameNode uses to communicate with the NameNode. It's used to get part of the name node state
Field Summary | |
---|---|
static int |
ACT_CHECKPOINT
|
static int |
ACT_SHUTDOWN
|
static int |
ACT_UNKNOWN
|
static int |
FATAL
|
static byte |
JA_CHECKPOINT_TIME
|
static byte |
JA_IS_ALIVE
|
static byte |
JA_JOURNAL
|
static byte |
JA_JSPOOL_START
|
static int |
NOTIFY
|
static long |
versionID
Compared to the previous version the following changes have been introduced: (Only the latest change is reflected. |
Method Summary | |
---|---|
void |
endCheckpoint(NamenodeRegistration registration,
CheckpointSignature sig)
A request to the active name-node to finalize previously started checkpoint. |
void |
errorReport(NamenodeRegistration registration,
int errorCode,
String msg)
Report to the active name-node an error occurred on a subordinate node. |
ExportedAccessKeys |
getAccessKeys()
Get the current access keys |
BlocksWithLocations |
getBlocks(DatanodeInfo datanode,
long size)
Get a list of blocks belonging to datanode
whose total size equals size . |
long |
getEditLogSize()
Deprecated. See SecondaryNameNode |
void |
journal(NamenodeRegistration registration,
int jAction,
int length,
byte[] records)
Journal edit records. |
long |
journalSize(NamenodeRegistration registration)
Get the size of the active name-node journal (edit log) in bytes. |
NamenodeRegistration |
register(NamenodeRegistration registration)
Register a subordinate name-node like backup node. |
CheckpointSignature |
rollEditLog()
Deprecated. See SecondaryNameNode |
void |
rollFsImage()
Deprecated. See SecondaryNameNode |
NamenodeCommand |
startCheckpoint(NamenodeRegistration registration)
A request to the active name-node to start a checkpoint. |
NamespaceInfo |
versionRequest()
Request name-node version and storage information. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Field Detail |
---|
static final long versionID
static final int NOTIFY
static final int FATAL
static final byte JA_IS_ALIVE
static final byte JA_JOURNAL
static final byte JA_JSPOOL_START
static final byte JA_CHECKPOINT_TIME
static final int ACT_UNKNOWN
static final int ACT_SHUTDOWN
static final int ACT_CHECKPOINT
Method Detail |
---|
BlocksWithLocations getBlocks(DatanodeInfo datanode, long size) throws IOException
datanode
whose total size equals size
.
datanode
- a data nodesize
- requested size
RemoteException
- if size is less than or equal to 0 or
datanode does not exist
IOException
Balancer
ExportedAccessKeys getAccessKeys() throws IOException
IOException
@Deprecated long getEditLogSize() throws IOException
SecondaryNameNode
IOException
@Deprecated CheckpointSignature rollEditLog() throws IOException
SecondaryNameNode
IOException
@Deprecated void rollFsImage() throws IOException
SecondaryNameNode
IOException
NamespaceInfo versionRequest() throws IOException
NamespaceInfo
identifying versions and storage information
of the name-node
IOException
void errorReport(NamenodeRegistration registration, int errorCode, String msg) throws IOException
registration
- requesting node.errorCode
- indicates the errormsg
- free text description of the error
IOException
NamenodeRegistration register(NamenodeRegistration registration) throws IOException
NamenodeRegistration
of the node,
which this node has just registered with.
IOException
NamenodeCommand startCheckpoint(NamenodeRegistration registration) throws IOException
registration
- the requesting node
CheckpointCommand
if checkpoint is allowed.
IOException
CheckpointCommand
,
NamenodeCommand
,
ACT_SHUTDOWN
void endCheckpoint(NamenodeRegistration registration, CheckpointSignature sig) throws IOException
registration
- the requesting nodesig
- CheckpointSignature
which identifies the checkpoint.
IOException
long journalSize(NamenodeRegistration registration) throws IOException
registration
- the requesting node
IOException
void journal(NamenodeRegistration registration, int jAction, int length, byte[] records) throws IOException
EditLogBackupOutputStream
in order to synchronize meta-data
changes with the backup namespace image.
registration
- active node registrationjAction
- journal actionlength
- length of the byte arrayrecords
- byte array containing serialized journal records
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |