本文整理了Java中org.fabric3.api.annotation.management.ManagementOperation.<init>()
方法的一些代码示例,展示了ManagementOperation.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ManagementOperation.<init>()
方法的具体详情如下:
包路径:org.fabric3.api.annotation.management.ManagementOperation
类名称:ManagementOperation
方法名:<init>
暂无
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-jms
/**
* Returns true if the container is active.
*
* @return true if the container is active
*/
@ManagementOperation(description = "True if the container is initialized")
public boolean isInitialized() {
synchronized (syncMonitor) {
return initialized;
}
}
代码示例来源:origin: com.carecon.fabric3/fabric3-fabric
@ManagementOperation(type = POST, description = "Resume receiving requests for all transports")
public void resumeAll() {
transports.values().forEach(Transport::resume);
}
}
代码示例来源:origin: org.fabric3/fabric3-fabric
@ManagementOperation(type = POST, description = "Resume receiving requests for all transports")
public void resumeAll() {
transports.values().forEach(Transport::resume);
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@ManagementOperation(description = "The statistics sampling period in milliseconds")
public long getStatsOnMs() {
long ended = statsEndedAt.get();
if (ended != -1) {
return ended - statsStartedAt.get();
}
return System.currentTimeMillis() - statsStartedAt.get();
}
代码示例来源:origin: org.fabric3/fabric3-jetty
@ManagementOperation(description = "The statistics sampling period in milliseconds")
public long getStatsOnMs() {
long ended = statsEndedAt.get();
if (ended != -1) {
return ended - statsStartedAt.get();
}
return System.currentTimeMillis() - statsStartedAt.get();
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@Override
@ManagementOperation(description = "The length of time after which a cookie should be refreshed in seconds")
public int getRefreshCookieAge() {
return super.getRefreshCookieAge();
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@Override
@ManagementOperation(description = "The total amount of time all sessions remained valid")
public long getSessionTimeTotal() {
return super.getSessionTimeTotal();
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@Override
@ManagementOperation(description = "Servlet availability")
public boolean isAvailable() {
return super.isAvailable();
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@ManagementOperation(description = "Starts statistics collection")
public void startStatisticsCollection() {
statsReset();
enabled.set(true);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-monitor
@ManagementOperation(description = "Sets the monitoring level for a provider")
public void setProviderLevel(String key, String level) {
MonitorLevel parsed = MonitorLevel.valueOf(level.toUpperCase());
providerLevels.put(key, parsed);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-thread-pool
@ManagementOperation(description = "Returns the remaining capacity the receive queue has before additional work will be rejected")
public int getRemainingCapacity() {
return queue.remainingCapacity();
}
public RuntimeThreadPoolExecutor(@Monitor ExecutorMonitor monitor) {
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-jms
/**
* Returns if durable topic subscriptions will be used.
*
* @return true if durable topic subscriptions will be used
*/
@ManagementOperation(description = "If durable topic subscriptions are used")
public boolean isDurable() {
return connectionManager.isDurable();
}
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-zeromq
@ManagementOperation(type = OperationType.POST)
public void stop() {
try {
receiver.stop();
} finally {
receiver = null;
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq
@ManagementOperation(type = OperationType.POST)
public void stop() {
try {
receiver.stop();
} finally {
receiver = null;
}
}
代码示例来源:origin: org.fabric3/fabric3-jetty
@Override
@ManagementOperation(description = "Session scavenger period in seconds")
public int getScavengePeriod() {
return super.getScavengePeriod();
}
代码示例来源:origin: org.fabric3/fabric3-thread-pool
@ManagementOperation(description = "Thread keep alive time in milliseconds")
@Property(required = false)
@Source("$systemConfig//f3:thread.pool/@keepAliveTime")
public void setKeepAliveTime(long keepAliveTime) {
if (keepAliveTime < 0) {
throw new IllegalArgumentException("Keep alive time must be greater than or equal to 0");
}
this.keepAliveTime = keepAliveTime;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-fabric
@ManagementOperation(type = DELETE, description = "Suspend a transport from receiving requests")
public void suspend(String name) {
Transport transport = transports.get(name);
if (transport == null) {
monitor.transportNotFound(name);
return;
}
transport.suspend();
}
代码示例来源:origin: com.carecon.fabric3/fabric3-thread-pool
@ManagementOperation(description = "Thread keep alive time in milliseconds")
@Property(required = false)
@Source("$systemConfig//f3:thread.pool/@keepAliveTime")
public void setKeepAliveTime(long keepAliveTime) {
if (keepAliveTime < 0) {
throw new IllegalArgumentException("Keep alive time must be greater than or equal to 0");
}
this.keepAliveTime = keepAliveTime;
}
代码示例来源:origin: org.fabric3/fabric3-atomikos
@ManagementOperation(description = "Sets the connection pool minimum and maximum size")
public void setPoolSize(int poolSize) {
delegate.setMinPoolSize(poolSize);
delegate.setMaxPoolSize(poolSize);
}
代码示例来源:origin: org.codehaus.fabric3.standalone/fabric3-standalone-admin
@ManagementOperation(description = "Removes a contribution")
public void remove(URI uri) throws ContributionRemoveException {
try {
contributionService.remove(uri);
} catch (ContributionException e) {
monitor.error("Error removing contribution: " + uri, e);
// don't rethrow the original exception since the class will not be available on the client's classpath
throw new ContributionRemoveException(getErrorMessage(e));
}
}
内容来源于网络,如有侵权,请联系作者删除!