mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Added 'deleteNode()' method.
This commit is contained in:
parent
250b322793
commit
c7281ca590
@ -357,6 +357,24 @@ public final class CoordinationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes a specified node.
|
||||||
|
*
|
||||||
|
* @param category The desired category in the namespace.
|
||||||
|
* @param nodePath The node to be deleted.
|
||||||
|
*
|
||||||
|
* @throws CoordinationServiceException If there is an error deleting the
|
||||||
|
* node.
|
||||||
|
*/
|
||||||
|
void deleteNode(CategoryNode category, String nodePath) throws CoordinationServiceException {
|
||||||
|
String fullNodePath = getFullyQualifiedNodePath(category, nodePath);
|
||||||
|
try {
|
||||||
|
curator.delete().forPath(fullNodePath);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
throw new CoordinationServiceException(String.format("Failed to delete node %s", fullNodePath), ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of the child nodes of a category in the namespace.
|
* Gets a list of the child nodes of a category in the namespace.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user