|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractDynamicMBean
com.admc.jamama.server.smtp.Server
SMTP Server. N.b.: This does not implement Router YET. Once SmtpRouter is well tested, need to merge that functionality into this class, or maybe have this class have a private field that holds an SmtpRouter instance or have this class extend SmtpRouter instead of AbstractDynamicMBean (the latter sounds best). SmtpRouter needs to be a separate class for users who don't want any SMTP Server functionality but who still need to route mail out via SMTP.
| Constructor Summary | |
Server()
|
|
| Method Summary | |
void |
configure(java.lang.Object inCfg)
Initialize the object's state with information in the given Jaxb object. |
protected MBeanAttributeInfo[] |
createMBeanAttributeInfo()
|
java.lang.Object |
getConfig()
Returns the Jaxb object used to configure this. |
int |
getConnectionCount()
|
java.lang.String[] |
getConnections()
|
Director |
getDirector()
|
java.lang.String |
getHostname()
|
int |
getMaxSessions()
|
protected java.lang.String |
getMBeanDescription()
|
java.lang.String |
getName()
Name which Jamama config file uses to identify this object instance. |
int |
getPort()
|
boolean |
getRun()
Say whether main thread of this Server is running. |
boolean |
isRun()
|
static void |
main(java.lang.String[] sa)
Just for testing. |
void |
restoreRunState()
Start up server iff server is configured to start automatically. |
void |
run()
Main thread |
void |
setDebug(boolean inDebug)
|
void |
setDirector(Director inDirector)
Sets the Director who actually does the Mit creation work. |
void |
setHostname(java.lang.String inHostname)
|
void |
setMaxSessions(int inMaxSess)
|
void |
setPort(int inPort)
|
void |
setRun(boolean inRun)
Start or stop the main thread in this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Server()
| Method Detail |
public boolean isRun()
Serverpublic int getMaxSessions()
public void setMaxSessions(int inMaxSess)
public boolean getRun()
Server
getRun in interface ServerServerpublic void restoreRunState()
Server
restoreRunState in interface ServerServerprotected MBeanAttributeInfo[] createMBeanAttributeInfo()
public int getConnectionCount()
public java.lang.String[] getConnections()
protected java.lang.String getMBeanDescription()
public static void main(java.lang.String[] sa)
throws java.lang.Exception
java.lang.Exceptionpublic void setHostname(java.lang.String inHostname)
public java.lang.String getHostname()
public void setPort(int inPort)
public int getPort()
public void setRun(boolean inRun)
Server
setRun in interface ServerinRun - true to start up thread; false to stop itServerpublic void run()
run in interface java.lang.Runnablepublic void configure(java.lang.Object inCfg)
Configurable
configure in interface ConfigurableinCfg - A Jaxb object corresponding to a XML document branch.Configurablepublic java.lang.String getName()
Configurable
getName in interface ConfigurableConfigurablepublic java.lang.Object getConfig()
Configurable
getConfig in interface ConfigurableConfigurablepublic void setDirector(Director inDirector)
MitGenerator
setDirector in interface MitGeneratorinDirector - MitGeneratorpublic Director getDirector()
getDirector in interface MitGeneratorpublic void setDebug(boolean inDebug)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||