当前位置: 首页>>代码示例>>Java>>正文


Java ServiceName类代码示例

本文整理汇总了Java中com.sun.jmx.defaults.ServiceName的典型用法代码示例。如果您正苦于以下问题:Java ServiceName类的具体用法?Java ServiceName怎么用?Java ServiceName使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceName类属于com.sun.jmx.defaults包,在下文中一共展示了ServiceName类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Repository

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Construct a new repository with the given default domain.
 */
public Repository(String domain, boolean fairLock) {
    lock = new ReentrantReadWriteLock(fairLock);

    domainTb = new HashMap<String,Map<String,NamedObject>>(5);

    if (domain != null && domain.length() != 0)
        this.domain = domain.intern(); // we use == domain later on...
    else
        this.domain = ServiceName.DOMAIN;

    // Creates a new hashtable for the default domain
    domainTb.put(this.domain, new HashMap<String,NamedObject>());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:Repository.java

示例2: preRegister

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Allows the m-let to perform any operations it needs before
 * being registered in the MBean server. If the ObjectName is
 * null, the m-let provides a default name for its registration
 * &lt;defaultDomain&gt;:type=MLet
 *
 * @param server The MBean server in which the m-let will be registered.
 * @param name The object name of the m-let.
 *
 * @return  The name of the m-let registered.
 *
 * @exception java.lang.Exception This exception should be caught by the MBean server and re-thrown
 *as an MBeanRegistrationException.
 */
public ObjectName preRegister(MBeanServer server, ObjectName name)
        throws Exception {

    // Initialize local pointer to the MBean server
    setMBeanServer(server);

    // If no name is specified return a default name for the MLet
    if (name == null) {
        name = new ObjectName(server.getDefaultDomain() + ":" + ServiceName.MLET);
    }

   this.mletObjectName = name;
   return this.mletObjectName;
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:29,代码来源:MLet.java

示例3: getSpecificationName

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Returns the full name of the JMX specification implemented
 * by this product.
 *
 * @return the specification name.
 */
public String getSpecificationName() {
    return ServiceName.JMX_SPEC_NAME;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:MBeanServerDelegate.java

示例4: getSpecificationVersion

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Returns the version of the JMX specification implemented
 * by this product.
 *
 * @return the specification version.
 */
public String getSpecificationVersion() {
    return ServiceName.JMX_SPEC_VERSION;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:MBeanServerDelegate.java

示例5: getSpecificationVendor

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Returns the vendor of the JMX specification implemented
 * by this product.
 *
 * @return the specification vendor.
 */
public String getSpecificationVendor() {
    return ServiceName.JMX_SPEC_VENDOR;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:MBeanServerDelegate.java

示例6: getImplementationName

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Returns the JMX implementation name (the name of this product).
 *
 * @return the implementation name.
 */
public String getImplementationName() {
    return ServiceName.JMX_IMPL_NAME;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:MBeanServerDelegate.java

示例7: getImplementationVendor

import com.sun.jmx.defaults.ServiceName; //导入依赖的package包/类
/**
 * Returns the JMX implementation vendor (the vendor of this product).
 *
 * @return the implementation vendor.
 */
public String getImplementationVendor()  {
    return ServiceName.JMX_IMPL_VENDOR;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:MBeanServerDelegate.java


注:本文中的com.sun.jmx.defaults.ServiceName类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。