|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.Agent
com.cometway.ak.ServiceAgent
com.cometway.props.PropsListAgent
com.cometway.xml.XMLPropsList
public class XMLPropsList
| Field Summary | |
|---|---|
protected static boolean |
ALPHABETIZED_PROPS
|
protected static java.lang.String |
EOL
|
static java.lang.String |
MIME_TYPE
|
protected static java.text.SimpleDateFormat |
SDF
|
protected com.cometway.xml.XMLPropsList.ScheduledTask |
task
|
| Fields inherited from class com.cometway.props.PropsListAgent |
|---|
propsList |
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
XMLPropsList()
|
|
| Method Summary | |
|---|---|
void |
initProps()
Default properties: service_name = database (name this PropsList registers with the Service Manager). |
static java.util.Vector |
loadFromFile(java.lang.String filename)
Loads a Props List XML file into a Vector of Props. |
protected void |
loadPropsList()
|
static java.util.Vector |
parseInputStream(java.io.InputStream in)
Loads a Props List XML document into a Vector of Props. |
void |
savePropsList()
|
static void |
saveToFile(java.lang.String filename,
java.util.List propsList)
Saves a Vector of Props to a XML file. |
void |
start()
Creates a PropsChangeListener for this agent and registers with the Service Manager using service_name. |
void |
stop()
Unregister this agent with the Service Manager and sets internal state variables to null. |
static void |
write(java.io.Writer out,
java.util.List propsList)
Outputs a Vector of Props as XML using the specificed Writer. |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MIME_TYPE
protected static final boolean ALPHABETIZED_PROPS
protected static final java.lang.String EOL
protected static final java.text.SimpleDateFormat SDF
protected com.cometway.xml.XMLPropsList.ScheduledTask task
| Constructor Detail |
|---|
public XMLPropsList()
| Method Detail |
|---|
public void initProps()
PropsListAgentDefault properties: service_name = database (name this PropsList registers with the Service Manager).
initProps in interface AgentInterfaceinitProps in class PropsListAgentpublic void start()
PropsListAgent
start in interface AgentInterfacestart in class PropsListAgentpublic void stop()
PropsListAgent
stop in interface AgentInterfacestop in class PropsListAgentpublic void savePropsList()
protected void loadPropsList()
public static java.util.Vector parseInputStream(java.io.InputStream in)
throws XMLParserException
XMLParserException
public static java.util.Vector loadFromFile(java.lang.String filename)
throws PropsException
PropsException
public static void saveToFile(java.lang.String filename,
java.util.List propsList)
throws PropsException
PropsException
public static void write(java.io.Writer out,
java.util.List propsList)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||