| 1 | package Flux::Storage::Role::ClientList; | ||
| 2 | { | ||
| 3 | 2 | $Flux::Storage::Role::ClientList::VERSION = '1.03'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: common methods for storages with named clients | ||
| 7 | |||
| 8 | |||
| 9 | 2 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | requires 'client_names'; | |
| 12 | |||
| 13 | 0 | ▶ | sub register_client($$) { |
|
Subroutine
register_client: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub unregister_client($$) { |
|
Subroutine
unregister_client: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub has_client { |
|
Subroutine
has_client: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my $self = shift; | |
| 21 | 0 | my ($name) = @_; | |
| 22 | |||
| 23 | 0 | return grep { $_ eq $name } $self->client_names; | |
| 24 | } | ||
| 25 | |||
| 26 | |||
| 27 | 2 | 1; | |
| 28 | |||
| 29 | __END__ | ||