Class GetSessionsCountTask
- java.lang.Object
-
- org.jivesoftware.openfire.session.GetSessionsCountTask
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Integer>
public class GetSessionsCountTask extends Object implements ClusterTask<Integer>
Task that will be executed in cluster nodes to get the number of sessions hosted by the cluster node.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetSessionsCountTask()GetSessionsCountTask(Boolean authenticated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetResult()voidreadExternal(ObjectInput in)voidrun()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
GetSessionsCountTask
public GetSessionsCountTask()
-
GetSessionsCountTask
public GetSessionsCountTask(Boolean authenticated)
-
-
Method Detail
-
getResult
public Integer getResult()
- Specified by:
getResultin interfaceClusterTask<Integer>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-