예제 #1
0
  /**
   * Verifies cluster consistency (currently checks whether there is no other node with the same ID,
   * and whether clustered/non-clustered nodes are OK).
   *
   * @param result
   * @return
   */
  public void checkClusterConfiguration(OperationResult result) {

    //        LOGGER.trace("taskManager = " + taskManager);
    //        LOGGER.trace("taskManager.getNodeRegistrar() = " + taskManager.getNodeRegistrar());

    nodeRegistrar.verifyNodeObject(
        result); // if error, sets the error state and stops the scheduler
    nodeRegistrar.checkNonClusteredNodes(result); // the same
  }
예제 #2
0
 public boolean isCurrentNode(String node) {
   return nodeRegistrar.isCurrentNode(node);
 }
예제 #3
0
 public boolean isCurrentNode(PrismObject<NodeType> node) {
   return nodeRegistrar.isCurrentNode(node);
 }
예제 #4
0
 public String getNodeId() {
   return nodeRegistrar.getNodeId();
 }
예제 #5
0
 public void recordNodeShutdown(OperationResult result) {
   nodeRegistrar.recordNodeShutdown(result);
 }
예제 #6
0
 public boolean isUp(NodeType nodeType) {
   return nodeRegistrar.isUp(nodeType);
 }
예제 #7
0
 public PrismObject<NodeType> getNodePrism() {
   return nodeRegistrar.getNodePrism();
 }
예제 #8
0
 public void createNodeObject(OperationResult result) throws TaskManagerInitializationException {
   nodeRegistrar.createNodeObject(result);
 }
예제 #9
0
 public void deleteNode(String nodeOid, OperationResult result)
     throws SchemaException, ObjectNotFoundException {
   nodeRegistrar.deleteNode(nodeOid, result);
 }