@Override public boolean isReady() { try { return this.mbsc.isRegistered(managerMemberObjectName); } catch (IOException e) { return false; } }
public boolean isRegistered(ObjectName name) { try { return delegate.isRegistered(name); } catch(IOException e) { throw new RuntimeException(e); } }
@Override public void handle(DataInput input, int correlationId) throws IOException { log.trace("IsRegistered"); byte paramType = input.readByte(); if (paramType != OBJECT_NAME) { throw new IOException("Unexpected paramType"); } Unmarshaller unmarshaller = prepareForUnMarshalling(input); ObjectName objectName; try { objectName = unmarshaller.readObject(ObjectName.class); } catch (ClassNotFoundException cnfe) { throw new IOException(cnfe); } boolean registered = server.getMBeanServerConnection().isRegistered(objectName); writeResponse(registered, IS_REGISTERED, correlationId); log.tracef("[%d] IsRegistered - Success Response Sent", correlationId); } }
@Override public void handle(DataInput input, int correlationId) throws IOException { log.trace("IsRegistered"); byte paramType = input.readByte(); if (paramType != OBJECT_NAME) { throw new IOException("Unexpected paramType"); } Unmarshaller unmarshaller = prepareForUnMarshalling(input); ObjectName objectName; try { objectName = unmarshaller.readObject(ObjectName.class); } catch (ClassNotFoundException cnfe) { throw new IOException(cnfe); } boolean registered = server.getMBeanServerConnection().isRegistered(objectName); writeResponse(registered, IS_REGISTERED, correlationId); log.tracef("[%d] IsRegistered - Success Response Sent", correlationId); } }
if (!connection.isRegistered(objName)) { return attributeMap;
public boolean isReady() { try { return this.mbsc.isRegistered(managerMemberObjectName); } catch (IOException e) { return false; } }
public boolean isReady() { try { return this.mbsc.isRegistered(managerMemberObjectName); } catch (IOException e) { return false; } }
public boolean isRegistered(ObjectName name) { try { return delegate.isRegistered(name); } catch(IOException e) { throw new RuntimeException(e); } }
@Override public boolean isRegistered(ObjectName name) throws IOException { try { return connection.isRegistered(name); } catch (IOException e) { checkConnection(); return connection.isRegistered(name); } }
@Override public boolean isRegistered(ObjectName name) throws IOException { try { return connection.isRegistered(name); } catch (IOException e) { checkConnection(); return connection.isRegistered(name); } }
@Override public boolean isRegistered(ObjectName name) throws IOException { try { return connection.isRegistered(name); } catch (IOException e) { checkConnection(); return connection.isRegistered(name); } }
@Override public boolean isRegistered(ObjectName name) throws IOException { try { return connection.isRegistered(name); } catch (IOException e) { checkConnection(); return connection.isRegistered(name); } }
@Override public boolean verify() throws Exception { return _mbeanServer.isRegistered(objectName); } }, 3000);
private void propogateAttributeValueToChannelSuportBean(String attributeName, Object attributeVale) { try { if(mMBeanServer.isRegistered(mChannelSupportObjectName)) { Attribute lAttribute = new Attribute(attributeName,attributeVale); mMBeanServer.setAttribute(mChannelSupportObjectName, lAttribute); } } catch (Exception e) { // we should not get io failure since is not a remote call // both running in the same JVM } }
private boolean isRegistered(ObjectName objectName) { try { return this.connection.isRegistered(objectName); } catch (IOException e) { throw new JmxException("Unable to check if bean is registered", e); } } }
@Test public void testIsRegistered() throws Exception { assertEquals(mbeanServerConnection.isRegistered(testMBeanName), true); assertEquals(mbeanServerConnection.isRegistered(new ObjectName("fake", "fake", "fake")), false); }
@Test public void testIsRegistered() throws Exception { assertEquals(mbeanServerConnection.isRegistered(testMBeanName), true); assertEquals(mbeanServerConnection.isRegistered(new ObjectName("fake", "fake", "fake")), false); }
@Test public void testIsRegistered() throws Exception { assertEquals(mbeanServerConnection.isRegistered(testMBeanName), true); assertEquals(mbeanServerConnection.isRegistered(new ObjectName("fake", "fake", "fake")), false); }
@Test public void testIsRegistered() throws Exception { assertEquals(mbeanServerConnection.isRegistered(testMBeanName), true); assertEquals(mbeanServerConnection.isRegistered(new ObjectName("fake", "fake", "fake")), false); }
@Test public void testJGroupsChannelMBeanAvailable() throws Exception { assertTrue(provider.getConnection().isRegistered(new ObjectName("jgroups:type=channel,cluster=\"cluster\""))); } }