org.livetribe.slp.api
Class StandardAgent

java.lang.Object
  extended by org.livetribe.slp.api.StandardAgent
All Implemented Interfaces:
Agent
Direct Known Subclasses:
StandardDirectoryAgent, StandardServiceAgent, StandardUserAgent

public abstract class StandardAgent
extends Object
implements Agent

Version:
$Rev$ $Date$

Field Summary
protected  Logger logger
           
 
Constructor Summary
StandardAgent()
           
 
Method Summary
protected abstract  void doStart()
           
protected abstract  void doStop()
           
 int getPort()
          Returns the SLP port.
 Scopes getScopes()
           
 boolean isRunning()
           
 void setPort(int port)
          Sets the SLP port.
 void setScopes(Scopes scopes)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Logger logger
Constructor Detail

StandardAgent

public StandardAgent()
Method Detail

getPort

public int getPort()
Returns the SLP port.

See Also:
setPort(int)

setPort

public void setPort(int port)
Sets the SLP port.

See Also:
getPort()

getScopes

public Scopes getScopes()

setScopes

public void setScopes(Scopes scopes)
Specified by:
setScopes in interface Agent

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Agent

start

public void start()
           throws Exception
Specified by:
start in interface Agent
Throws:
Exception

doStart

protected abstract void doStart()
                         throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Agent
Throws:
Exception

doStop

protected abstract void doStop()
                        throws Exception
Throws:
Exception


Copyright © 2006-2012 LiveTribe. All Rights Reserved.