|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.nextgrid.api.pom.ref.ReferenceSupport<T>
T - The referenced typepublic abstract class ReferenceSupport<T>
ReferenceSupport type.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
Enactor logger. |
| Constructor Summary | |
|---|---|
ReferenceSupport()
Creates a new instance with default reader and writer collections. |
|
ReferenceSupport(java.util.Set<nextgrid.api.pom.Process> readers,
java.util.Set<nextgrid.api.pom.Process> writers)
Creates a new instance, allowing to specify the readers and writers instances to use. |
|
| Method Summary | |
|---|---|
void |
addReader(nextgrid.api.pom.Process reader)
|
void |
addWriter(nextgrid.api.pom.Process writer)
|
void |
clearLinks()
|
ReferenceSupport<T> |
copy()
|
void |
dispose()
|
java.util.Set<nextgrid.api.pom.Process> |
getReaders()
|
java.util.Set<nextgrid.api.pom.Process> |
getWriters()
|
boolean |
isAvailable()
|
java.util.concurrent.locks.Lock |
readLock()
|
void |
removeReader(nextgrid.api.pom.Process reader)
|
void |
removeWriter(nextgrid.api.pom.Process writer)
|
void |
reset()
|
void |
setAvailable(boolean available)
|
void |
waitAvailable()
|
java.util.concurrent.locks.Lock |
writeLock()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nextgrid.api.pom.Reference |
|---|
canCastFrom, canCastTo, castTo, getValue, getValueType, setValue |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public ReferenceSupport()
public ReferenceSupport(java.util.Set<nextgrid.api.pom.Process> readers,
java.util.Set<nextgrid.api.pom.Process> writers)
readers - A set to store reader processeswriters - A set to store writer processes| Method Detail |
|---|
public final void clearLinks()
clearLinks in interface nextgrid.api.pom.Reference<T>public final void dispose()
dispose in interface nextgrid.api.pom.Reference<T>public final void reset()
reset in interface nextgrid.api.pom.Reference<T>public final void addReader(nextgrid.api.pom.Process reader)
addReader in interface nextgrid.api.pom.Reference<T>public final void addWriter(nextgrid.api.pom.Process writer)
addWriter in interface nextgrid.api.pom.Reference<T>public final java.util.Set<nextgrid.api.pom.Process> getReaders()
getReaders in interface nextgrid.api.pom.Reference<T>public final java.util.Set<nextgrid.api.pom.Process> getWriters()
getWriters in interface nextgrid.api.pom.Reference<T>public final void removeReader(nextgrid.api.pom.Process reader)
removeReader in interface nextgrid.api.pom.Reference<T>public final void removeWriter(nextgrid.api.pom.Process writer)
removeWriter in interface nextgrid.api.pom.Reference<T>public java.util.concurrent.locks.Lock readLock()
readLock in interface nextgrid.api.pom.Reference<T>public java.util.concurrent.locks.Lock writeLock()
writeLock in interface nextgrid.api.pom.Reference<T>public boolean isAvailable()
isAvailable in interface nextgrid.api.pom.Reference<T>public void setAvailable(boolean available)
setAvailable in interface nextgrid.api.pom.Reference<T>
public void waitAvailable()
throws java.lang.InterruptedException
waitAvailable in interface nextgrid.api.pom.Reference<T>java.lang.InterruptedExceptionpublic ReferenceSupport<T> copy()
copy in interface nextgrid.api.pom.Reference<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||