org.sonar.server.platform
Class ServerImpl
java.lang.Object
org.sonar.api.platform.Server
org.sonar.server.platform.ServerImpl
- All Implemented Interfaces:
- BatchComponent, ServerComponent
public final class ServerImpl
- extends Server
ServerImpl
public ServerImpl(DatabaseSessionFactory dbSessionFactory)
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.