ComponentInstanceManager.listComponentInstances()メソッドをコールして、Endeca IAS Serviceのすべてのコンポーネント・インスタンスをリスト表示します。このリリースでは、コンポーネントは、Endeca IAS Serviceで実行中のレコード・ストア・インスタンスです。
ComponentInstanceManager.listComponentInstances()
コンポーネント・インスタンスをリスト表示するには:
ServiceAddress address = new ServiceAddress("localhost", 8401, contextPath); ComponentInstanceManagerLocator locator = ComponentInstanceManagerLocator.create(address);
ComponentInstanceManager cim = locator.getService();
for (ComponentInstanceDescriptor desc : cim.listComponentInstances()) { System.out.println(desc.getInstanceId() + " of type " + desc.getTypeId() + " has status " + desc.getInstanceStatus()); }