|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.flow.FlowProcess<Config>
cascading.flow.FlowProcessWrapper<Config>
public class FlowProcessWrapper<Config>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cascading.flow.FlowProcess |
---|
FlowProcess.NullFlowProcess |
Field Summary |
---|
Fields inherited from class cascading.flow.FlowProcess |
---|
NULL |
Constructor Summary | |
---|---|
FlowProcessWrapper(FlowProcess delegate)
|
Method Summary | |
---|---|
Config |
copyConfig(Config jobConf)
|
FlowProcess |
copyWith(Config object)
|
Map<String,String> |
diffConfigIntoMap(Config defaultConfig,
Config updatedConfig)
|
Config |
getConfigCopy()
|
FlowSession |
getCurrentSession()
Method getCurrentSession returns the currentSession of this FlowProcess object. |
int |
getCurrentSliceNum()
Method getCurrentSliceNum returns an integer representing which slice instance currently running. |
FlowProcess |
getDelegate()
|
String |
getID()
Method getID() returns the current |
int |
getNumProcessSlices()
Method getNumProcessSlices returns the number of parallel slices or tasks allocated for this process execution. |
Object |
getProperty(String key)
Method getProperty should be used to return configuration parameters from the underlying system. |
Collection<String> |
getPropertyKeys()
Method getPropertyKeys returns an immutable collection of all available property key values. |
void |
increment(Enum counter,
long amount)
Method increment is used to increment a custom counter. |
void |
increment(String group,
String counter,
long amount)
Method increment is used to increment a custom counter. |
boolean |
isCounterStatusInitialized()
Method isCounterStatusInitialized returns true if it is safe to increment a counter or set a status. |
void |
keepAlive()
Method keepAlive notifies the system that the current process is still alive. |
Config |
mergeMapIntoConfig(Config defaultConfig,
Map<String,String> map)
|
Object |
newInstance(String className)
Method newInstance creates a new object instance from the given className argument delegating to any platform specific instantiation and configuration routines. |
TupleEntryCollector |
openSystemIntermediateForWrite()
|
TupleEntryIterator |
openTapForRead(Tap tap)
Method openTapForRead return a TupleEntryIterator for the given Tap instance. |
TupleEntryCollector |
openTapForWrite(Tap tap)
Method openTapForWrite returns a (@link TupleCollector} for the given Tap instance. |
TupleEntryCollector |
openTrapForWrite(Tap trap)
Method openTrapForWrite returns a (@link TupleCollector} for the given Tap instance. |
void |
setCurrentSession(FlowSession currentSession)
Method setCurrentSession sets the currentSession of this FlowProcess object. |
void |
setStatus(String status)
Method setStatus is used to set the status of the current operation. |
static FlowProcess |
undelegate(FlowProcess flowProcess)
|
Methods inherited from class cascading.flow.FlowProcess |
---|
getBooleanProperty, getBooleanProperty, getIntegerProperty, getIntegerProperty, getStringProperty, getStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowProcessWrapper(FlowProcess delegate)
Method Detail |
---|
public static FlowProcess undelegate(FlowProcess flowProcess)
public FlowProcess getDelegate()
public FlowProcess copyWith(Config object)
copyWith
in class FlowProcess<Config>
public String getID()
FlowProcess
getID
in class FlowProcess<Config>
public FlowSession getCurrentSession()
FlowProcess
getCurrentSession
in class FlowProcess<Config>
public void setCurrentSession(FlowSession currentSession)
FlowProcess
setCurrentSession
in class FlowProcess<Config>
currentSession
- the currentSession of this FlowProcess object.public int getNumProcessSlices()
FlowProcess
getNumProcessSlices
in class FlowProcess<Config>
public int getCurrentSliceNum()
FlowProcess
0
(zero) is the first slice instance.
getCurrentSliceNum
in class FlowProcess<Config>
public Object getProperty(String key)
FlowProcess
getProperty
in class FlowProcess<Config>
key
- of type String
public Collection<String> getPropertyKeys()
FlowProcess
getPropertyKeys
in class FlowProcess<Config>
public Object newInstance(String className)
FlowProcess
newInstance
in class FlowProcess<Config>
public void keepAlive()
FlowProcess
Operation
takes some moments to complete. Each system is different, so calling
ping every few seconds to every minute or so would be best.
This method will fail silently if the underlying mechanism to notify keepAlive status are not initialized.
keepAlive
in class FlowProcess<Config>
public void increment(Enum counter, long amount)
FlowProcess
FlowProcess.isCounterStatusInitialized()
.
increment
in class FlowProcess<Config>
counter
- of type Enumamount
- of type intpublic void increment(String group, String counter, long amount)
FlowProcess
FlowProcess.isCounterStatusInitialized()
.
increment
in class FlowProcess<Config>
group
- of type Stringcounter
- of type Stringamount
- of type intpublic void setStatus(String status)
FlowProcess
FlowProcess.isCounterStatusInitialized()
.
setStatus
in class FlowProcess<Config>
status
- of type Stringpublic boolean isCounterStatusInitialized()
FlowProcess
isCounterStatusInitialized
in class FlowProcess<Config>
public TupleEntryIterator openTapForRead(Tap tap) throws IOException
FlowProcess
TupleEntryIterator
for the given Tap instance.
Note the returned iterator will return the same instance of TupleEntry
on every call,
thus a copy must be made of either the TupleEntry or the underlying Tuple
instance if they are to be
stored in a Collection.
openTapForRead
in class FlowProcess<Config>
tap
- of type Tap
IOException
- when there is a failure opening the resourcepublic TupleEntryCollector openTapForWrite(Tap tap) throws IOException
FlowProcess
openTapForWrite
in class FlowProcess<Config>
tap
- of type Tap
IOException
- when there is a failure opening the resourcepublic TupleEntryCollector openTrapForWrite(Tap trap) throws IOException
FlowProcess
openTrapForWrite
in class FlowProcess<Config>
trap
- of type Tap
IOException
- when there is a failure opening the resourcepublic TupleEntryCollector openSystemIntermediateForWrite() throws IOException
openSystemIntermediateForWrite
in class FlowProcess<Config>
IOException
public Config getConfigCopy()
getConfigCopy
in class FlowProcess<Config>
public Config copyConfig(Config jobConf)
copyConfig
in class FlowProcess<Config>
public Map<String,String> diffConfigIntoMap(Config defaultConfig, Config updatedConfig)
diffConfigIntoMap
in class FlowProcess<Config>
public Config mergeMapIntoConfig(Config defaultConfig, Map<String,String> map)
mergeMapIntoConfig
in class FlowProcess<Config>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |