Package org.apache.hop.www
Class HopServerConfig
- java.lang.Object
-
- org.apache.hop.www.HopServerConfig
-
-
Field Summary
Fields Modifier and Type Field Description static StringXML_METADATA_FOLDERstatic StringXML_TAGstatic StringXML_TAG_ACCEPT_QUEUE_SIZEstatic StringXML_TAG_ACCEPTORSstatic StringXML_TAG_JETTY_OPTIONSstatic StringXML_TAG_LOW_RES_MAX_IDLE_TIME
-
Constructor Summary
Constructors Constructor Description HopServerConfig()HopServerConfig(String hostname, int port, boolean joining)HopServerConfig(ILogChannel log, Node node)HopServerConfig(HopServer hopServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilename()HopServergetHopServer()intgetMaxLogLines()intgetMaxLogTimeoutMinutes()StringgetMetadataFolder()Gets metadataFolderMultiMetadataProvidergetMetadataProvider()Gets metadataProviderintgetObjectTimeoutMinutes()StringgetPasswordFile()IVariablesgetVariables()Gets variablesStringgetXml(IVariables variables)booleanisJoining()protected Map<String,String>parseJettyOptions(Node node)Read and parse jetty optionsvoidsetFilename(String filename)voidsetHopServer(HopServer hopServer)voidsetJoining(boolean joining)voidsetMaxLogLines(int maxLogLines)voidsetMaxLogTimeoutMinutes(int maxLogTimeoutMinutes)voidsetMetadataFolder(String metadataFolder)voidsetMetadataProvider(MultiMetadataProvider metadataProvider)voidsetObjectTimeoutMinutes(int objectTimeoutMinutes)voidsetPasswordFile(String passwordFile)protected voidsetUpJettyOptions(Node node)Set up jetty options to the system propertiesvoidsetVariables(IVariables variables)
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
XML_TAG_JETTY_OPTIONS
public static final String XML_TAG_JETTY_OPTIONS
- See Also:
- Constant Field Values
-
XML_TAG_ACCEPTORS
public static final String XML_TAG_ACCEPTORS
- See Also:
- Constant Field Values
-
XML_TAG_ACCEPT_QUEUE_SIZE
public static final String XML_TAG_ACCEPT_QUEUE_SIZE
- See Also:
- Constant Field Values
-
XML_TAG_LOW_RES_MAX_IDLE_TIME
public static final String XML_TAG_LOW_RES_MAX_IDLE_TIME
- See Also:
- Constant Field Values
-
XML_METADATA_FOLDER
public static final String XML_METADATA_FOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HopServerConfig
public HopServerConfig()
-
HopServerConfig
public HopServerConfig(HopServer hopServer)
-
HopServerConfig
public HopServerConfig(ILogChannel log, Node node)
-
HopServerConfig
public HopServerConfig(String hostname, int port, boolean joining)
-
-
Method Detail
-
getXml
public String getXml(IVariables variables)
-
setUpJettyOptions
protected void setUpJettyOptions(Node node)
Set up jetty options to the system properties- Parameters:
node- The node to read settings from
-
parseJettyOptions
protected Map<String,String> parseJettyOptions(Node node)
Read and parse jetty options- Parameters:
node- that contains jetty options nodes- Returns:
- map of not empty jetty options
-
getHopServer
public HopServer getHopServer()
- Returns:
- the hop server.
The user name and password defined in here are used to contact this server by the masters.
-
setHopServer
public void setHopServer(HopServer hopServer)
- Parameters:
hopServer- the hop server details to set.
The user name and password defined in here are used to contact this server by the masters.
-
isJoining
public boolean isJoining()
- Returns:
- true if the webserver needs to join with the webserver threads (wait/block until finished)
-
setJoining
public void setJoining(boolean joining)
- Parameters:
joining- Set to true if the webserver needs to join with the webserver threads (wait/block until finished)
-
getMaxLogLines
public int getMaxLogLines()
- Returns:
- the maxLogLines
-
setMaxLogLines
public void setMaxLogLines(int maxLogLines)
- Parameters:
maxLogLines- the maxLogLines to set
-
getMaxLogTimeoutMinutes
public int getMaxLogTimeoutMinutes()
- Returns:
- the maxLogTimeoutMinutes
-
setMaxLogTimeoutMinutes
public void setMaxLogTimeoutMinutes(int maxLogTimeoutMinutes)
- Parameters:
maxLogTimeoutMinutes- the maxLogTimeoutMinutes to set
-
getObjectTimeoutMinutes
public int getObjectTimeoutMinutes()
- Returns:
- the objectTimeoutMinutes
-
setObjectTimeoutMinutes
public void setObjectTimeoutMinutes(int objectTimeoutMinutes)
- Parameters:
objectTimeoutMinutes- the objectTimeoutMinutes to set
-
getFilename
public String getFilename()
- Returns:
- the filename
-
setFilename
public void setFilename(String filename)
- Parameters:
filename- the filename to set
-
getPasswordFile
public String getPasswordFile()
-
setPasswordFile
public void setPasswordFile(String passwordFile)
-
getVariables
public IVariables getVariables()
Gets variables- Returns:
- value of variables
-
setVariables
public void setVariables(IVariables variables)
- Parameters:
variables- The variables to set
-
getMetadataFolder
public String getMetadataFolder()
Gets metadataFolder- Returns:
- value of metadataFolder
-
setMetadataFolder
public void setMetadataFolder(String metadataFolder)
- Parameters:
metadataFolder- The metadataFolder to set
-
getMetadataProvider
public MultiMetadataProvider getMetadataProvider()
Gets metadataProvider- Returns:
- value of metadataProvider
-
setMetadataProvider
public void setMetadataProvider(MultiMetadataProvider metadataProvider)
- Parameters:
metadataProvider- The metadataProvider to set
-
-