Package org.apache.hadoop.mapreduce
Class QueueAclsInfo
java.lang.Object
org.apache.hadoop.mapreduce.QueueAclsInfo
- All Implemented Interfaces:
Writable
Class to encapsulate Queue ACLs for a particular
user.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for QueueAclsInfo.QueueAclsInfo(String queueName, String[] operations) Construct a new QueueAclsInfo object using the queue name and the queue operations array -
Method Summary
Modifier and TypeMethodDescriptionString[]Get opearations allowed on queue.Get queue name.voidreadFields(DataInput in) Deserialize the fields of this object fromin.protected voidsetQueueName(String queueName) voidwrite(DataOutput out) Serialize the fields of this object toout.
-
Constructor Details
-
QueueAclsInfo
public QueueAclsInfo()Default constructor for QueueAclsInfo. -
QueueAclsInfo
Construct a new QueueAclsInfo object using the queue name and the queue operations array- Parameters:
queueName- Name of the job queueoperations-
-
-
Method Details
-
getQueueName
Get queue name.- Returns:
- name
-
setQueueName
-
getOperations
Get opearations allowed on queue.- Returns:
- array of String
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-