|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.nio.NioServerFactory<S,T>
S - the type safe enumeration of the states.T - the type safe enumeration of the state transitions.public abstract class NioServerFactory<S extends Enum<S>,T extends Enum<T>>
Instances of this class provide a mapping of enumerated values for states and transitions to the actual corresponding objects.
| Field Summary | |
|---|---|
static int |
R
A short name for read channel operations. |
static int |
RW
A short name for read and write channel operations. |
protected NioServer<S,T> |
server
The server for which this factory is intended. |
protected Map<S,NioState<T>> |
stateMap
Map of all states for a class server. |
protected Map<T,NioTransition<S>> |
transitionMap
Map of all states for a class server. |
static int |
W
A short name for wirte channel operations. |
| Constructor Summary | |
|---|---|
protected |
NioServerFactory(NioServer<S,T> server)
Initialize this factory with the specified server. |
| Method Summary | |
|---|---|
abstract Map<S,NioState<T>> |
createStateMap()
Create the map of all possible states. |
abstract Map<T,NioTransition<S>> |
createTransitionMap()
Create the map of all possible states. |
NioServer<S,T> |
getServer()
Get the server for which this factory is intended. |
NioState<T> |
getState(S name)
Get a state given its name. |
NioTransition<S> |
getTransition(T name)
Get a transition given its name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RW
public static final int R
public static final int W
protected Map<S extends Enum<S>,NioState<T extends Enum<T>>> stateMap
protected Map<T extends Enum<T>,NioTransition<S extends Enum<S>>> transitionMap
protected NioServer<S extends Enum<S>,T extends Enum<T>> server
| Constructor Detail |
|---|
protected NioServerFactory(NioServer<S,T> server)
server - the server for which to initialize.| Method Detail |
|---|
public abstract Map<S,NioState<T>> createStateMap()
public abstract Map<T,NioTransition<S>> createTransitionMap()
public NioState<T> getState(S name)
name - the name of the state to lookup.
NioState instance.public NioTransition<S> getTransition(T name)
name - the name of the transition to lookup.
NioTransition instance.public NioServer<S,T> getServer()
NioServer instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||