com.bigdata.service
Interface IFederationCallable

All Superinterfaces:
Serializable
All Known Subinterfaces:
IDataServiceCallable
All Known Implementing Classes:
AbstractAsynchronousClientTask, AbstractClientTask, AbstractStepTask, AggregatorTask, DataServiceCallable, DumpFederation.FetchIndexPartitionByteCountRecordTask, FederationCallable, JoinTaskFactoryTask, ListIndicesTask, MappedRDFFileLoadTask, MoveTask.ReceiveIndexPartitionTask, MutationTask, ProgramTask, QueryTask, RDFFileLoadTask

public interface IFederationCallable
extends Serializable

Interface for Callables which require access to the IBigdataFederation when running on an IRemoteExecutor.

Version:
$Id: IFederationCallable.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 IBigdataFederation getFederation()
          Return the IBigdataFederation reference.
 void setFederation(IBigdataFederation fed)
          Invoked before the task is executed to provide a reference to the IBigdataFederation for the service on which the task is executing.
 

Method Detail

setFederation

void setFederation(IBigdataFederation fed)
Invoked before the task is executed to provide a reference to the IBigdataFederation for the service on which the task is executing.

Parameters:
fed - The federation.
Throws:
IllegalArgumentException - if the argument is null
IllegalStateException - if setFederation(IBigdataFederation) has already been invoked and was set with a different value.

getFederation

IBigdataFederation getFederation()
Return the IBigdataFederation reference.

Returns:
The federation and never null.
Throws:
IllegalStateException - if setFederation(IBigdataFederation) has not been invoked.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.