Package org.opennms.netmgt.dao
Class DistPollerDaoDistributed
- java.lang.Object
-
- org.opennms.netmgt.dao.DistPollerDaoDistributed
-
- All Implemented Interfaces:
DistPollerDao
,OnmsDao<OnmsDistPoller,String>
public class DistPollerDaoDistributed extends Object implements DistPollerDao
ThisDistPollerDao
wraps the single instance that represents the current Minion device.- Author:
- Seth
-
-
Field Summary
-
Fields inherited from interface org.opennms.netmgt.dao.api.DistPollerDao
DEFAULT_DIST_POLLER_ID
-
-
Constructor Summary
Constructors Constructor Description DistPollerDaoDistributed(Identity identity)
DistPollerDaoDistributed(OnmsDistPoller distPoller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
countAll()
int
countMatching(Criteria onmsCrit)
void
delete(String key)
void
delete(OnmsDistPoller entity)
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 operationsString
save(OnmsDistPoller entity)
void
saveOrUpdate(OnmsDistPoller entity)
void
update(OnmsDistPoller entity)
OnmsDistPoller
whoami()
This function returns theOnmsDistPoller
identity of the local system so that events and other objects can be associated with the local system.
-
-
-
Constructor Detail
-
DistPollerDaoDistributed
public DistPollerDaoDistributed(OnmsDistPoller distPoller)
-
DistPollerDaoDistributed
public DistPollerDaoDistributed(Identity identity)
-
-
Method Detail
-
lock
public void lock()
Description copied from interface:OnmsDao
This is used to lock the table in order to implement upsert type operations- Specified by:
lock
in interfaceOnmsDao<OnmsDistPoller,String>
-
initialize
public void initialize(Object obj)
- Specified by:
initialize
in interfaceOnmsDao<OnmsDistPoller,String>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<OnmsDistPoller,String>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<OnmsDistPoller,String>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<OnmsDistPoller,String>
-
delete
public void delete(OnmsDistPoller entity)
- Specified by:
delete
in interfaceOnmsDao<OnmsDistPoller,String>
-
delete
public void delete(String key)
- Specified by:
delete
in interfaceOnmsDao<OnmsDistPoller,String>
-
findAll
public List<OnmsDistPoller> findAll()
- Specified by:
findAll
in interfaceOnmsDao<OnmsDistPoller,String>
-
findMatching
public List<OnmsDistPoller> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<OnmsDistPoller,String>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<OnmsDistPoller,String>
-
get
public OnmsDistPoller get(String id)
- Specified by:
get
in interfaceOnmsDao<OnmsDistPoller,String>
-
load
public OnmsDistPoller load(String id)
- Specified by:
load
in interfaceOnmsDao<OnmsDistPoller,String>
-
save
public String save(OnmsDistPoller entity)
- Specified by:
save
in interfaceOnmsDao<OnmsDistPoller,String>
-
saveOrUpdate
public void saveOrUpdate(OnmsDistPoller entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<OnmsDistPoller,String>
-
update
public void update(OnmsDistPoller entity)
- Specified by:
update
in interfaceOnmsDao<OnmsDistPoller,String>
-
whoami
public OnmsDistPoller whoami()
Description copied from interface:DistPollerDao
This function returns theOnmsDistPoller
identity of the local system so that events and other objects can be associated with the local system.- Specified by:
whoami
in interfaceDistPollerDao
- Returns:
-
-