com.supermap.data
类 EducationLicense

java.lang.Object
  继承者 com.supermap.data.EducationLicense

已过时。 教育许可管理类型,用于登录和退出教育许可。该类位于com.supermap.data.cloudlicense.jar中。

public class EducationLicense
extends java.lang.Object

示例:
以下代码示范如何登录和退出教育版许可。
    public static void main(String[] args) {
        // 登录教育版许可
        EducationLicense.login();

        // 连接教育版许可中的许可模块,验证教育版许可获取是否成功,成功返回0
        License lic = new License();
        int code = lic.connect(10002);
        System.out.println("code = " + code);

        // 退出教育版许可
        EducationLicense.logout();

        // 再次连接许可模块,验证教育版许可是否已经无效,返回值应该为非0值
        code = lic.connect(10002);
        System.out.println("code = " + code);
        System.out.println("end");
    }
 

构造方法摘要
EducationLicense()
          已过时。  
 
方法摘要
static boolean isDebugEnable()
          已过时。 返回是否启用调试模式,true表示启用。
static boolean login()
          已过时。 登录教育版许可。
static boolean login(java.lang.String serverHost)
          已过时。 按照指定的服务器地址登录教育版许可。
static void logout()
          已过时。 退出教育版许可。
static void setAutoUpdateInterval(long milliseconds)
          已过时。 设置许可自动更新的时间间隔。
static void setDebugEnable(boolean isDebug)
          已过时。 设置是否启用调试模式,true表示启用。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

EducationLicense

public EducationLicense()
已过时。 
方法详细信息

login

public static boolean login()
已过时。 
登录教育版许可。

返回:
一个布尔值,指示是否登录成功,成功返回true;否则返回false。

login

public static boolean login(java.lang.String serverHost)
已过时。 
按照指定的服务器地址登录教育版许可。

参数:
serverHost - 指定的服务器地址。
返回:
一个布尔值,指示是否登录成功,成功返回true;否则返回false。

setAutoUpdateInterval

public static void setAutoUpdateInterval(long milliseconds)
已过时。 
设置许可自动更新的时间间隔。

参数:
milliseconds - 指定自动更新间隔的时间,单位为:毫秒。

logout

public static void logout()
已过时。 
退出教育版许可。


isDebugEnable

public static boolean isDebugEnable()
已过时。 
返回是否启用调试模式,true表示启用。

返回:
一个布尔值,指示是否启用调试模式,true表示启用。

setDebugEnable

public static void setDebugEnable(boolean isDebug)
已过时。 
设置是否启用调试模式,true表示启用。

参数:
isDebug - 一个布尔值,指示是否启用调试模式,true表示启用。