|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.client.impl.StackImpl
public class StackImpl
Use stack extension point
| Field Summary | |
|---|---|
protected IAssembler |
assembler
|
protected IConcurrentFactory |
concurrentFactory
|
protected Configuration |
config
|
protected java.util.concurrent.locks.Lock |
lock
|
protected IPeerTable |
peerManager
|
protected java.util.concurrent.ScheduledExecutorService |
scheduledFacility
Use for processing request time-out tasks (for all active peers) |
protected StackState |
state
|
| Constructor Summary | |
|---|---|
StackImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
addSessionListener(java.lang.String sessionId,
NetworkReqListener listener)
Add session listener |
|
java.lang.String |
configuration()
Return string representation of stack instanceconfiguration |
|
void |
destroy()
|
|
IAssembler |
getAssemblerFacility()
Return root IOC |
|
IConcurrentFactory |
getConcurrentFactory()
Return common concurrent factory |
|
Configuration |
getConfiguration()
Return configuration instance |
|
Dictionary |
getDictionary()
|
|
java.util.logging.Logger |
getLogger()
|
|
MetaData |
getMetaData()
|
|
java.util.concurrent.ScheduledExecutorService |
getScheduledFacility()
Return common Scheduled Executor Service |
|
|
getSession(java.lang.String sessionId,
java.lang.Class<T> clazz)
|
|
SessionFactory |
getSessionFactory()
|
|
StackState |
getState()
Return state of stack |
|
SessionFactory |
init(Configuration config)
|
|
boolean |
isActive()
Return true if stack is started |
|
boolean |
isWrapperFor(java.lang.Class<?> aClass)
|
|
java.lang.String |
metaData()
Return string representation of stack instance metadata |
|
java.lang.String |
peerDescription(java.lang.String name)
Reurn description (include state) of defined peer |
|
java.lang.String |
peerList()
Return list of peer |
|
void |
removeSessionListener(java.lang.String sessionId)
Remove session event listener by sessionId |
|
void |
sendMessage(IMessage message)
Send message |
|
void |
start()
Run startd procedure |
|
void |
start(Mode mode,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
|
|
void |
stop(int disconnectCause)
Run stop procedure |
|
void |
stop(long timeOut,
java.util.concurrent.TimeUnit timeUnit,
int disconnectCause)
|
|
|
unwrap(java.lang.Class<T> aClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IAssembler assembler
protected IConcurrentFactory concurrentFactory
protected Configuration config
protected IPeerTable peerManager
protected StackState state
protected java.util.concurrent.locks.Lock lock
protected java.util.concurrent.ScheduledExecutorService scheduledFacility
| Constructor Detail |
|---|
public StackImpl()
| Method Detail |
|---|
public SessionFactory init(Configuration config)
throws IllegalDiameterStateException,
InternalException
init in interface StackIllegalDiameterStateException
InternalException
public SessionFactory getSessionFactory()
throws IllegalDiameterStateException
getSessionFactory in interface StackIllegalDiameterStateException
public Dictionary getDictionary()
throws IllegalDiameterStateException
getDictionary in interface StackIllegalDiameterStateException
public void start()
throws IllegalDiameterStateException,
InternalException
StackImplMBean
start in interface Stackstart in interface StackImplMBeanIllegalDiameterStateException
InternalException
public void start(Mode mode,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws IllegalDiameterStateException,
InternalException
start in interface StackIllegalDiameterStateException
InternalException
public void stop(long timeOut,
java.util.concurrent.TimeUnit timeUnit,
int disconnectCause)
throws IllegalDiameterStateException,
InternalException
stop in interface StackIllegalDiameterStateException
InternalExceptionpublic void destroy()
destroy in interface Stackpublic boolean isActive()
StackImplMBean
isActive in interface StackisActive in interface StackImplMBeanpublic java.util.logging.Logger getLogger()
getLogger in interface Stackpublic MetaData getMetaData()
getMetaData in interface Stack
public <T extends BaseSession> T getSession(java.lang.String sessionId,
java.lang.Class<T> clazz)
throws InternalException
getSession in interface StackInternalException
public boolean isWrapperFor(java.lang.Class<?> aClass)
throws InternalException
isWrapperFor in interface WrapperInternalException
public <T> T unwrap(java.lang.Class<T> aClass)
throws InternalException
unwrap in interface WrapperInternalExceptionpublic StackState getState()
IContainer
getState in interface IContainerpublic Configuration getConfiguration()
IContainer
getConfiguration in interface IContainerpublic IAssembler getAssemblerFacility()
IContainer
getAssemblerFacility in interface IContainer
public void sendMessage(IMessage message)
throws RouteException,
AvpDataException,
IllegalDiameterStateException,
java.io.IOException
IContainer
sendMessage in interface IContainermessage - session instance
RouteException
AvpDataException
IllegalDiameterStateException
java.io.IOException
public void addSessionListener(java.lang.String sessionId,
NetworkReqListener listener)
IContainer
addSessionListener in interface IContainersessionId - session idlistener - listener instancepublic void removeSessionListener(java.lang.String sessionId)
IContainer
removeSessionListener in interface IContainersessionId - session identifierpublic java.util.concurrent.ScheduledExecutorService getScheduledFacility()
IContainer
getScheduledFacility in interface IContainerpublic IConcurrentFactory getConcurrentFactory()
IContainer
getConcurrentFactory in interface IContainerpublic java.lang.String configuration()
StackImplMBean
configuration in interface StackImplMBeanpublic java.lang.String metaData()
StackImplMBean
metaData in interface StackImplMBeanpublic java.lang.String peerDescription(java.lang.String name)
StackImplMBean
peerDescription in interface StackImplMBeanname - peer host name
public java.lang.String peerList()
StackImplMBean
peerList in interface StackImplMBeanpublic void stop(int disconnectCause)
StackImplMBean
stop in interface StackImplMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||