public interface Stack extends Wrapper
Stack must supported following wrapper classes: - Client API : PeerManager - Server API : PeerManager, OverloadManager (Network, PeerManagerWrapper is optional)
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy any resource append to this instance of stack
|
Dictionary |
getDictionary()
Return Dictionary instance
|
Logger |
getLogger()
Return logger instance.
|
MetaData |
getMetaData() |
<T extends BaseSession> |
getSession(String sessionId,
Class<T> clazz)
Return an existing session, if present
|
SessionFactory |
getSessionFactory()
Return SessionFactory instance
|
SessionFactory |
init(Configuration config)
Configuration stack and allocation system resources.
|
boolean |
isActive() |
void |
start()
Start activity of stack (Thread and Network connections), not
waiting switch ANY peer to OKEY state
|
void |
start(Mode mode,
long timeout,
TimeUnit unit)
Start activity of stack (Thread and Network connections),
waiting specified wait time switch peers to OKEY state.
|
void |
stop(long timeout,
TimeUnit unit,
int disconnectCause)
Stop any activity of stack (Thread and Network connections),
waiting if necessary up to the specified wait time switch peers to DOWN state.
|
isWrapperFor, unwrapSessionFactory init(Configuration config) throws IllegalDiameterStateException, InternalException
config - Object with configuration parametersIllegalDiameterStateException - if a stack already configured or destroyedInternalException - if a stack can not processing initial procedurevoid start()
throws IllegalDiameterStateException,
InternalException
IllegalDiameterStateException - if a stack is not configured or stoppedInternalException - if a stack can not processing start procedurevoid start(Mode mode, long timeout, TimeUnit unit) throws IllegalDiameterStateException, InternalException
mode - specified type of wait proceduretimeout - how long to wait before giving up, in units of unitunit - a TimeUnit determining how to interpret the timeout parameterIllegalDiameterStateException - if a stack is not configured or stoppedInternalException - if a stack can not processing start procedurevoid stop(long timeout,
TimeUnit unit,
int disconnectCause)
throws IllegalDiameterStateException,
InternalException
timeout - how long to wait before giving up, in units of unitunit - a TimeUnit determining how to interpret the timeout parameterdisconnectCause - the disconnect-cause to be used in the DPR message(s)IllegalDiameterStateException - if a stack is not startedInternalException - if a stack can not processing start procedurevoid destroy()
boolean isActive()
Logger getLogger()
SessionFactory getSessionFactory() throws IllegalDiameterStateException
IllegalDiameterStateException - if stack is not configuredDictionary getDictionary() throws IllegalDiameterStateException
IllegalDiameterStateException - if stack is not configuredMetaData getMetaData()
<T extends BaseSession> T getSession(String sessionId, Class<T> clazz) throws InternalException
sessionId - the session identifierclazz - the class of the session objectInternalException - if stack is not configuredCopyright © 2016. All Rights Reserved.