本文整理汇总了Java中com.adobe.granite.jmx.annotation.Name类的典型用法代码示例。如果您正苦于以下问题:Java Name类的具体用法?Java Name怎么用?Java Name使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Name类属于com.adobe.granite.jmx.annotation包,在下文中一共展示了Name类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: abort
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Override
public void abort(@Name(value = "ID") String id) throws MBeanException {
ReplicationInfo replicationInfo = this.replicationInfo.get(id);
if (replicationInfo == null) {
throw new MBeanException(new IllegalArgumentException("Could not locate replication with ID [ " + id + " ] so nothing to abort."));
}
if (!Status.COMPLETE.equals(replicationInfo.getStatus())) {
replicationInfo.setStatus(Status.ABORT);
}
}
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-samples,代码行数:12,代码来源:SampleContentReplicationHarnessImpl.java
示例2: getReferences
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Override
@Description("Gets all of the service references for the specified resource type")
public TabularData getReferences(@Name("ResourceType") String resourceType)
throws OpenDataException {
List<ServiceReference> references = ((ComponentBindingsProviderFactoryImpl) componentBindingsProviderFactory)
.getReferences(resourceType);
String[] itemNames = { Constants.SERVICE_PID,
ComponentBindingsProvider.PRIORITY,
ComponentBindingsProvider.RESOURCE_TYPE_PROP };
String[] itemDescriptions = { "The Service ID",
"The Priority on which the binding service will be called",
"The resource types this service will bind to" };
OpenType<?>[] itemTypes = { SimpleType.STRING, SimpleType.STRING,
SimpleType.STRING };
CompositeType snapshotType = new CompositeType("references",
"References", itemNames, itemDescriptions, itemTypes);
TabularType quoteTableType = new TabularType("references",
"References", snapshotType,
new String[] { Constants.SERVICE_PID });
TabularData td = new TabularDataSupport(quoteTableType);
for (ServiceReference reference : references) {
Map<String, Object> data = new HashMap<String, Object>();
for (String itemName : itemNames) {
if (reference.getProperty(itemName) instanceof String[]) {
data.put(itemName, Arrays.toString((String[]) reference
.getProperty(itemName)));
} else {
data.put(itemName, reference.getProperty(itemName));
}
}
td.put(new CompositeDataSupport(snapshotType, data));
}
return td;
}
开发者ID:SixDimensions,项目名称:Component-Bindings-Provider,代码行数:36,代码来源:ComponentBindingsProviderFactoryMBeanImpl.java
示例3: activate
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Activate the results of the query as synchronous and without versions")
void activate(@Name(value="xpath, JCR-SQL, JCR-SQL2")String queryLanguage,
@Name(value="Query statement")String query);
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-samples,代码行数:4,代码来源:SampleContentReplicationHarness.java
示例4: setThrottle
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Set the Throttle and throttle Batch size")
void setThrottle(@Name(value="Throttle in milliseconds")int throttle,
@Name(value="Throttle batch size")int batchSize);
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-samples,代码行数:4,代码来源:SampleContentReplicationHarness.java
示例5: abort
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Aborts the replication. See the Replication Statistics for ID")
void abort(@Name(value="ID")String id) throws MBeanException;
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-samples,代码行数:3,代码来源:SampleContentReplicationHarness.java
示例6: setMessage
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Set the message")
void setMessage(@Name(value="New Message") String message);
示例7: haltProcessById
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Halt process by id")
void haltProcessById(@Name("ID") @Description("Process ID") String id);
示例8: haltProcessByPath
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Halt process by JCR path")
void haltProcessByPath(@Name("Path") @Description("Process Path") String path);
示例9: size
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Change thread pool size (preserves running queue)")
public void setThreadPoolSize(@Name("New size") @Description("4 is the suggested default.") int size);
示例10: ensurePrincipalName
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Execute all Ensure Service User configurations for the provided principal name")
void ensurePrincipalName(@Name(value="Principal Name")String principalName);
示例11: getCacheEntry
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
@Description("Cache entry contents by key.")
String getCacheEntry(@Name(value="Cache Key") String cacheKeyStr) throws Exception;
示例12: ensureAll
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
/**
* Applies all un-applied Ensure Oak Index definitions.
* @param force true to re-apply Ensure Oak Indexes that have been marked as applied, false to skip.
* @return the number of ensure oak indexes processed
*/
@Description("Ensure all Ensure Oak Index Definitions")
int ensureAll(@Name(value="force") boolean force);
示例13: ensure
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
/**
* Applies un-applied Ensure Oak Index definitions whose ensure-definition.path @Property is a parameter.
* @param force true to re-apply Ensure Oak Indexes that have been marked as applied, false to skip.
* @param ensureDefinitionsPath the path of the Ensure Oak Index Definitions to apply.
* @return the number of ensure oak indexes processed
*/
@Description("Ensure select Ensure Oak Index Definitions")
int ensure(@Name(value="force") boolean force,
@Name(value="ensureDefinitionsPath") String ensureDefinitionsPath);
示例14: getReferences
import com.adobe.granite.jmx.annotation.Name; //导入依赖的package包/类
/**
* Gets all of the service references of the Component Bindings Providers
* for the specified resource
*
* @param resourceType
* the resource type for which to retrieves the references
* @return
* @throws OpenDataException
*/
@Description("Gets all of the service references of the Component Bindings Providers for the specified resource")
TabularData getReferences(@Name("ResourceType") String resourceType)
throws OpenDataException;
开发者ID:SixDimensions,项目名称:Component-Bindings-Provider,代码行数:13,代码来源:ComponentBindingsProviderFactoryMBean.java