public class DistPollerDaoDistributed extends Object implements DistPollerDao
DistPollerDao
wraps the single instance that represents the
current Minion device.DEFAULT_DIST_POLLER_ID
Constructor and Description |
---|
DistPollerDaoDistributed(Identity identity) |
DistPollerDaoDistributed(OnmsDistPoller distPoller) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
countAll() |
int |
countMatching(Criteria onmsCrit) |
void |
delete(OnmsDistPoller entity) |
void |
delete(String key) |
List<OnmsDistPoller> |
findAll() |
List<OnmsDistPoller> |
findMatching(Criteria criteria) |
void |
flush() |
OnmsDistPoller |
get(String id) |
void |
initialize(Object obj) |
OnmsDistPoller |
load(String id) |
void |
lock()
This is used to lock the table in order to implement upsert type operations
|
String |
save(OnmsDistPoller entity) |
void |
saveOrUpdate(OnmsDistPoller entity) |
void |
update(OnmsDistPoller entity) |
OnmsDistPoller |
whoami()
This function returns the
OnmsDistPoller identity of the
local system so that events and other objects can be associated with
the local system. |
public DistPollerDaoDistributed(OnmsDistPoller distPoller)
public DistPollerDaoDistributed(Identity identity)
public void lock()
OnmsDao
lock
in interface OnmsDao<OnmsDistPoller,String>
public void initialize(Object obj)
initialize
in interface OnmsDao<OnmsDistPoller,String>
public void flush()
flush
in interface OnmsDao<OnmsDistPoller,String>
public void clear()
clear
in interface OnmsDao<OnmsDistPoller,String>
public int countAll()
countAll
in interface OnmsDao<OnmsDistPoller,String>
public void delete(OnmsDistPoller entity)
delete
in interface OnmsDao<OnmsDistPoller,String>
public void delete(String key)
delete
in interface OnmsDao<OnmsDistPoller,String>
public List<OnmsDistPoller> findAll()
findAll
in interface OnmsDao<OnmsDistPoller,String>
public List<OnmsDistPoller> findMatching(Criteria criteria)
findMatching
in interface OnmsDao<OnmsDistPoller,String>
public int countMatching(Criteria onmsCrit)
countMatching
in interface OnmsDao<OnmsDistPoller,String>
public OnmsDistPoller get(String id)
get
in interface OnmsDao<OnmsDistPoller,String>
public OnmsDistPoller load(String id)
load
in interface OnmsDao<OnmsDistPoller,String>
public String save(OnmsDistPoller entity)
save
in interface OnmsDao<OnmsDistPoller,String>
public void saveOrUpdate(OnmsDistPoller entity)
saveOrUpdate
in interface OnmsDao<OnmsDistPoller,String>
public void update(OnmsDistPoller entity)
update
in interface OnmsDao<OnmsDistPoller,String>
public OnmsDistPoller whoami()
DistPollerDao
OnmsDistPoller
identity of the
local system so that events and other objects can be associated with
the local system.whoami
in interface DistPollerDao
https://en.wikipedia.org/wiki/Whoami
Copyright © 2021. All rights reserved.