Changeset 25899

Show
Ignore:
Timestamp:
05.07.2012 16:11:38 (7 years ago)
Author:
ak19
Message:

Introducing new script run_solr_server.pl to easily stop and start the jetty server included with GS3's solr extension.

Location:
gs3-extensions/solr/trunk/src
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/perllib/solrserver.pm

    r25889 r25899  
    5858} 
    5959 
    60  
     60sub set_jetty_stop_key { 
     61    my $self = shift (@_); 
     62    my ($stop_key) = @_; 
     63 
     64    $self->{'jetty_stop_key'} = $stop_key if defined $stop_key; 
     65} 
    6166 
    6267sub _wget_service 
     
    272277} 
    273278 
    274 # removes (unloads) core from th eext/solr/sorl.xml config file 
     279# removes (unloads) core from the ext/solr/sorl.xml config file 
    275280sub admin_unload_core 
    276281{ 
     
    301306{ 
    302307    my $self = shift @_; 
     308    my ($verbosity) = @_; 
     309     
     310    $verbosity = 1 unless defined $verbosity; 
    303311 
    304312    my $solr_home         = $ENV{'GEXT_SOLR'}; 
     
    326334    elsif (open(STARTIN,"$server_java_cmd 2>&1 |")) { 
    327335 
    328 ##  print STDERR "**** startup up server with cmd start =\n $server_java_cmd\n"; 
     336    print STDERR "**** starting up solr jetty server with cmd start =\n $server_java_cmd\n" if ($verbosity > 1); 
    329337 
    330338    my $line; 
     
    454462    my $server_java_cmd = "java $server_props -jar \"$full_server_jar\" --stop"; 
    455463 
    456 ##    print STDERR "**** java server stop cmd:\n  $server_java_cmd\n"; 
     464    print STDERR "**** java server stop cmd:\n  $server_java_cmd\n" if ($output_verbosity>1); 
    457465 
    458466    if (open(STOPIN,"$server_java_cmd 2>&1 |")) {