Package com.ytec.jdap.test

Source Code of com.ytec.jdap.test.ReaderTest

/**
*
*/
package com.ytec.jdap.test;

import java.util.HashMap;
import java.util.Map;

import com.ytec.jdap.model.Application;
import com.ytec.jdap.model.Server;
import com.ytec.jdap.reader.impl.XmlReaderW3C;

/**
* <pre>
*  Title:
*  Description:
* </pre>
*
* @author CaiJiuFa
* @version 1.00.00
*
*          <pre>
*  �޸ļ�¼
*     �޸ĺ�汾:     �޸��ˣ�  �޸�����:     �޸�����:
* </pre>
*/
public class ReaderTest {

  /**
   * @param args
   */
  public static void main(String[] args) {

    XmlReaderW3C xmlReaderW3C = new XmlReaderW3C();

    Application application = new Application();
    Map<String, String> map = new HashMap<String, String>();
    map.put("jvm", "-Xms256m");
    map.put("port", "12888");
    application.setId(System.currentTimeMillis() + "");
    application.setName("MUSEһ������");
    application.setParams(map);

    // xmlReaderW3C.addApp(application);
    // xmlReaderW3C.removeApp(application);
    // List<Application> list = xmlReaderW3C.getAppList();
    // list.size();

    // Application app = xmlReaderW3C.getAppById("1344067790421");
    // app.getParams();

    Server server;
    try {
      server = xmlReaderW3C.getServer();
      server.getDeployPath();
    } catch (Exception e) {
    }
   
  }

}
TOP

Related Classes of com.ytec.jdap.test.ReaderTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.