Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
add license header to a few files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robey Pointer committed Dec 10, 2010
1 parent ae250eb commit 3f96894
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 2 deletions.
17 changes: 16 additions & 1 deletion src/main/scala/com/twitter/gizzard/nameserver/NameServer.scala
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.nameserver

import java.util.TreeMap
Expand All @@ -10,7 +26,6 @@ import net.lag.configgy.ConfigMap
import net.lag.logging.Logger
import shards._


class NonExistentShard(message: String) extends ShardException(message: String)
class InvalidShard(message: String) extends ShardException(message: String)

Expand Down
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.proxy

import java.lang.reflect.UndeclaredThrowableException
Expand All @@ -7,7 +23,6 @@ import scala.reflect.Manifest
import com.twitter.querulous.database.SqlDatabaseTimeoutException
import com.twitter.querulous.query.SqlQueryTimeoutException


class ExceptionHandlingProxy(f: Throwable => Unit) {
def apply[T <: AnyRef](obj: T)(implicit manifest: Manifest[T]): T = {
Proxy(obj) { method =>
Expand Down
16 changes: 16 additions & 0 deletions src/main/scala/com/twitter/gizzard/scheduler/CopyJob.scala
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.scheduler

import com.twitter.ostrich.Stats
Expand Down
16 changes: 16 additions & 0 deletions src/main/scala/com/twitter/gizzard/scheduler/JobScheduler.scala
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.scheduler

import java.lang.reflect.UndeclaredThrowableException
Expand Down
16 changes: 16 additions & 0 deletions src/main/scala/com/twitter/gizzard/scheduler/KestrelJobQueue.scala
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.scheduler

import com.twitter.ostrich.{Stats, StatsProvider}
Expand Down
16 changes: 16 additions & 0 deletions src/main/scala/com/twitter/gizzard/scheduler/NestedJob.scala
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.scheduler

import scala.collection.mutable
Expand Down
@@ -1,3 +1,19 @@
/*
* Copyright 2010 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.twitter.gizzard.scheduler

import scala.collection.Map
Expand Down

0 comments on commit 3f96894

Please sign in to comment.