#include "VolumeEvent.h"
VolumeEvent::VolumeEvent(uint32 type, vnode_id target)
:
BReferenceable(),
fType(type),
fTarget(target)
{
}
VolumeEvent::~VolumeEvent()
{
}
uint32
VolumeEvent::GetType() const
{
return fType;
}
void
VolumeEvent::SetTarget(vnode_id target)
{
fTarget = target;
}
vnode_id
VolumeEvent::GetTarget() const
{
return fTarget;
}
ConnectionBrokenEvent::ConnectionBrokenEvent(vnode_id target)
: VolumeEvent(CONNECTION_BROKEN_EVENT, target)
{
}
ConnectionBrokenEvent::~ConnectionBrokenEvent()
{
}