org.apache.catalina.Manager.getActiveSessions()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中org.apache.catalina.Manager.getActiveSessions()方法的一些代码示例,展示了Manager.getActiveSessions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Manager.getActiveSessions()方法的具体详情如下:
包路径:org.apache.catalina.Manager
类名称:Manager
方法名:getActiveSessions

Manager.getActiveSessions介绍

[英]Gets the number of currently active sessions.
[中]获取当前活动会话的数目。

代码示例

代码示例来源:origin: org.jboss.mod_cluster/mod_cluster

/**
* {@inheritDoc}
* @see org.jboss.modcluster.Context#getActiveSessionCount()
*/
public int getActiveSessionCount()
{
 return this.context.getManager().getActiveSessions();
}

代码示例来源:origin: modcluster/mod_cluster

@Override
public int getActiveSessionCount() {
  return this.context.getManager().getActiveSessions();
}

代码示例来源:origin: modcluster/mod_cluster

@Test
public void getActiveSessionCount() {
  Manager manager = mock(Manager.class);
  when(this.context.getManager()).thenReturn(manager);
  when(manager.getActiveSessions()).thenReturn(10);
  int result = this.catalinaContext.getActiveSessionCount();
  assertEquals(10, result);
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

sessionCount = ((DistributedManager) manager).getActiveSessionsFull();
} else {
  sessionCount = manager.getActiveSessions();

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

sessionCount = ((DistributedManager) manager).getActiveSessionsFull();
} else {
  sessionCount = manager.getActiveSessions();

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

manager).getActiveSessionsFull();
} else {
  sessionCount = manager.getActiveSessions();

代码示例来源:origin: codefollower/Tomcat-Research

manager).getActiveSessionsFull();
} else {
  sessionCount = manager.getActiveSessions();

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

((DistributedManager)manager).getActiveSessionsFull());
} else if (ctxt.getManager() != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

((DistributedManager)manager).getActiveSessionsFull());
} else if (ctxt.getManager() != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

((DistributedManager)manager).getActiveSessionsFull());
} else if (manager != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

((DistributedManager)manager).getActiveSessionsFull());
} else if (ctxt.getManager() != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: codefollower/Tomcat-Research

((DistributedManager)manager).getActiveSessionsFull());
} else if (manager != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

((DistributedManager)manager).getActiveSessionsFull());
} else if (ctxt.getManager() != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

((DistributedManager)manager).getActiveSessionsFull());
} else if (ctxt.getManager() != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

((DistributedManager)manager).getActiveSessionsFull());
} else if (manager != null){
  args[5] = Integer.valueOf(manager.getActiveSessions());
} else {
  args[5] = Integer.valueOf(0);

相关文章