Package eu.mosaic_cloud.tools.callbacks.core

Examples of eu.mosaic_cloud.tools.callbacks.core.CallbackCompletionObserver


  @Override
  public CallbackCompletion<Void> getCfpList (String status, CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.getCfpList (status);
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here


  @Override
  public CallbackCompletion<Void> getCfp (Hashtable<String, String> parameters, CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.getCfp (parameters);
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here

  @Override
  public CallbackCompletion<Void> deleteCfp (String id, CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.deleteCfp (id);
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here

  @Override
  public CallbackCompletion<Void> getProposal (Hashtable<String, String> parameters, CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.getProposal (parameters);
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here

  @Override
  public CallbackCompletion<Void> sendSecurityParameters (Hashtable<String, String> parameters, CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.sendSecurityParameters (parameters);
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here

  @Override
  public CallbackCompletion<Void> getVendorList (CaExtra extra)
  {
    final CallbackCompletion<CaMessage<CaMessageValue>> completion = this.connector.getVendorList ();
    if (this.callback != null) {
      completion.observe (new CallbackCompletionObserver () {
        @SuppressWarnings ("synthetic-access")
        @Override
        public CallbackCompletion<Void> completed (final CallbackCompletion<?> completion_)
        {
          assert (completion_ == completion);
View Full Code Here

   
    this.transcript.traceDebugging("copying the file with path `%s` to `%s` and extra `%{object}`" , sourceFullPath, destinationFullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.copyFile(sourceFullPath, destinationFullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

   
    this.transcript.traceDebugging("moving the file with path `%s` to `%s` and extra `%{object}`" , sourceFullPath, destinationFullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.moveFile(sourceFullPath, destinationFullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

    this.transcript.traceDebugging("opening file with path `%s` with extra `%{object}` " , path, extra);
    final CallbackCompletion<? extends eu.mosaic_cloud.connectors.dfs.hdfs.IHadoopDfsFileConnector> completion = this.connector.openFile(path, mode);
   
    final DeferredFuture<HadoopDfsFileConnector<TFileContext, TFileExtra>> future = (DeferredFuture) DeferredFuture.create (GenericDfsFileConnector.class);
   
    completion.observe(new CallbackCompletionObserver() {
     
      @Override
      public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
        assert (completion == completion_);
       
View Full Code Here

   
    this.transcript.traceDebugging("Seeking file with extra `%{object}`" , extra);
    final CallbackCompletion<Void> completion = this.file.seek(position);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.tools.callbacks.core.CallbackCompletionObserver

Copyright © 2018 www.massapicom. 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.