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 Integer
getResult()
void
readExternal(ObjectInput in)
void
run()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
GetSessionsCountTask
public GetSessionsCountTask()
-
GetSessionsCountTask
public GetSessionsCountTask(Boolean authenticated)
-
-
Method Detail
-
getResult
public Integer getResult()
- Specified by:
getResult
in interfaceClusterTask<Integer>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-