private int refreshOfferService(String serviceName) throws IOException, InterruptedException {
ClientDatanodeProtocol datanode = null;
try {
datanode = getClientDatanodeProtocol(null);
if (datanode != null) {
datanode.refreshOfferService(serviceName);
return 0;
} else {
return -1;
}
} finally {