|
||||||||||
| 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 org.jdiameter.api.Configuration |
config
|
protected java.util.concurrent.locks.Lock |
lock
|
protected java.util.logging.Logger |
logger
|
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,
org.jdiameter.api.NetworkReqListener listener)
Add session listener |
|
java.lang.String |
configuration()
Return string representation of stack instanceconfiguration |
|
void |
destroy()
|
|
IAssembler |
getAssemblerFacility()
Return root IOC |
|
org.jdiameter.api.Configuration |
getConfiguration()
Return configuration instance |
|
java.util.logging.Logger |
getLogger()
|
|
org.jdiameter.api.MetaData |
getMetaData()
|
|
java.lang.String |
getRootLogLevel()
Return root(Stack) log level value |
|
java.util.concurrent.ScheduledExecutorService |
getScheduledFacility()
Return common Scheduled Executor Service |
|
org.jdiameter.api.SessionFactory |
getSessionFactory()
|
|
StackState |
getState()
Return state of stack |
|
org.jdiameter.api.SessionFactory |
init(org.jdiameter.api.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 messahe |
|
void |
setRootLogLevel(java.lang.String level)
Set log level on root(Stack) logger |
|
void |
start()
Run startd procedure |
|
void |
start(org.jdiameter.api.Mode mode,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
|
|
void |
stop()
Run stop procedure |
|
void |
stop(long timeOut,
java.util.concurrent.TimeUnit timeUnit)
|
|
|
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 java.util.logging.Logger logger
protected IAssembler assembler
protected org.jdiameter.api.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 org.jdiameter.api.SessionFactory init(org.jdiameter.api.Configuration config)
throws org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.InternalException
init in interface org.jdiameter.api.Stackorg.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.InternalException
public org.jdiameter.api.SessionFactory getSessionFactory()
throws org.jdiameter.api.IllegalDiameterStateException
getSessionFactory in interface org.jdiameter.api.Stackorg.jdiameter.api.IllegalDiameterStateException
public void start()
throws org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.InternalException
StackImplMBean
start in interface org.jdiameter.api.Stackstart in interface StackImplMBeanorg.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.InternalException
public void start(org.jdiameter.api.Mode mode,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.InternalException
start in interface org.jdiameter.api.Stackorg.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.InternalException
public void stop(long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.InternalException
stop in interface org.jdiameter.api.Stackorg.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.InternalExceptionpublic void destroy()
destroy in interface org.jdiameter.api.Stackpublic boolean isActive()
StackImplMBean
isActive in interface org.jdiameter.api.StackisActive in interface StackImplMBeanpublic java.util.logging.Logger getLogger()
getLogger in interface org.jdiameter.api.Stackpublic org.jdiameter.api.MetaData getMetaData()
getMetaData in interface org.jdiameter.api.Stack
public boolean isWrapperFor(java.lang.Class<?> aClass)
throws org.jdiameter.api.InternalException
isWrapperFor in interface org.jdiameter.api.Wrapperorg.jdiameter.api.InternalException
public <T> T unwrap(java.lang.Class<T> aClass)
throws org.jdiameter.api.InternalException
unwrap in interface org.jdiameter.api.Wrapperorg.jdiameter.api.InternalExceptionpublic StackState getState()
IContainer
getState in interface IContainerpublic org.jdiameter.api.Configuration getConfiguration()
IContainer
getConfiguration in interface IContainerpublic IAssembler getAssemblerFacility()
IContainer
getAssemblerFacility in interface IContainer
public void sendMessage(IMessage message)
throws org.jdiameter.api.RouteException,
org.jdiameter.api.AvpDataException,
org.jdiameter.api.IllegalDiameterStateException,
java.io.IOException
IContainer
sendMessage in interface IContainermessage - session instance
org.jdiameter.api.RouteException
org.jdiameter.api.AvpDataException
org.jdiameter.api.IllegalDiameterStateException
java.io.IOException
public void addSessionListener(java.lang.String sessionId,
org.jdiameter.api.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 java.lang.String getRootLogLevel()
StackImplMBean
getRootLogLevel in interface StackImplMBeanpublic void setRootLogLevel(java.lang.String level)
StackImplMBean
setRootLogLevel in interface StackImplMBeanlevel - llevel namepublic 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()
StackImplMBean
stop in interface StackImplMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||