|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.core.Domain
Created Wed Mar 27 10:34:40 2002
This class describes a domain content.
Constructor Summary | |
Domain(java.lang.String name,
boolean verbose,
JasonEnv env)
|
Method Summary | |
void |
addDoor(java.lang.String name,
java.lang.String location,
java.lang.String _class)
Add a door for further services intergration. |
void |
addService(java.io.File location)
Add a single service location. |
ServiceContainer |
addService(java.lang.String location)
Add a single service location. |
void |
addService(java.lang.String location,
boolean start)
|
void |
addService(java.lang.String fileName,
byte[] service)
Add a service in its binary form |
void |
addServices(java.lang.String location)
Deprecated. Add a services location. This is typically another xml file |
java.lang.String |
getAdminPassword()
|
int |
getAdminPort()
|
java.lang.String |
getAdminUser()
|
java.lang.String |
getConfigurationFilePath()
|
DoorDataModel |
getDoorModel()
|
java.lang.String |
getLocation()
|
java.lang.String |
getLogLocation()
|
MessageHandler |
getMessageHandler()
|
ServiceContainerDataModel |
getModel()
|
java.lang.String |
getName()
|
ServiceContainer[] |
getServiceContainer()
|
Service[] |
getServices()
|
ServicesManager |
getServicesManager()
|
ThreadCapsule |
getThreadCapsule()
Return a thread capsule |
void |
init()
|
void |
initDefaultService()
Add default service as a part of the Domain |
boolean |
isLogAutoClean()
|
boolean |
isVerbose()
|
void |
overrideServiceProperty(java.lang.String location,
org.w3c.dom.Element service)
This method is used for overriding a set of property defined both in an external xml file and in the domain definition. |
void |
replaceServiceContainer(ServiceContainer oldSc,
ServiceContainer newSc)
Replace the old service container with the new one |
void |
run()
Start the domain and all tied services |
void |
sendErrorMessage(java.lang.String content)
|
void |
sendInformationMessage(java.lang.String content)
|
void |
sendWarningMessage(java.lang.String content)
|
int |
serviceContainerCount()
|
void |
setAdminPort(int adminPort)
set the port for administration of JAson, by default 8085 |
void |
setDoorModel(DoorDataModel model)
Reset the model for available door |
void |
setLocation(java.lang.String location)
Set the location of the configuration file |
void |
setLogAutoClean(boolean autoClean)
Set the log strategy. |
void |
setLogLocation(java.lang.String location)
Set the log location. |
void |
setMessageHandler(MessageHandler mh)
|
void |
setMessageHandler(java.lang.String cl)
Set the message handler. |
void |
setModel(ServiceContainerDataModel model)
Set the dataModel for available ServiceContainer object |
void |
stop()
Save the current domain state for the next running |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Domain(java.lang.String name, boolean verbose, JasonEnv env)
name
- Domain nameMethod Detail |
public java.lang.String getAdminUser()
public java.lang.String getAdminPassword()
public void setAdminPort(int adminPort)
public int getAdminPort()
public void setModel(ServiceContainerDataModel model)
ServiceContainer
object
public ServiceContainerDataModel getModel()
ServiceContainer
objectpublic void setDoorModel(DoorDataModel model)
public DoorDataModel getDoorModel()
public void initDefaultService()
public boolean isLogAutoClean()
public java.lang.String getLogLocation()
public void setLogAutoClean(boolean autoClean)
autoClean
- if true, it will delete when starting the logpublic void setLogLocation(java.lang.String location)
location
- a path for the log locationpublic void setLocation(java.lang.String location)
public java.lang.String getLocation()
public java.lang.String getConfigurationFilePath()
public boolean isVerbose()
public void init()
public ThreadCapsule getThreadCapsule()
public void run()
public void stop()
public void setMessageHandler(java.lang.String cl) throws JasonException
MessageHandler
interface.
cl
- a Class name
JasonException
public void addServices(java.lang.String location) throws JasonException
JasonException
public void addService(java.io.File location) throws JasonException
JasonException
public void addService(java.lang.String fileName, byte[] service) throws JasonException
JasonException
public ServiceContainer addService(java.lang.String location) throws JasonException
JasonException
public void addService(java.lang.String location, boolean start) throws JasonException
JasonException
public void replaceServiceContainer(ServiceContainer oldSc, ServiceContainer newSc)
public void addDoor(java.lang.String name, java.lang.String location, java.lang.String _class) throws JasonException
name
- name of the doorlocation
- location of the services_class
- can be equals to "", contains a Door class implementation
JasonException
public void overrideServiceProperty(java.lang.String location, org.w3c.dom.Element service) throws JasonException
service
- this is a service node with a location from a domain definition
JasonException
public ServicesManager getServicesManager()
public void setMessageHandler(MessageHandler mh)
public Service[] getServices()
public ServiceContainer[] getServiceContainer()
public int serviceContainerCount()
public java.lang.String getName()
public MessageHandler getMessageHandler()
public void sendErrorMessage(java.lang.String content)
public void sendWarningMessage(java.lang.String content)
public void sendInformationMessage(java.lang.String content)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |