关闭事务

mgmt = graph.openManagement();
ids = mgmt.getOpenInstances();
for(String id : ids){if(!id.contains("(")){mgmt.forceCloseInstance(id)}};
mgmt.commit();

查看事务

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
mgmt = graph.openManagement();
mgmt.getOpenInstances();
mgmt.commit();

查看所有索引

mgmt = graph.openManagement();
mgmt.getGraphIndexes(Vertex.class);
mgmt.commit();

查看索引状态

mgmt = graph.openManagement();
vlabel = mgmt.getPropertyKey('vlabel');
byvlabel=mgmt.getGraphIndex('byvlabel');
status=byvlabel.getIndexStatus(vlabel);

获取所有节点标签

mgmt = graph.openManagement();
mgmt.getVertexLabels()
mgmt.commit()

获取所有边的标签

mgmt = graph.openManagement();
mgmt.getRelationTypes(EdgeLabel.class)
mgmt.commit()

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄