• 大小: 1.09MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-30
  • 语言: Java
  • 标签: mqtt  java  eclipse  

资源简介

很出名mqtt的开源代码, 这个是java版本。目前支持mqtt3.1.1版本。自测完美。

资源截图

代码片段和文件信息

/*******************************************************************************
 * Copyright (c) 2012 Eurotech Inc. All rights reserved.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Eclipse Distribution License v1.0 which accompany this distribution. 
 *
 * The Eclipse Public License is available at 
 *    http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at 
 *   http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * Contributors:
 *    Chad Kienle
 */

package org.eclipse.paho.client.eclipse.view;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
 * The activator class controls the plug-in life cycle
 */
public class Activator extends AbstractUIPlugin {

// The plug-in ID
public static final String PLUGIN_ID = “org.eclipse.paho.client.eclipse.view“;

// The shared instance
private static Activator plugin;

/**
 * The constructor
 */
public Activator() {
}

/*
 * (non-Javadoc)
 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
 */
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}

/*
 * (non-Javadoc)
 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
 */
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}

/**
 * Returns the shared instance
 *
 * @return the shared instance
 */
public static Activator getDefault() {
return plugin;
}

/**
 * Returns an image descriptor for the image file at the given
 * plug-in relative path
 *
 * @param path the path
 * @return the image descriptor
 */
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID path);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\.github\
     文件         430  2018-04-17 08:57  paho.mqtt.java-master\.github\ISSUE_TEMPLATE.md
     文件         684  2018-04-17 08:57  paho.mqtt.java-master\.github\PULL_REQUEST_TEMPLATE.md
     文件         733  2018-04-17 08:57  paho.mqtt.java-master\.gitignore
     文件         504  2018-04-17 08:57  paho.mqtt.java-master\.travis.yml
     文件        1810  2018-04-17 08:57  paho.mqtt.java-master\CODE_OF_CONDUCT.md
     文件        3633  2018-04-17 08:57  paho.mqtt.java-master\CONTRIBUTING.md
     文件        6234  2018-04-17 08:57  paho.mqtt.java-master\README.md
     文件        1605  2018-04-17 08:57  paho.mqtt.java-master\about.html
     文件        1564  2018-04-17 08:57  paho.mqtt.java-master\edl-v10
     文件       11232  2018-04-17 08:57  paho.mqtt.java-master\epl-v10
     文件        9230  2018-04-17 08:57  paho.mqtt.java-master\notice.html
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\
     文件         127  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\build.properties
     文件       15551  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\epl-v10.html
     文件        9765  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\feature.properties
     文件         656  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\feature.xml
     文件        9230  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\license.html
     文件         644  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.feature\pom.xml
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\
     文件          20  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\.gitignore
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\meta-INF\
     文件         491  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\meta-INF\MANIFEST.MF
     文件        3928  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\README.md
     文件         430  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\build.properties
     目录           0  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\icons\
     文件        1602  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\icons\mqtt_view.png
     文件        7253  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\icons\paho.png
     文件         506  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\plugin.properties
     文件         426  2018-04-17 08:57  paho.mqtt.java-master\org.eclipse.paho.client.eclipse.view\plugin.xml
............此处省略619个文件信息

评论

共有 条评论