|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.web.domain.ConnectionPoller
public class ConnectionPoller
Purpose: Periodically polls server groups for connection metrics.
Copyright 2006, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2006.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 09/15/2006 Nick Initial Release ============================================================================
| Field Summary | |
|---|---|
protected ChannelManager |
channelManager
|
protected MessageUtil |
messageUtil
|
protected TimerTask |
timerTask
|
protected Timer |
timerThread
|
protected long |
waitTime
|
| Constructor Summary | |
|---|---|
ConnectionPoller(ChannelManager manager,
long waitTime)
Constructor |
|
| Method Summary | |
|---|---|
void |
cancel()
Stops the scheduler |
protected void |
init()
|
void |
poll()
Polls all server groups. |
protected void |
pollChannel(String groupName,
Channel channel)
Poll a particular channel |
void |
start()
Start the scheduler to periodically poll server groups |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChannelManager channelManager
protected long waitTime
protected Timer timerThread
protected TimerTask timerTask
protected MessageUtil messageUtil
| Constructor Detail |
|---|
public ConnectionPoller(ChannelManager manager,
long waitTime)
manager - Channel managerwaitTime - Number of milliseconds between polling instances| Method Detail |
|---|
protected void init()
public void poll()
protected void pollChannel(String groupName,
Channel channel)
groupName - Name of the server group to be polledchannel - Channel to which request will be writtenpublic void start()
public void cancel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||