@Component
public class ConfigCommands
extends java.lang.Object
implements org.springframework.shell.core.CommandMarker, org.springframework.beans.factory.InitializingBean
Configuration
オブジェクトのプロパティを設定します。コンストラクターと説明 |
---|
ConfigCommands() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() XD 管理サーバーのデフォルトの Target を初期化します。 |
java.lang.String | info() |
java.lang.String | listTimeZones() Spring XD シェルコマンドを使用して、使用可能な TimeZone ID のリストを取得します。 |
java.lang.String | setTimeZone(java.lang.String timeZoneId) Spring XD シェルコマンドを介して TimeZone を設定できます。 |
java.lang.String | target(java.lang.String targetUriString, java.lang.String targetUsername, java.lang.String targetPassword) |
@CliCommand(value="admin config server", help="Configure the XD admin server to use") public java.lang.String target(@CliOption(mandatory=false,key={"","uri"},help="the location of the XD Admin REST endpoint",unspecifiedDefaultValue="http://localhost:9393/") java.lang.String targetUriString, @CliOption(mandatory=false,key="username",help="the username for authenticated access to the Admin REST endpoint",unspecifiedDefaultValue="") java.lang.String targetUsername, @CliOption(mandatory=false,key="password",help="the password for authenticated access to the Admin REST endpoint (valid only with a username)",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") java.lang.String targetPassword)
@CliCommand(value="admin config info", help="Show the XD admin server being used") public java.lang.String info()
@CliCommand(value="admin config timezone list", help="List all timezones") public java.lang.String listTimeZones()
TimeZone
ID のリストを取得します。@CliCommand(value="admin config timezone set", help="Set the timezone of the Spring XD Shell (Not persisted)") public java.lang.String setTimeZone(@CliOption(mandatory=true,key={"","timeZone"},help="the id of the timezone, You can obtain a list of timezone ids using \'admin config timezone list\', If an invalid timezone id is provided, then \'Greenwich Mean Time\' is being used") java.lang.String timeZoneId)
TimeZone
を設定できます。public void afterPropertiesSet() throws java.lang.Exception
Target
を初期化します。定数 Target.DEFAULT_HOST
、Target.DEFAULT_PORT
、Target.DEFAULT_SCHEME
が使用されます。または、ホストとポートは、--host
および --port
コマンドラインパラメーターを使用して設定することもできます。org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
java.lang.Exception