Package org.platformlayer.ops

Examples of org.platformlayer.ops.BindingScope.pop()


        BindingScope scope = BindingScope.push(machine, target, machineItem);
        try {
          OpsContext opsContext = OpsContext.get();
          OperationRecursor.doRecurseChildren(opsContext, controller);
        } finally {
          scope.pop();
        }
      } catch (OpsException e) {
        failed = true;
        log.warn("Error updating machine: " + machine, e);
      }
View Full Code Here


    BindingScope scope = BindingScope.push(machine, target);
    try {
      OpsContext opsContext = OpsContext.get();
      OperationRecursor.doRecurseChildren(opsContext, this);
    } finally {
      scope.pop();
    }
  }

}
View Full Code Here

    BindingScope scope = BindingScope.push(mysql);
    try {
      OpsContext opsContext = OpsContext.get();
      OperationRecursor.doRecurseChildren(opsContext, this);
    } finally {
      scope.pop();
    }
  }

  @Override
  protected void addChildren() throws OpsException {
View Full Code Here

      BindingScope scope = BindingScope.push(machine, target);
      try {
        OpsContext opsContext = OpsContext.get();
        OperationRecursor.doRecurseChildren(opsContext, this);
      } finally {
        scope.pop();
      }
    }
  }

}
View Full Code Here

        BindingScope scope = BindingScope.push(machine, target, machineItem, dataItem);
        try {
          OpsContext opsContext = OpsContext.get();
          OperationRecursor.doRecurseChildren(opsContext, controller);
        } finally {
          scope.pop();
        }
      } catch (OpsException e) {
        failed = true;
        log.warn("Error updating machine: " + machine + " with item " + dataItem, e);
      }
View Full Code Here

    BindingScope scope = BindingScope.push(dbTarget);
    try {
      OpsContext opsContext = OpsContext.get();
      OperationRecursor.doRecurseChildren(opsContext, this);
    } finally {
      scope.pop();
    }
  }

  @Override
  protected void addChildren() throws OpsException {
View Full Code Here

      OpsContext opsContext = OpsContext.get();
      OperationRecursor.doRecurseChildren(opsContext, this);
    } finally {
      if (scope != null) {
        scope.pop();
      }
    }
  }

  protected ManagedDirectory findDirectory(File dir) throws OpsException {
View Full Code Here

          Object controller = serviceProvider.getController(managedItem);
          MetricConfig metricConfig = opsContext.getMetricInfo(controller);

          return MetricCollector.toMetricInfo(metricConfig);
        } finally {
          bindingScope.pop();
        }
      }
    });
  }
View Full Code Here

        BindingScope bindingScope = BindingScope.push(managedItem, managedItem);
        try {
          MetricDataSource metrics = serviceProvider.getMetricValues(managedItem, query);
          return metrics;
        } finally {
          bindingScope.pop();
        }
      }
    });
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.