net.sourceforge.cruisecontrol.publishers
Class SocketPublisher
java.lang.Object
net.sourceforge.cruisecontrol.publishers.SocketPublisher
- All Implemented Interfaces:
- Publisher, java.io.Serializable
- public class SocketPublisher
- extends java.lang.Object
- implements Publisher
- Author:
- Darren Cotterill
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketPublisher
public SocketPublisher()
SocketPublisher
public SocketPublisher(SocketFactory sf)
validate
public void validate()
throws CruiseControlException
- Description copied from interface:
Publisher
- Called after the configuration is read to make sure that all the mandatory parameters
were specified..
- Specified by:
validate
in interface Publisher
- Throws:
CruiseControlException
- if there was a configuration error.
publish
public void publish(org.jdom.Element cruisecontrolLog)
throws CruiseControlException
- Description copied from interface:
Publisher
- Define the publishing.
- Specified by:
publish
in interface Publisher
- Parameters:
cruisecontrolLog
- JDOM Element representation of the main cruisecontrol build log
- Throws:
CruiseControlException
getBuildResultRepresentationFor
protected java.lang.String getBuildResultRepresentationFor(XMLLogHelper helper)
throws CruiseControlException
- Throws:
CruiseControlException
writeToSocket
protected void writeToSocket(java.lang.String result)
throws java.io.IOException
- Throws:
java.io.IOException
getSocketServer
public java.lang.String getSocketServer()
setSocketServer
public void setSocketServer(java.lang.String port)
getPort
public int getPort()
setPort
public void setPort(int port)
setPort
public void setPort(java.lang.String port)
setSendProjectName
public void setSendProjectName(boolean state)
setSendFixed
public void setSendFixed(boolean state)