List of usage examples for org.apache.hadoop.hdfs.server.protocol NodeRegistration getRegistrationID
public String getRegistrationID();
From source file:common.NameNode.java
License:Apache License
/** * Verify request./*from w w w . j av a 2 s .c o m*/ * * Verifies correctness of the datanode version, registration ID, and * if the datanode does not need to be shutdown. * * @param nodeReg data node registration * @throws IOException */ public void verifyRequest(NodeRegistration nodeReg) throws IOException { verifyVersion(nodeReg.getVersion()); if (!namesystem.getRegistrationID().equals(nodeReg.getRegistrationID())) throw new UnregisteredNodeException(nodeReg); }