public class ZooKeeperAdminRepository extends java.lang.Object implements AdminRepository
| Constructor and Description |
|---|
ZooKeeperAdminRepository(ZooKeeperConnection zkConnection)
Construct a
ZooKeeperRuntimeRepository. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String id)
Returns whether a admin runtime with the given id exists.
|
java.util.List<Admin> |
findAll()
Returns all admin runtime entities.
|
Admin |
findOne(java.lang.String id)
Retrieves a admin runtime by its id.
|
Admin |
save(Admin entity)
Save the admin runtime attributes.
|
void |
update(Admin entity)
Update the admin runtime attributes.
|
@Autowired public ZooKeeperAdminRepository(ZooKeeperConnection zkConnection)
ZooKeeperRuntimeRepository.zkConnection - the ZooKeeper connectionpublic Admin save(Admin entity)
save in interface AdminRepositoryentity - the container runtime entitypublic void update(Admin entity)
update in interface AdminRepositoryentity - the admin runtime entitypublic boolean exists(java.lang.String id)
exists in interface AdminRepositoryid - admin runtime idpublic java.util.List<Admin> findAll()
findAll in interface AdminRepositorypublic Admin findOne(java.lang.String id)
findOne in interface AdminRepositoryid - admin runtime id