|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.nodemap.affinity.BasicState
public class BasicState
A class to encapsulate the basic states required for
AffinityGroupFinder and AffinityGraphBuilder.
| Nested Class Summary | |
|---|---|
protected static class |
BasicState.State
Valid states. |
| Field Summary | |
|---|---|
protected BasicState.State |
state
The state. |
| Constructor Summary | |
|---|---|
BasicState()
|
|
| Method Summary | |
|---|---|
protected void |
checkForDisabledOrShutdownState()
Throws an IllegalStateException if we are in the SHUTDOWN or
DISABLED state. |
protected void |
checkForShutdownState()
Throws an IllegalStateException if we are in the SHUTDOWN
state. |
protected boolean |
setDisabledState()
Disable this component. |
protected boolean |
setEnabledState()
Enable this component. |
protected boolean |
setShutdownState()
Shutdown this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile BasicState.State state
| Constructor Detail |
|---|
public BasicState()
| Method Detail |
|---|
protected boolean setDisabledState()
true if the state has changedprotected boolean setEnabledState()
true if the state has changedprotected boolean setShutdownState()
true if the state has changedprotected void checkForShutdownState()
SHUTDOWN
state.
IllegalStateException - if we are stut downprotected void checkForDisabledOrShutdownState()
SHUTDOWN or
DISABLED state.
IllegalStateException - if we are shut down or disabled
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||