Author: gtrasuk Date: Thu Aug 8 04:24:55 2013 New Revision: 1511579 URL: http://svn.apache.org/r1511579 Log: Fix RIVER-423. Added: net.jini.lookup.entry.Host net.jini.lookup.entry.jmx.JMXProperty net.jini.lookup.entry.jmx.JMXProtocolType
Added: river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/Host.java river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/ river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProperty.java river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProtocolType.java Added: river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/Host.java URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/Host.java?rev=1511579&view=auto ============================================================================== --- river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/Host.java (added) +++ river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/Host.java Thu Aug 8 04:24:55 2013 @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.jini.lookup.entry; + +import net.jini.entry.AbstractEntry; + +public class Host extends AbstractEntry { + public String hostName; + + public Host() { + this(null); + } + + public Host(String hostName) { + this.hostName = hostName; + } +} \ No newline at end of file Added: river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProperty.java URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProperty.java?rev=1511579&view=auto ============================================================================== --- river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProperty.java (added) +++ river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProperty.java Thu Aug 8 04:24:55 2013 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.jini.lookup.entry.jmx; + +import net.jini.entry.AbstractEntry; + +public class JMXProperty extends AbstractEntry { + public String name; + public String value; + + public JMXProperty() { + this(null, null); + } + + public JMXProperty(String name, String value) { + this.name = name; + this.value = value; + } +} \ No newline at end of file Added: river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProtocolType.java URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProtocolType.java?rev=1511579&view=auto ============================================================================== --- river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProtocolType.java (added) +++ river/jtsk/skunk/qa_refactor/trunk/src/net/jini/lookup/entry/jmx/JMXProtocolType.java Thu Aug 8 04:24:55 2013 @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.jini.lookup.entry.jmx; + +import net.jini.entry.AbstractEntry; + +public class JMXProtocolType extends AbstractEntry { + public static final String RMI = "rmi"; + public static final String IIOP = "iiop"; + public static final String JMXMP = "jmxmp"; + public String protocolType; + + public JMXProtocolType() { + this(null); + } + + public JMXProtocolType(String protocolType) { + this.protocolType = (protocolType == null ? null : protocolType.toLowerCase()); + } +} \ No newline at end of file