Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ed0fea2e
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ed0fea2e
编写于
9月 03, 2015
作者:
S
sjiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8130710: Better attributes processing
Reviewed-by: jbachorik, dfuchs, ahgross
上级
b27e84d3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
17 deletion
+20
-17
src/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java
...lasses/javax/management/remote/rmi/RMIConnectionImpl.java
+2
-5
src/share/classes/javax/management/remote/rmi/RMIConnector.java
...are/classes/javax/management/remote/rmi/RMIConnector.java
+18
-12
未找到文件。
src/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java
浏览文件 @
ed0fea2e
...
...
@@ -361,7 +361,6 @@ public class RMIConnectionImpl implements RMIConnection, Unreferenced {
"connectionId="
+
connectionId
+
", className="
+
className
+
", name="
+
name
+
", params="
+
objects
(
values
)
+
", signature="
+
strings
(
signature
));
return
(
ObjectInstance
)
...
...
@@ -427,7 +426,6 @@ public class RMIConnectionImpl implements RMIConnection, Unreferenced {
+
", className="
+
className
+
", name="
+
name
+
", loaderName="
+
loaderName
+
", params="
+
objects
(
values
)
+
", signature="
+
strings
(
signature
));
return
(
ObjectInstance
)
...
...
@@ -719,7 +717,7 @@ public class RMIConnectionImpl implements RMIConnection, Unreferenced {
if
(
debug
)
logger
.
debug
(
"setAttribute"
,
"connectionId="
+
connectionId
+
", name="
+
name
+
", attribute
="
+
attr
);
+
", attribute
name="
+
attr
.
getName
()
);
doPrivilegedOperation
(
SET_ATTRIBUTE
,
...
...
@@ -770,7 +768,7 @@ public class RMIConnectionImpl implements RMIConnection, Unreferenced {
if
(
debug
)
logger
.
debug
(
"setAttributes"
,
"connectionId="
+
connectionId
+
", name="
+
name
+
", attribute
s="
+
attrlist
);
+
", attribute
names="
+
RMIConnector
.
getAttributesNames
(
attrlist
)
);
return
(
AttributeList
)
doPrivilegedOperation
(
...
...
@@ -825,7 +823,6 @@ public class RMIConnectionImpl implements RMIConnection, Unreferenced {
"connectionId="
+
connectionId
+
", name="
+
name
+
", operationName="
+
operationName
+
", params="
+
objects
(
values
)
+
", signature="
+
strings
(
signature
));
return
...
...
src/share/classes/javax/management/remote/rmi/RMIConnector.java
浏览文件 @
ed0fea2e
...
...
@@ -41,7 +41,6 @@ import java.io.NotSerializableException;
import
java.io.ObjectInputStream
;
import
java.io.ObjectStreamClass
;
import
java.io.Serializable
;
import
java.io.WriteAbortedException
;
import
java.lang.ref.WeakReference
;
import
java.lang.reflect.Constructor
;
import
java.lang.reflect.InvocationHandler
;
...
...
@@ -70,6 +69,7 @@ import java.util.Map;
import
java.util.Properties
;
import
java.util.Set
;
import
java.util.WeakHashMap
;
import
java.util.stream.Collectors
;
import
javax.management.Attribute
;
import
javax.management.AttributeList
;
import
javax.management.AttributeNotFoundException
;
...
...
@@ -712,9 +712,7 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
if
(
logger
.
debugOn
())
logger
.
debug
(
"createMBean(String,ObjectName,Object[],String[])"
,
"className="
+
className
+
", name="
+
name
+
", params="
+
objects
(
params
)
+
", signature="
+
strings
(
signature
));
+
name
+
", signature="
+
strings
(
signature
));
final
MarshalledObject
<
Object
[]>
sParams
=
new
MarshalledObject
<
Object
[]>(
params
);
...
...
@@ -753,8 +751,7 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
if
(
logger
.
debugOn
())
logger
.
debug
(
"createMBean(String,ObjectName,ObjectName,Object[],String[])"
,
"className="
+
className
+
", name="
+
name
+
", loaderName="
+
loaderName
+
", params="
+
objects
(
params
)
+
", signature="
+
strings
(
signature
));
+
loaderName
+
", signature="
+
strings
(
signature
));
final
MarshalledObject
<
Object
[]>
sParams
=
new
MarshalledObject
<
Object
[]>(
params
);
...
...
@@ -954,8 +951,8 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
IOException
{
if
(
logger
.
debugOn
())
logger
.
debug
(
"setAttribute"
,
"name="
+
name
+
", attribute="
+
attribute
);
"name="
+
name
+
", attribute
name
="
+
attribute
.
getName
()
);
final
MarshalledObject
<
Attribute
>
sAttribute
=
new
MarshalledObject
<
Attribute
>(
attribute
);
...
...
@@ -977,9 +974,11 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
ReflectionException
,
IOException
{
if
(
logger
.
debugOn
())
logger
.
debug
(
"setAttributes"
,
"name="
+
name
+
", attributes="
+
attributes
);
if
(
logger
.
debugOn
())
{
logger
.
debug
(
"setAttributes"
,
"name="
+
name
+
", attribute names="
+
getAttributesNames
(
attributes
));
}
final
MarshalledObject
<
AttributeList
>
sAttributes
=
new
MarshalledObject
<
AttributeList
>(
attributes
);
...
...
@@ -1012,7 +1011,6 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
if
(
logger
.
debugOn
())
logger
.
debug
(
"invoke"
,
"name="
+
name
+
", operationName="
+
operationName
+
", params="
+
objects
(
params
)
+
", signature="
+
strings
(
signature
));
final
MarshalledObject
<
Object
[]>
sParams
=
...
...
@@ -2636,4 +2634,12 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
private
static
String
strings
(
final
String
[]
strs
)
{
return
objects
(
strs
);
}
static
String
getAttributesNames
(
AttributeList
attributes
)
{
return
attributes
!=
null
?
attributes
.
asList
().
stream
()
.
map
(
Attribute:
:
getName
)
.
collect
(
Collectors
.
joining
(
"["
,
", "
,
"]"
))
:
"[]"
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录