com.partnersoft.staker.hub.commands
Class AsynchronousHubCommand

java.lang.Object
  extended by com.partnersoft.staker.hub.commands.AbstractHubCommand
      extended by com.partnersoft.staker.hub.commands.AsynchronousHubCommand
All Implemented Interfaces:
HubCommand
Direct Known Subclasses:
PostFromConfigManager, RestartHub, ShutdownHub

public abstract class AsynchronousHubCommand
extends AbstractHubCommand

Runs a command asynchronously in a separate thread. Good for shutdown commands etc. Returns immediately from runCommand(). Subclasses should not override runCommand() but instead implement runCommandImp().

Copyright 2008 Partner Software, Inc.


Constructor Summary
AsynchronousHubCommand()
           
AsynchronousHubCommand(java.lang.String user)
           
 
Method Summary
 void runCommand()
           
protected abstract  void runCommandImp()
           
 
Methods inherited from class com.partnersoft.staker.hub.commands.AbstractHubCommand
getUserName, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousHubCommand

public AsynchronousHubCommand()

AsynchronousHubCommand

public AsynchronousHubCommand(java.lang.String user)
Method Detail

runCommand

public void runCommand()
                throws java.lang.Exception
Throws:
java.lang.Exception

runCommandImp

protected abstract void runCommandImp()
                               throws java.lang.Exception
Throws:
java.lang.Exception