本文整理汇总了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>());
}
示例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
* <defaultDomain>: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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}