Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dubbo-issue1814][ Baiji-9] Add .xml configuration of graceful close #2360

Merged
merged 2 commits into from
Aug 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public class ApplicationConfig extends AbstractConfig {
// customized parameters
private Map<String, String> parameters;

//config the shutdown.wait
private String shutwait;


public ApplicationConfig() {
}

Expand Down Expand Up @@ -254,4 +258,13 @@ public void setParameters(Map<String, String> parameters) {
checkParameterName(parameters);
this.parameters = parameters;
}

public String getShutwait() {
return shutwait;
}

public void setShutwait(String shutwait) {
System.setProperty( Constants.SHUTDOWN_WAIT_KEY, shutwait);
this.shutwait = shutwait;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,17 @@
<xsd:documentation><![CDATA[ The application monitor. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="shutwait" type="xsd:string" >
<xsd:annotation>
<xsd:documentation><![CDATA[ The application shutDown-wait time. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="default" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ Is default. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>

</xsd:complexType>

<xsd:complexType name="moduleType">
Expand Down