|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.protocol.ServerCommand
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class ServerCommand
Base class for a server command. Issued by the name-node to notify other servers what should be done. Commands are defined by actions defined in respective protocols.
DatanodeProtocol
,
NamenodeProtocol
Constructor Summary | |
---|---|
ServerCommand()
Unknown server command constructor. |
|
ServerCommand(int action)
Create a command for the specified action. |
Method Summary | |
---|---|
int |
getAction()
Get server command action. |
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCommand()
NamenodeProtocol.ACT_UNKNOWN
,
DatanodeProtocol.DNA_UNKNOWN
public ServerCommand(int action)
action
- DatanodeProtocol
,
NamenodeProtocol
Method Detail |
---|
public int getAction()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |