org.sonar.server.platform
Class ServerImpl

java.lang.Object
  extended by org.sonar.api.platform.Server
      extended by org.sonar.server.platform.ServerImpl
All Implemented Interfaces:
BatchComponent, ServerComponent

public final class ServerImpl
extends Server


Constructor Summary
ServerImpl(DatabaseSessionFactory dbSessionFactory)
           
 
Method Summary
 boolean equals(Object o)
           
 String getId()
           
 String getPermanentServerId()
           
 Date getStartedAt()
           
 String getURL()
           
 String getVersion()
           
 int hashCode()
           
protected static String readVersion(InputStream pomFileStream)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerImpl

public ServerImpl(DatabaseSessionFactory dbSessionFactory)
Method Detail

start

public void start()

getPermanentServerId

public String getPermanentServerId()
Specified by:
getPermanentServerId in class Server

getId

public String getId()
Specified by:
getId in class Server

getVersion

public String getVersion()
Specified by:
getVersion in class Server

getStartedAt

public Date getStartedAt()
Specified by:
getStartedAt in class Server

readVersion

protected static String readVersion(InputStream pomFileStream)
                             throws IOException
Throws:
IOException

getURL

public String getURL()
Specified by:
getURL in class Server
Returns:
the server URL when executed from batch, else null.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.