@Test public void testDoNotSetUpJettyOptionsAsSystemParameters_WhenEmptyOptionsNode() throws KettleXMLException { Node configNode = getConfigNode( getConfigWithEmptyOptionsNode() ); slServerConfig.setUpJettyOptions( configNode ); assertFalse( "There should not be any jetty option but it is here: " + EXPECTED_ACCEPTORS_KEY, System .getProperties().containsKey( EXPECTED_ACCEPTORS_KEY ) ); assertFalse( "There should not be any jetty option but it is here: " + EXPECTED_ACCEPT_QUEUE_SIZE_KEY, System .getProperties().containsKey( EXPECTED_ACCEPT_QUEUE_SIZE_KEY ) ); assertFalse( "There should not be any jetty option but it is here: " + EXPECTED_LOW_RES_MAX_IDLE_TIME_KEY, System .getProperties().containsKey( EXPECTED_LOW_RES_MAX_IDLE_TIME_KEY ) ); }
protected void setUpJettyOptions( Node node ) { Map<String, String> jettyOptions = parseJettyOptions( node ); if ( jettyOptions != null && jettyOptions.size() > 0 ) { for ( Entry<String, String> jettyOption : jettyOptions.entrySet() ) { System.setProperty( jettyOption.getKey(), jettyOption.getValue() ); } } }
SlaveServerConfig { protected void setUpJettyOptions( Node node ) { Map<String, String> jettyOptions = parseJettyOptions( node ); if ( jettyOptions != null && jettyOptions.size() > 0 ) { for ( Entry<String, String> jettyOption : jettyOptions.entrySet() ) { System.setProperty( jettyOption.getKey(), jettyOption.getValue() ); } } } }
SlaveServerConfig { protected void setUpJettyOptions( Node node ) { Map<String, String> jettyOptions = parseJettyOptions( node ); if ( jettyOptions != null && jettyOptions.size() > 0 ) { for ( Entry<String, String> jettyOption : jettyOptions.entrySet() ) { System.setProperty( jettyOption.getKey(), jettyOption.getValue() ); } } } SlaveServerConfig();  SlaveServerConfig( SlaveServer slaveServer );  SlaveServerConfig( List<SlaveServer> masters, boolean reportingToMasters, SlaveServer slaveServer );  SlaveServerConfig( LogChannelInterface log, Node node );  SlaveServerConfig( String hostname, int port, boolean joining ); }
SlaveServerConfig { protected void setUpJettyOptions( Node node ) { Map<String, String> jettyOptions = parseJettyOptions( node ); if ( jettyOptions != null && jettyOptions.size() > 0 ) { for ( Entry<String, String> jettyOption : jettyOptions.entrySet() ) { System.setProperty( jettyOption.getKey(), jettyOption.getValue() ); } } } SlaveServerConfig();  SlaveServerConfig( SlaveServer slaveServer );  SlaveServerConfig( List<SlaveServer> masters, boolean reportingToMasters, SlaveServer slaveServer );  SlaveServerConfig( LogChannelInterface log, Node node );  SlaveServerConfig( String hostname, int port, boolean joining ); String getXML(); void readAutoSequences(); List<SlaveServer> getMasters(); void setMasters( List<SlaveServer> masters ); SlaveServer getSlaveServer(); void setSlaveServer( SlaveServer slaveServer ); boolean isReportingToMasters(); void setReportingToMasters( boolean reportingToMaster ); boolean isJoining(); void setJoining( boolean joining ); int getMaxLogLines(); void setMaxLogLines( int maxLogLines ); int getMaxLogTimeoutMinutes(); void setMaxLogTimeoutMinutes( int maxLogTimeoutMinutes ); int getObjectTimeoutMinutes(); void setObjectTimeoutMinutes( int objectTimeoutMinutes ); String getFilename(); void setFilename( String filename ); List<DatabaseMeta> getDatabases(); void setDatabases( List<DatabaseMeta> databases ); List<SlaveSequence> getSlaveSequences(); void setSlaveSequences( List<SlaveSequence> slaveSequences ); SlaveSequence getAutoSequence(); void setAutoSequence( SlaveSequence autoSequence ); boolean isAutomaticCreationAllowed(); void setAutomaticCreationAllowed( boolean automaticCreationAllowed ); Repository getRepository(); void setRepository( Repository repository ); String getRepositoryUsername(); void setRepositoryUsername( String repositoryUsername ); String getRepositoryPassword(); void setRepositoryPassword( String repositoryPassword ); DelegatingMetaStore getMetaStore(); void setMetaStore( DelegatingMetaStore metaStore ); String getPasswordFile(); void setPasswordFile( String passwordFile ); String getRepositoryId(); void setRepositoryId( String repositoryId ); }
SlaveServerConfig { protected void setUpJettyOptions( Node node ) { Map<String, String> jettyOptions = parseJettyOptions( node ); if ( jettyOptions != null && jettyOptions.size() > 0 ) { for ( Entry<String, String> jettyOption : jettyOptions.entrySet() ) { System.setProperty( jettyOption.getKey(), jettyOption.getValue() ); } } } SlaveServerConfig();  SlaveServerConfig( SlaveServer slaveServer );  SlaveServerConfig( List<SlaveServer> masters, boolean reportingToMasters, SlaveServer slaveServer );  SlaveServerConfig( LogChannelInterface log, Node node );  SlaveServerConfig( String hostname, int port, boolean joining ); String getXML(); void readAutoSequences(); List<SlaveServer> getMasters(); void setMasters( List<SlaveServer> masters ); SlaveServer getSlaveServer(); void setSlaveServer( SlaveServer slaveServer ); boolean isReportingToMasters(); void setReportingToMasters( boolean reportingToMaster ); boolean isJoining(); void setJoining( boolean joining ); int getMaxLogLines(); void setMaxLogLines( int maxLogLines ); int getMaxLogTimeoutMinutes(); void setMaxLogTimeoutMinutes( int maxLogTimeoutMinutes ); int getObjectTimeoutMinutes(); void setObjectTimeoutMinutes( int objectTimeoutMinutes ); String getFilename(); void setFilename( String filename ); List<DatabaseMeta> getDatabases(); void setDatabases( List<DatabaseMeta> databases ); List<SlaveSequence> getSlaveSequences(); void setSlaveSequences( List<SlaveSequence> slaveSequences ); SlaveSequence getAutoSequence(); void setAutoSequence( SlaveSequence autoSequence ); boolean isAutomaticCreationAllowed(); void setAutomaticCreationAllowed( boolean automaticCreationAllowed ); Repository getRepository(); void setRepository( Repository repository ); String getRepositoryUsername(); void setRepositoryUsername( String repositoryUsername ); String getRepositoryPassword(); void setRepositoryPassword( String repositoryPassword ); DelegatingMetaStore getMetaStore(); void setMetaStore( DelegatingMetaStore metaStore ); String getPasswordFile(); void setPasswordFile( String passwordFile ); String getRepositoryId(); void setRepositoryId( String repositoryId ); static final String XML_TAG; static final String XML_TAG_MASTERS; static final String XML_TAG_REPOSITORY; static final String XML_TAG_SEQUENCES; static final String XML_TAG_AUTOSEQUENCE; static final String XML_TAG_AUTO_CREATE; static final String XML_TAG_JETTY_OPTIONS; static final String XML_TAG_ACCEPTORS; static final String XML_TAG_ACCEPT_QUEUE_SIZE; static final String XML_TAG_LOW_RES_MAX_IDLE_TIME; }